Message48588
Logged In: YES
user_id=1207189
Hi,
Your patch "makedirs.py" for python 2.5 will fail under
Windows if a drive letter is specified:
>>> os.getcwd()
'C:\\Temp\\makedirs'
>>> os.listdir('.')
['makedirs.py', 'makedirs.pyc', 'test.py']
>>> makedirs.makedirs('c:/temp/makedirs/a/b')
>>> os.listdir('.')
['makedirs.py', 'makedirs.pyc', 'temp', 'test.py']
It will create the following path:
C:\Temp\makedirs\temp\makedirs\a\b
Also I ran it through the test suite (lib\test\test_os.py)
and it failed one test:
======================================================================
FAIL: test_makedir (__main__.MakedirTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_os.py", line 327, in test_makedir
self.failUnlessRaises(OSError, os.makedirs, os.curdir)
AssertionError: OSError not raised
----------------------------------------------------------------------
I haven't looked into *why* this happens - I'll dig a bit
deeper into this subject sometime next week.
HTH,
Richard |
|
Date |
User |
Action |
Args |
2007-08-23 15:43:32 | admin | link | issue1239890 messages |
2007-08-23 15:43:32 | admin | create | |
|