[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception
Terry J. Reedy
report at bugs.python.org
Sun Nov 28 04:44:05 CET 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
I applied mkdir.diff, 08-07, patch to my current working copy, added version-added and News entry (with credit to Ray Allen) and added Ray Allen to ACKS. Uploaded as mkdirs.tr.diff
I suspect a complete test should include a linux system, but I copied os.py and test_os.py to my WinXP 3.2a3 installation and in IDLE ran
>>> from test.test_os import test_main as f; f()
The mkdir tests passed, but for what is is worth, 3 others did not:
(I have no interpretation or comment on these ;-)
======================================================================
ERROR: test_CTRL_BREAK_EVENT (test.test_os.Win32KillTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Programs\Python32\lib\test\test_os.py", line 1137, in test_CTRL_BREAK_EVENT
self._kill_with_event(signal.CTRL_BREAK_EVENT, "CTRL_BREAK_EVENT")
File "C:\Programs\Python32\lib\test\test_os.py", line 1111, in _kill_with_event
time.sleep(0.5)
WindowsError: [Error 6] The handle is invalid
======================================================================
ERROR: test_link (test.test_os.LinkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Programs\Python32\lib\test\test_os.py", line 906, in test_link
self._test_link(self.file1, self.file2)
File "C:\Programs\Python32\lib\test\test_os.py", line 901, in _test_link
os.link(file1, file2)
AttributeError: 'module' object has no attribute 'link'
======================================================================
ERROR: test_link_bytes (test.test_os.LinkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Programs\Python32\lib\test\test_os.py", line 910, in test_link_bytes
bytes(self.file2, sys.getfilesystemencoding()))
File "C:\Programs\Python32\lib\test\test_os.py", line 901, in _test_link
os.link(file1, file2)
AttributeError: 'module' object has no attribute 'link'
----------
Added file: http://bugs.python.org/file19849/mkdirs.tr.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9299>
_______________________________________
More information about the Python-bugs-list
mailing list