diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-01-19 15:52:03 -0600 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-01-19 16:15:37 -0600 |
| commit | dfc898913404533d54bf0000d1d17ff92b6ae0e4 (patch) | |
| tree | 659bdd934d73f4fd709d573a0e8d5c9164006360 /numpy | |
| parent | 9ef1a61ced90dbfd8fdf345fc748e1041ad4e017 (diff) | |
| download | numpy-dfc898913404533d54bf0000d1d17ff92b6ae0e4.tar.gz | |
TST: Catch two more errors that runs into the PyPy issue
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/lib/tests/test_loadtxt.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_loadtxt.py b/numpy/lib/tests/test_loadtxt.py index 18a814b69..366210a0f 100644 --- a/numpy/lib/tests/test_loadtxt.py +++ b/numpy/lib/tests/test_loadtxt.py @@ -491,6 +491,8 @@ def test_invalid_converter(conv): np.loadtxt(StringIO("1 2\n3 4"), converters=conv) +@pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8), + reason="PyPy bug in error formatting") def test_converters_dict_raises_non_integer_key(): with pytest.raises(TypeError, match="keys of the converters dict"): np.loadtxt(StringIO("1 2\n3 4"), converters={"a": int}) @@ -541,6 +543,8 @@ def test_quote_support_default(): assert_array_equal(res, expected) +@pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8), + reason="PyPy bug in error formatting") def test_quotechar_multichar_error(): txt = StringIO("1,2\n3,4") msg = r".*must be a single unicode character or None" |
