Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r90885:66ea6bdef550
Date: 2017-03-31 18:04 +0100
http://bitbucket.org/pypy/pypy/changeset/66ea6bdef550/

Log:    Add failing test (fixed on branch PyBuffer)

diff --git a/pypy/objspace/std/test/test_memoryobject.py 
b/pypy/objspace/std/test/test_memoryobject.py
--- a/pypy/objspace/std/test/test_memoryobject.py
+++ b/pypy/objspace/std/test/test_memoryobject.py
@@ -56,8 +56,10 @@
         assert list(w) == [97]
         v[::2] = b'ABC'
         assert data == bytearray(eval("b'AbBeCg'"))
-        assert v[::2].tobytes() == b'ABC'
-        assert v[::-2].tobytes() == b'geb'
+        w = v[::2]
+        assert w.tobytes() == bytes(w) == b'ABC'
+        w = v[::-2]
+        assert w.tobytes() == bytes(w) == b'geb'
 
     def test_memoryview_attrs(self):
         v = memoryview(b"a"*100)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to