Skip to content

Commit 19cd759

Browse files
committed
tests: restore some pypy tests that now pass
1 parent 85bcf04 commit 19cd759

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

tests/test_buffers.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def test_from_python():
3636

3737

3838
# https://foss.heptapod.net/pypy/pypy/-/issues/2444
39-
@pytest.mark.xfail("info.PYPY", reason="memory leak in np.array(m, copy=False)")
4039
def test_to_python():
4140
mat = m.Matrix(5, 4)
4241
assert memoryview(mat).shape == (5, 4)
@@ -71,7 +70,6 @@ def test_to_python():
7170
assert cstats.move_assignments == 0
7271

7372

74-
@pytest.mark.xfail("info.PYPY")
7573
def test_inherited_protocol():
7674
"""SquareMatrix is derived from Matrix and inherits the buffer protocol"""
7775

@@ -80,7 +78,6 @@ def test_inherited_protocol():
8078
assert np.asarray(matrix).shape == (5, 5)
8179

8280

83-
@pytest.mark.xfail("info.PYPY")
8481
def test_pointer_to_member_fn():
8582
for cls in [m.Buffer, m.ConstBuffer, m.DerivedBuffer]:
8683
buf = cls()
@@ -89,15 +86,13 @@ def test_pointer_to_member_fn():
8986
assert value == 0x12345678
9087

9188

92-
@pytest.mark.xfail("info.PYPY")
9389
def test_readonly_buffer():
9490
buf = m.BufferReadOnly(0x64)
9591
view = memoryview(buf)
9692
assert view[0] == b'd' if info.PY2 else 0x64
9793
assert view.readonly
9894

9995

100-
@pytest.mark.xfail("info.PYPY")
10196
def test_selective_readonly_buffer():
10297
buf = m.BufferReadOnlySelect()
10398

tests/test_numpy_array.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def test_numpy_view(capture):
243243
"""
244244

245245

246-
@pytest.mark.xfail("info.PYPY")
247246
def test_cast_numpy_int64_to_uint64():
248247
m.function_taking_uint64(123)
249248
m.function_taking_uint64(np.uint64(123))

tests/test_stl_binders.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def test_vector_buffer():
9393
assert "NumPy type info missing for " in str(excinfo.value)
9494

9595

96-
@pytest.mark.xfail("info.PYPY")
9796
def test_vector_buffer_numpy():
9897
np = pytest.importorskip("numpy")
9998
a = np.array([1, 2, 3, 4], dtype=np.int32)

0 commit comments

Comments
 (0)