From 0e7c87ed1f15d6f3133e83329fa54282b6fb4e19 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 19 Jun 2021 12:18:09 -0500 Subject: [PATCH 1/4] xfail the correct test #42130 --- pandas/tests/io/json/test_pandas.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 0ffc6044a5897..451073d71ee84 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -28,8 +28,6 @@ ) import pandas._testing as tm -pytestmark = pytest.mark.skipif(PY310, reason="timeout with coverage") - _seriesd = tm.getSeriesData() _frame = DataFrame(_seriesd) @@ -1181,6 +1179,7 @@ def test_sparse(self): expected = s.to_json() assert expected == ss.to_json() + pytest.mark.xfail(PY310, reason="segfail GH 42130") @pytest.mark.parametrize( "ts", [ From f57db676580b67a430637638962e726e3ef80033 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 19 Jun 2021 12:21:15 -0500 Subject: [PATCH 2/4] fix typo --- pandas/tests/io/json/test_pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 451073d71ee84..9a5aedb79dab7 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1179,7 +1179,7 @@ def test_sparse(self): expected = s.to_json() assert expected == ss.to_json() - pytest.mark.xfail(PY310, reason="segfail GH 42130") + pytest.mark.xfail(PY310, reason="segfault GH 42130") @pytest.mark.parametrize( "ts", [ From 1007dd9fb4df5e738619cde20e804c8ca5206d24 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 19 Jun 2021 13:12:15 -0500 Subject: [PATCH 3/4] fix typo --- pandas/tests/io/json/test_pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 9a5aedb79dab7..b4fbbb32d8f8a 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1179,7 +1179,7 @@ def test_sparse(self): expected = s.to_json() assert expected == ss.to_json() - pytest.mark.xfail(PY310, reason="segfault GH 42130") + @pytest.mark.xfail(PY310, reason="segfault GH 42130") @pytest.mark.parametrize( "ts", [ From 73fbb15e6e21bb5110797f5bbfd857630e1c2013 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 19 Jun 2021 15:45:44 -0500 Subject: [PATCH 4/4] skip tests --- pandas/tests/io/json/test_pandas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index b4fbbb32d8f8a..2d418fcbcc395 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1179,7 +1179,7 @@ def test_sparse(self): expected = s.to_json() assert expected == ss.to_json() - @pytest.mark.xfail(PY310, reason="segfault GH 42130") + @pytest.mark.skipif(PY310, reason="segfault GH 42130") @pytest.mark.parametrize( "ts", [ @@ -1197,6 +1197,7 @@ def test_tz_is_utc(self, ts): dt = ts.to_pydatetime() assert dumps(dt, iso_dates=True) == exp + @pytest.mark.skipif(PY310, reason="segfault GH 42130") @pytest.mark.parametrize( "tz_range", [