[Zodb-checkins] CVS: ZODB3/ZODB/tests - testConfig.py:1.10.20.2

Tim Peters tim.one at comcast.net
Mon Sep 15 17:24:21 EDT 2003


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv17283/ZODB/tests

Modified Files:
      Tag: Zope-2_7-branch
	testConfig.py 
Log Message:
test_file_config[12]():  These didn't try to clean up after themselves;
now they do.


=== ZODB3/ZODB/tests/testConfig.py 1.10.20.1 => 1.10.20.2 ===
--- ZODB3/ZODB/tests/testConfig.py:1.10.20.1	Mon Sep 15 14:02:57 2003
+++ ZODB3/ZODB/tests/testConfig.py	Mon Sep 15 17:24:20 2003
@@ -56,6 +56,7 @@
             """)
 
     def test_file_config1(self):
+        import ZODB.FileStorage
         path = tempfile.mktemp()
         self._test(
             """
@@ -65,9 +66,10 @@
               </filestorage>
             </zodb>
             """ % path)
-        os.unlink(path)
+        ZODB.FileStorage.cleanup(path)
 
     def test_file_config2(self):
+        import ZODB.FileStorage
         path = tempfile.mktemp()
         cfg = """
         <zodb>
@@ -79,6 +81,7 @@
         </zodb>
         """ % path
         self.assertRaises(ReadOnlyError, self._test, cfg)
+        ZODB.FileStorage.cleanup(path)
 
     def test_zeo_config(self):
         # We're looking for a port that doesn't exist so a connection attempt




More information about the Zodb-checkins mailing list