Roundup Tracker - Issues

Message14

Author anonymous
Recipients
Date 2001-09-29.20:07:16
Message-id
In-reply-to
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 ----
History
Date User Action Args
2009-02-03 14:19:58adminlinkissue466416 messages
2009-02-03 14:19:58admincreate