@@ -275,12 +275,14 @@ def test_dataframe_compression_defaults_to_infer(
275
275
276
276
277
277
@pytest .mark .parametrize ('write_method,write_kwargs,read_method,read_kwargs' , [
278
- ('to_csv' , {'index' : False , 'header' : True }, pandas .read_csv , {'squeeze' : True }),
278
+ ('to_csv' , {'index' : False , 'header' : True },
279
+ pandas .read_csv , {'squeeze' : True }),
279
280
('to_json' , {}, pandas .read_json , {'typ' : 'series' }),
280
281
('to_pickle' , {}, pandas .read_pickle , {}),
281
282
])
282
283
def test_series_compression_defaults_to_infer (
283
- write_method , write_kwargs , read_method , read_kwargs , compression_only ):
284
+ write_method , write_kwargs , read_method , read_kwargs , compression_only
285
+ ):
284
286
# Test that Series.to_* methods default to inferring compression from
285
287
# paths. https://github.com/pandas-dev/pandas/pull/22011
286
288
input = Series ([0 , 5 , - 2 , 10 ], name = 'X' )
@@ -289,7 +291,7 @@ def test_series_compression_defaults_to_infer(
289
291
# assumes that compression='infer' is the default
290
292
getattr (input , write_method )(path , ** write_kwargs )
291
293
output = read_method (path , compression = compression_only , ** read_kwargs )
292
- tm .assert_series_equal (output , input )
294
+ tm .assert_series_equal (output , input , check_names = False )
293
295
294
296
295
297
def test_compression_warning (compression_only ):
0 commit comments