[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests - test_cvsloader.py:1.6

Fred L. Drake, Jr. fred at zope.com
Wed Mar 10 13:18:27 EST 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv20623/tests

Modified Files:
	test_cvsloader.py 
Log Message:
add a file-like proxy to make a single file pulled down by a CvsLoader
get cleaned up when closed


=== Packages/zpkgtools/zpkgtools/tests/test_cvsloader.py 1.5 => 1.6 ===
--- Packages/zpkgtools/zpkgtools/tests/test_cvsloader.py:1.5	Wed Mar 10 13:17:09 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_cvsloader.py	Wed Mar 10 13:18:26 2004
@@ -464,6 +464,9 @@
         self.mode = "rU"
         self.fp = cvsloader.FileProxy(__file__, self.mode, self.loader)
 
+    def tearDown(self):
+        self.fp.close()
+
     def test_close(self):
         self.fp.close()
         self.assertEqual(self.loader.cleanup_called, 1)




More information about the Zope-CVS mailing list