@@ -189,6 +189,7 @@ def test_roundtrip_simple(self, orient, convert_axes, dtype, float_frame):
189
189
190
190
assert_json_roundtrip_equal (result , expected , orient )
191
191
192
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
192
193
@pytest .mark .parametrize ("dtype" , [False , np .int64 ])
193
194
@pytest .mark .parametrize ("convert_axes" , [True , False ])
194
195
def test_roundtrip_intframe (self , orient , convert_axes , dtype , int_frame ):
@@ -274,6 +275,7 @@ def test_roundtrip_empty(self, orient, convert_axes):
274
275
275
276
tm .assert_frame_equal (result , expected )
276
277
278
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
277
279
@pytest .mark .parametrize ("convert_axes" , [True , False ])
278
280
def test_roundtrip_timestamp (self , orient , convert_axes , datetime_frame ):
279
281
# TODO: improve coverage with date_format parameter
@@ -701,6 +703,7 @@ def test_series_roundtrip_simple(self, orient, string_series, using_infer_string
701
703
702
704
tm .assert_series_equal (result , expected )
703
705
706
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
704
707
@pytest .mark .parametrize ("dtype" , [False , None ])
705
708
def test_series_roundtrip_object (self , orient , dtype , object_series ):
706
709
data = StringIO (object_series .to_json (orient = orient ))
@@ -810,6 +813,7 @@ def test_path(self, float_frame, int_frame, datetime_frame):
810
813
df .to_json (path )
811
814
read_json (path )
812
815
816
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
813
817
def test_axis_dates (self , datetime_series , datetime_frame ):
814
818
# frame
815
819
json = StringIO (datetime_frame .to_json ())
@@ -822,6 +826,7 @@ def test_axis_dates(self, datetime_series, datetime_frame):
822
826
tm .assert_series_equal (result , datetime_series , check_names = False )
823
827
assert result .name is None
824
828
829
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
825
830
def test_convert_dates (self , datetime_series , datetime_frame ):
826
831
# frame
827
832
df = datetime_frame
@@ -912,6 +917,7 @@ def test_convert_dates_infer(self, infer_word):
912
917
result = read_json (StringIO (ujson_dumps (data )))[["id" , infer_word ]]
913
918
tm .assert_frame_equal (result , expected )
914
919
920
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
915
921
@pytest .mark .parametrize (
916
922
"date,date_unit" ,
917
923
[
@@ -972,6 +978,7 @@ def test_date_format_series_raises(self, datetime_series):
972
978
with pytest .raises (ValueError , match = msg ):
973
979
ts .to_json (date_format = "iso" , date_unit = "foo" )
974
980
981
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
975
982
def test_date_unit (self , unit , datetime_frame ):
976
983
df = datetime_frame
977
984
df ["date" ] = Timestamp ("20130101 20:43:42" ).as_unit ("ns" )
@@ -1112,6 +1119,7 @@ def test_round_trip_exception(self, datapath):
1112
1119
res = res .fillna (np .nan )
1113
1120
tm .assert_frame_equal (res , df )
1114
1121
1122
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
1115
1123
@pytest .mark .network
1116
1124
@pytest .mark .single_cpu
1117
1125
@pytest .mark .parametrize (
@@ -1414,6 +1422,7 @@ def test_read_inline_jsonl(self):
1414
1422
expected = DataFrame ([[1 , 2 ], [1 , 2 ]], columns = ["a" , "b" ])
1415
1423
tm .assert_frame_equal (result , expected )
1416
1424
1425
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
1417
1426
@pytest .mark .single_cpu
1418
1427
@td .skip_if_not_us_locale
1419
1428
def test_read_s3_jsonl (self , s3_public_bucket_with_data , s3so ):
@@ -2013,6 +2022,7 @@ def test_json_multiindex(self):
2013
2022
result = series .to_json (orient = "index" )
2014
2023
assert result == expected
2015
2024
2025
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
2016
2026
@pytest .mark .single_cpu
2017
2027
def test_to_s3 (self , s3_public_bucket , s3so ):
2018
2028
# GH 28375
@@ -2134,6 +2144,7 @@ def test_json_uint64(self):
2134
2144
result = df .to_json (orient = "split" )
2135
2145
assert result == expected
2136
2146
2147
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
2137
2148
def test_read_json_dtype_backend (
2138
2149
self , string_storage , dtype_backend , orient , using_infer_string
2139
2150
):
0 commit comments