Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r63257:62db528827f5
Date: 2013-04-11 19:55 -0400
http://bitbucket.org/pypy/pypy/changeset/62db528827f5/

Log:    test BytesIO.readinto()

diff --git a/pypy/module/_io/test/test_bytesio.py 
b/pypy/module/_io/test/test_bytesio.py
--- a/pypy/module/_io/test/test_bytesio.py
+++ b/pypy/module/_io/test/test_bytesio.py
@@ -74,7 +74,10 @@
         import _io
 
         b = _io.BytesIO("hello")
+        a = bytearray('testing')
+        assert b.readinto(a) == 5
         b.close()
+        assert a == "hellong"
         raises(ValueError, b.readinto, bytearray("hello"))
 
     def test_readline(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to