Skip to content

Commit 310b04c

Browse files
committed
TST: xfail non-nano json test
1 parent aa5726a commit 310b04c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,8 +1793,11 @@ def test_read_json_with_very_long_file_path(self, compression):
17931793
@pytest.mark.parametrize(
17941794
"date_format,key", [("epoch", 86400000), ("iso", "P1DT0H0M0S")]
17951795
)
1796-
def test_timedelta_as_label(self, date_format, key):
1797-
df = DataFrame([[1]], columns=[pd.Timedelta("1D")])
1796+
def test_timedelta_as_label(self, date_format, key, unit, request):
1797+
if unit != "ns":
1798+
mark = pytest.mark.xfail(reason="GH#63236 failure to round-trip")
1799+
request.applymarker(mark)
1800+
df = DataFrame([[1]], columns=[pd.Timedelta("1D").as_unit(unit)])
17981801
expected = f'{{"{key}":{{"0":1}}}}'
17991802

18001803
expected_warning = None

0 commit comments

Comments
 (0)