[pypy-commit] pypy default: another test fix for win32
bdkearns
noreply at buildbot.pypy.org
Mon Jan 28 11:17:53 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
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)
More information about the pypy-commit
mailing list