Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63389:92424746587a
Date: 2013-04-15 12:43 -0700
http://bitbucket.org/pypy/pypy/changeset/92424746587a/

Log:    test plain setitem too

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
@@ -112,6 +112,7 @@
         memio.seek(5)
         buf = memio.getbuffer()
         assert bytes(buf) == b"1234567890"
+        assert buf[5] == b"6"
         # Mutating the buffer updates the BytesIO
         buf[3:6] = b"abc"
         assert bytes(buf) == b"123abc7890"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to