Author: Richard Plangger <[email protected]>
Branch: 
Changeset: r89436:aebaccb5bc42
Date: 2017-01-09 14:41 +0100
http://bitbucket.org/pypy/pypy/changeset/aebaccb5bc42/

Log:    memoryview(b"hello") == 104 != "h", 2to3

diff --git a/pypy/module/cpyext/test/test_memoryobject.py 
b/pypy/module/cpyext/test/test_memoryobject.py
--- a/pypy/module/cpyext/test/test_memoryobject.py
+++ b/pypy/module/cpyext/test/test_memoryobject.py
@@ -14,7 +14,7 @@
         assert api.PyObject_CheckBuffer(w_hello)
         w_view = from_ref(space, api.PyMemoryView_FromObject(w_hello))
         w_char = space.call_method(w_view, '__getitem__', space.wrap(0))
-        assert space.eq_w(w_char, space.wrap('h'))
+        assert space.eq_w(w_char, space.wrap(ord('h')))
         w_bytes = space.call_method(w_view, "tobytes")
         assert space.unwrap(w_bytes) == "hello"
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to