[Zope-Coders] Win32 Test Failure: Jeremy?
Tim Peters
tim@zope.com
Tue, 13 May 2003 13:05:27 -0400
[Tim]
>> perhaps we'd learn more if you replaced the test's line 194:
>>
>> self.assert_(filecmp.cmp("FileStorageTests.fs", "fsrecover.fs"))
>>
>> with something that dumped the contents of the files.
[Chris Withers]
> Can you suggest appropriate code?
>
> I'm well out of my depth in that area of the world :-S
It's comparing two files and finding that they're not equal. We want to see
the file contents. So, e.g.,
f = open("FileStorageTests.fs", "rb")
fguts = f.read()
f.close()
g = open("fsrecover.fs", "rb")
gguts = g.read()
g.close()
self.assertEqual(fguts, gguts)
If that makes for unreadable output, maybe write fguts and gguts into new
files so an OS file-diff tool can be used on them.