mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
Keep skipping buffer tests on pypy
Adding numpy to the pypy test exposed a segfault caused by the buffer tests in test_stl_binders.py: the first such test was explicitly skipped on pypy, but the second (test_vector_buffer_numpy) which also seems to cause an occasional segfault was just marked as requiring numpy. Explicitly skip it on pypy as well (until a workaround, fix, or pypy fix are found).
This commit is contained in:
parent
d170731f6f
commit
90bac96321
@ -33,6 +33,8 @@ def test_vector_int():
|
||||
assert v_int2 == VectorInt([0, 99, 2, 3])
|
||||
|
||||
|
||||
# As of pypy 5.7.1, running this and the next test seems to trigger a segfault
|
||||
# related to the PyPy's buffer protocol.
|
||||
@pytest.unsupported_on_pypy
|
||||
def test_vector_buffer():
|
||||
from pybind11_tests import VectorUChar, create_undeclstruct
|
||||
@ -53,6 +55,7 @@ def test_vector_buffer():
|
||||
create_undeclstruct() # Undeclared struct contents, no buffer interface
|
||||
|
||||
|
||||
@pytest.unsupported_on_pypy
|
||||
@pytest.requires_numpy
|
||||
def test_vector_buffer_numpy():
|
||||
from pybind11_tests import VectorInt, VectorStruct, get_vectorstruct
|
||||
|
Loading…
Reference in New Issue
Block a user