SVN: ZODB/branches/3.9/src/ZODB/scripts/tests/test_repozo.py Fixed tearDown to work on windows.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20091203215301.A8C287083BC__33587.0719435208$1259877196$gmane$org@cvs.zope.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.