[pypy-commit] pypy py3k: test plain setitem too

pjenvey noreply at buildbot.pypy.org
Mon Apr 15 21:46:05 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
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"


More information about the pypy-commit mailing list