Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Skip tests that fail on PyPy. #21547

Merged
merged 1 commit into from May 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions numpy/lib/tests/test_io.py
Expand Up @@ -203,6 +203,7 @@ def roundtrip(self, *args, **kwargs):
self.arr_reloaded.fid.close()
os.remove(self.arr_reloaded.fid.name)

@pytest.mark.skipif(IS_PYPY, reason="Hangs on PyPy")
@pytest.mark.skipif(not IS_64BIT, reason="Needs 64bit platform")
@pytest.mark.slow
def test_big_arrays(self):
Expand Down Expand Up @@ -779,6 +780,8 @@ def test_comments_multiple(self):
a = np.array([[1, 2, 3], [4, 5, 6]], int)
assert_array_equal(x, a)

@pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8),
reason="PyPy bug in error formatting")
def test_comments_multi_chars(self):
c = TextIO()
c.write('/* comment\n1,2,3,5\n')
Expand Down Expand Up @@ -984,6 +987,8 @@ def test_from_float_hex(self):
res = np.loadtxt(c, dtype=dt)
assert_equal(res, tgt, err_msg="%s" % dt)

@pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8),
reason="PyPy bug in error formatting")
def test_default_float_converter_no_default_hex_conversion(self):
"""
Ensure that fromhex is only used for values with the correct prefix and
Expand All @@ -995,6 +1000,8 @@ def test_default_float_converter_no_default_hex_conversion(self):
):
np.loadtxt(c)

@pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8),
reason="PyPy bug in error formatting")
def test_default_float_converter_exception(self):
"""
Ensure that the exception message raised during failed floating point
Expand Down