Author: Manuel Jacob <[email protected]>
Branch: py3.3
Changeset: r76176:06f89631273f
Date: 2015-02-27 16:31 +0100
http://bitbucket.org/pypy/pypy/changeset/06f89631273f/
Log: Adapt this test to the new memoryview API.
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
@@ -124,7 +124,7 @@
memio.seek(5)
buf = memio.getbuffer()
assert bytes(buf) == b"1234567890"
- assert buf[5] == b"6"
+ assert buf[5] == ord(b"6")
# Mutating the buffer updates the BytesIO
buf[3:6] = b"abc"
assert bytes(buf) == b"123abc7890"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit