Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 401cbca

Browse files
committed
skip test on pypy
1 parent e419b84 commit 401cbca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/_core/tests/test_deprecations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import numpy._core._struct_ufunc_tests as struct_ufunc
1313
from numpy._core._multiarray_tests import fromstring_null_term_c_api # noqa: F401
1414
from numpy.testing import assert_raises, temppath
15-
15+
from numpy.testing import IS_PYPY
1616

1717
class _DeprecationTestCase:
1818
# Just as warning: warnings uses re.match, so the start of this message
@@ -413,6 +413,7 @@ def test_deprecated_strides_set(self):
413413
x = np.eye(2)
414414
self.assert_deprecated(setattr, args=(x, 'strides', x.strides))
415415

416+
@pytest.mark.skipif(IS_PYPY, reason="PyPy handles refcounts differently")
416417
def test_deprecated_dtype_set(self):
417418
x = np.eye(2)
418419
self.assert_deprecated(setattr, args=(x, "dtype", int))

0 commit comments

Comments
 (0)