Author: Richard Plangger <[email protected]>
Branch: 
Changeset: r89445:245faec2ea07
Date: 2017-01-09 17:01 +0100
http://bitbucket.org/pypy/pypy/changeset/245faec2ea07/

Log:    add b prefix to string to pass bytes for this test

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,7 +56,7 @@
         assert u"abc" != memoryview("abc")
 
     def test_pypy_raw_address_base(self):
-        a = memoryview("foobar")._pypy_raw_address()
+        a = memoryview(b"foobar")._pypy_raw_address()
         assert a != 0
-        b = memoryview(bytearray("foobar"))._pypy_raw_address()
+        b = memoryview(bytearray(b"foobar"))._pypy_raw_address()
         assert b != 0
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to