[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests - test_committer.py:1.6

Guido van Rossum guido@python.org
Wed, 28 May 2003 11:16:20 -0400


Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv6982/src/zope/app/fssync/tests

Modified Files:
	test_committer.py 
Log Message:
Write the test files in binary mode to make test_synch() pass on Windows.


=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.5	Wed May 28 11:11:07 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py	Wed May 28 11:16:19 2003
@@ -267,9 +267,9 @@
         parentdir = self.tempdir()
         childdir = os.path.join(parentdir, "child")
         foofile = os.path.join(childdir, "foo")
-        self.writefile(dumps(foo), foofile)
+        self.writefile(dumps(foo), foofile, "wb")
         originalfoofile = fsutil.getoriginal(foofile)
-        self.writefile(dumps(foo), originalfoofile)
+        self.writefile(dumps(foo), originalfoofile, "wb")
         parententry = self.getentry(parentdir)
         parententry["@"] = "@" # To make it non-empty
         childentry = self.getentry(childdir)