Author: Ronan Lamy <[email protected]>
Branch: PyBuffer
Changeset: r91063:8252315ff919
Date: 2017-04-17 16:03 +0100
http://bitbucket.org/pypy/pypy/changeset/8252315ff919/
Log: Avoid skipping most tests in this file when running on CPython with
-A
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
@@ -7,8 +7,8 @@
from pypy.interpreter.buffer import PyBuffer
from pypy.conftest import option
-class AppTestMemoryView:
- spaceconfig = dict(usemodules=['array', 'sys', '_rawffi'])
+class AppTestMemoryView(object):
+ spaceconfig = dict(usemodules=['array', 'sys'])
def test_basic(self):
v = memoryview(b"abc")
@@ -195,6 +195,9 @@
assert m[2] == 1
def test_pypy_raw_address_base(self):
+ import sys
+ if '__pypy__' not in sys.modules:
+ skip('PyPy-only test')
a = memoryview(b"foobar")._pypy_raw_address()
assert a != 0
b = memoryview(bytearray(b"foobar"))._pypy_raw_address()
@@ -282,6 +285,9 @@
assert m2.itemsize == m1.itemsize
assert m2.shape == m1.shape
+class AppTestCtypes(object):
+ spaceconfig = dict(usemodules=['sys', '_rawffi'])
+
def test_cast_ctypes(self):
import _rawffi, sys
a = _rawffi.Array('i')(1)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit