Message14
The tests in test_init.py fail on Windows, because
MyTestCase.setUp() (re)raises an exception.
Reason: shutil.rmtree("<not existing path>") raises
WindowsError(errno=3), not OSError(errno=errno.ENOENT).
After I made the following patch, the test suite
ran successfully.
*** test_init.py Sat Sep 29 20:06:37 2001
--- test_init.py.org Wed Aug 29 06:24:00 2001
***************
*** 28,43 ****
self.dirname = '_test_%s'%self.count
try:
shutil.rmtree(self.dirname)
- except WindowsError, error:
- if error.errno != 3: raise
except OSError, error:
if error.errno != errno.ENOENT: raise
def tearDown(self):
try:
shutil.rmtree(self.dirname)
- except WindowsError, error:
- if error.errno != 3: raise
except OSError, error:
if error.errno != errno.ENOENT: raise
--- 28,39 ----
|
|
Date |
User |
Action |
Args |
2009-02-03 14:19:58 | admin | link | issue466416 messages |
2009-02-03 14:19:58 | admin | create | |
|