Author: Ronan Lamy <ronan.l...@gmail.com> Branch: py3k Changeset: r86939:c68432b5be9f Date: 2016-09-07 15:29 +0100 http://bitbucket.org/pypy/pypy/changeset/c68432b5be9f/
Log: fix bytebuffer test diff --git a/pypy/module/__pypy__/test/test_bytebuffer.py b/pypy/module/__pypy__/test/test_bytebuffer.py --- a/pypy/module/__pypy__/test/test_bytebuffer.py +++ b/pypy/module/__pypy__/test/test_bytebuffer.py @@ -14,12 +14,9 @@ assert b[-3] == ord(b'+') exc = raises(ValueError, "b[3:5] = b'abc'") assert str(exc.value) == "cannot modify size of memoryview object" - raises(NotImplementedError, "b[3:7:2] = b'abc'") b = bytebuffer(10) b[1:3] = b'xy' assert bytes(b) == b"\x00xy" + b"\x00" * 7 - # XXX: supported in 3.3 - raises(NotImplementedError, "b[4:8:2] = b'zw'") - #b[4:8:2] = b'zw' - #assert bytes(b) == b"\x00xy\x00z\x00w" + b"\x00" * 3 + b[4:8:2] = b'zw' + assert bytes(b) == b"\x00xy\x00z\x00w" + b"\x00" * 3 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit