Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pandas/tests/io/json/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,8 +1793,11 @@ def test_read_json_with_very_long_file_path(self, compression):
@pytest.mark.parametrize(
"date_format,key", [("epoch", 86400000), ("iso", "P1DT0H0M0S")]
)
def test_timedelta_as_label(self, date_format, key):
df = DataFrame([[1]], columns=[pd.Timedelta("1D")])
def test_timedelta_as_label(self, date_format, key, unit, request):
if unit != "ns":
mark = pytest.mark.xfail(reason="GH#63236 failure to round-trip")
request.applymarker(mark)
df = DataFrame([[1]], columns=[pd.Timedelta("1D").as_unit(unit)])
expected = f'{{"{key}":{{"0":1}}}}'

expected_warning = None
Expand Down
Loading