Issue 466416
Created on 2001-09-29 20:07 by anonymous, last changed 2001-09-29 20:07 by anonymous.
msg14 |
Author: [hidden] (anonymous) |
Date: 2001-09-29 20:07 |
|
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 ----
|
msg15 |
Author: [hidden] (richard) |
Date: 2001-09-29 22:58 |
|
Logged In: YES
user_id=6405
Patched, thanks.
|
|
Date |
User |
Action |
Args |
2001-09-29 20:07:16 | anonymous | create | |
|