[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - testFileStorage.py:1.19.6.6

Chris Withers chrisw at nipltd.com
Mon May 19 05:48:08 EDT 2003


Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv7845

Modified Files:
      Tag: Zope-2_6-branch
	testFileStorage.py 
Log Message:
Better instrumentation of test that's failing on Win32

=== Zope/lib/python/ZODB/tests/testFileStorage.py 1.19.6.5 => 1.19.6.6 ===
--- Zope/lib/python/ZODB/tests/testFileStorage.py:1.19.6.5	Mon Mar 17 14:51:52 2003
+++ Zope/lib/python/ZODB/tests/testFileStorage.py	Mon May 19 04:48:07 2003
@@ -191,7 +191,16 @@
             recover(["", "FileStorageTests.fs", "fsrecover.fs"])
         finally:
             sys.stdout = temp
-        self.assert_(filecmp.cmp("FileStorageTests.fs", "fsrecover.fs"))
+            
+        # more verbose comparison of fiel equality
+        f = open("FileStorageTests.fs", "rb")
+        fguts = f.read()
+        f.close()
+        g = open("fsrecover.fs", "rb")
+        gguts = g.read()
+        g.close()
+        self.assertEqual(fguts, gguts)
+        
         StorageTestBase.removefs("fsrecover.fs")
 
 class FileStorageRecoveryTest(




More information about the Zodb-checkins mailing list