[Zodb-checkins] SVN: ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py Fixed tearDown to work on windows.

Jim Fulton jim at zope.com
Thu Dec 3 16:53:01 EST 2009


Log message for revision 106201:
  Fixed tearDown to work on windows.
  

Changed:
  U   ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py

-=-
Modified: ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py
===================================================================
--- ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py	2009-12-03 20:58:19 UTC (rev 106200)
+++ ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py	2009-12-03 21:53:00 UTC (rev 106201)
@@ -90,9 +90,9 @@
         self.db = OurDB(self.datadir)
 
     def tearDown(self):
+        os.chdir(self.currdir)
         import shutil
         shutil.rmtree(self.basedir)
-        os.chdir(self.currdir)
 
     def _callRepozoMain(self, argv):
         from ZODB.scripts.repozo import main



More information about the Zodb-checkins mailing list