Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r60602:3d0d298b83de
Date: 2013-01-28 05:17 -0500
http://bitbucket.org/pypy/pypy/changeset/3d0d298b83de/

Log:    another test fix for win32

diff --git a/pypy/module/_file/test/test_file.py 
b/pypy/module/_file/test/test_file.py
--- a/pypy/module/_file/test/test_file.py
+++ b/pypy/module/_file/test/test_file.py
@@ -432,10 +432,10 @@
     def test_readline_unbuffered_should_read_one_line_only(self):
         import os
 
-        with self.file(self.temppath, 'w') as f:
+        with self.file(self.temppath, 'wb') as f:
             f.write('foo\nbar\n')
 
-        with self.file(self.temppath, 'r', 0) as f:
+        with self.file(self.temppath, 'rb', 0) as f:
             s = f.readline()
             assert s == 'foo\n'
             s = os.read(f.fileno(), 10)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to