File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -645,12 +645,17 @@ def close(self):
645645
646646@td .skip_if_no ("fsspec" )
647647def test_read_csv_chained_url_no_error ():
648+ # GH 60100
648649 tar_file = "pandas/tests/io/data/tar/test-csv.tar"
649- try :
650- pd .read_csv (f"tar://test.csv::file://{ tar_file } " , compression = None )
651- pd .read_csv (f"tar://test.csv::file://{ tar_file } " , compression = "infer" )
652- except Exception as e :
653- pytest .fail (e )
650+
651+ x = pd .read_csv (f"tar://test.csv::file://{ tar_file } " , compression = None )
652+ y = pd .read_csv (f"tar://test.csv::file://{ tar_file } " , compression = "infer" )
653+
654+ x_to_json_expected_output = '{"1;2":{"0":"3;4"}}'
655+ y_to_json_expected_output = '{"1;2":{"0":"3;4"}}'
656+
657+ assert x_to_json_expected_output == x .to_json ()
658+ assert y_to_json_expected_output == y .to_json ()
654659
655660
656661@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments