Author: Matti Picus <[email protected]>
Branch: py3.5
Changeset: r89320:e4c3e3dff2bf
Date: 2017-01-02 23:26 +0200
http://bitbucket.org/pypy/pypy/changeset/e4c3e3dff2bf/
Log: tweak tests
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
@@ -10,7 +10,8 @@
class TestMemoryViewObject(BaseApiTest):
def test_fromobject(self, space, api):
w_hello = space.newbytes("hello")
- assert api.PyObject_CheckBuffer(w_hello)
+ # implemented as a C macro
+ #assert api.PyObject_CheckBuffer(w_hello)
w_view = 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'))
@@ -123,7 +124,7 @@
arr = module.PyMyArray(10)
ten = foo.get_len(arr)
assert ten == 10
- ten = foo.get_len('1234567890')
+ ten = foo.get_len(b'1234567890')
assert ten == 10
ten = foo.test_buffer(arr)
assert ten == 10
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit