Skip to content

Commit

Permalink
Merge pull request #21547 from charris/fix-pypy-wheel-failures
Browse files Browse the repository at this point in the history
MAINT: Skip tests that fail on PyPy.
  • Loading branch information
charris committed May 20, 2022
2 parents 99766d3 + dcc92ae commit 60f2f4d
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 60f2f4d

Please sign in to comment.