Skip to content

Commit 7f13b5a

Browse files
committed
MAINT: Skip test on PyPy.
Also fix typo.
1 parent 4c5fdd6 commit 7f13b5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

numpy/_core/tests/test_multiarray.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6290,6 +6290,7 @@ def test_check_reference(self):
62906290
assert_raises(ValueError, x.resize, (5, 1))
62916291

62926292
@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")
6293+
@pytest.mark.skipif(IS_PYPY, reason="The method always raises")
62936294
def test_check_reference_module_scope(self):
62946295
code = textwrap.dedent("""
62956296
import numpy as np
@@ -6307,7 +6308,7 @@ def test_check_reference_module_scope(self):
63076308
assert "It is possible that this is a false positive." in e.stdout
63086309
else:
63096310
if sys.version_info >= (3, 14):
6310-
raise AsseritonError("Unexpected success of resize refcheck")
6311+
raise AssertionError("Unexpected success of resize refcheck")
63116312

63126313
def test_check_reference_2(self):
63136314
# see gh-30265

0 commit comments

Comments
 (0)