[pypy-commit] pypy default: test BytesIO.readinto()

bdkearns noreply at buildbot.pypy.org
Fri Apr 12 03:38:16 CEST 2013


Author: Brian Kearns <bdkearns at gmail.com>
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):


More information about the pypy-commit mailing list