Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89472:e10143ffba30
Date: 2017-01-10 12:37 +0100
http://bitbucket.org/pypy/pypy/changeset/e10143ffba30/
Log: fix test if run alone
diff --git a/pypy/module/_io/test/test_fileio.py
b/pypy/module/_io/test/test_fileio.py
--- a/pypy/module/_io/test/test_fileio.py
+++ b/pypy/module/_io/test/test_fileio.py
@@ -151,6 +151,9 @@
import _io
a = bytearray(b'x' * 10)
f = _io.FileIO(self.tmpfile, 'r+')
+ f.seek(5)
+ f.write(b'\x00' * 5)
+ f.seek(0)
assert f.readinto(a) == 10
f.seek(0)
m = memoryview(bytearray(b"helloworld"))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit