Skip to content

Commit 8bb29e0

Browse files
committed
MNT: xfail flaky test on pypy
1 parent b1656d2 commit 8bb29e0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

numpy/tests/test_ctypeslib.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88
import numpy as np
99
from numpy.ctypeslib import as_array, load_library, ndpointer
10-
from numpy.testing import assert_, assert_array_equal, assert_equal, assert_raises
10+
from numpy.testing import (
11+
IS_PYPY,
12+
assert_,
13+
assert_array_equal,
14+
assert_equal,
15+
assert_raises,
16+
)
1117

1218
try:
1319
import ctypes
@@ -204,6 +210,8 @@ def test_array(self):
204210
assert_equal(a.shape, (3, 2))
205211
assert_array_equal(a, np.array([[1, 2], [3, 4], [5, 6]]))
206212

213+
@pytest.mark.xfail(
214+
IS_PYPY, reason="Test is flaky on pypy, see pypy/pypy#5247")
207215
def test_pointer(self):
208216
from ctypes import POINTER, c_int, cast
209217

0 commit comments

Comments
 (0)