@@ -53,8 +53,7 @@ def test_compression_size_fh(obj, method, compression_only):
53
53
])
54
54
def test_dataframe_compression_defaults_to_infer (
55
55
write_method , write_kwargs , read_method , compression_only ):
56
- # Test that DataFrame.to_* methods default to inferring compression from
57
- # paths. GH 22004
56
+ # GH22004
58
57
input = pd .DataFrame ([[1.0 , 0 , - 4 ], [3.4 , 5 , 2 ]], columns = ['X' , 'Y' , 'Z' ])
59
58
extension = icom ._compression_to_extension [compression_only ]
60
59
with tm .ensure_clean ('compressed' + extension ) as path :
@@ -72,8 +71,7 @@ def test_dataframe_compression_defaults_to_infer(
72
71
def test_series_compression_defaults_to_infer (
73
72
write_method , write_kwargs , read_method , read_kwargs ,
74
73
compression_only ):
75
- # Test that Series.to_* methods default to inferring compression from
76
- # paths. GH 22004
74
+ # GH22004
77
75
input = pd .Series ([0 , 5 , - 2 , 10 ], name = 'X' )
78
76
extension = icom ._compression_to_extension [compression_only ]
79
77
with tm .ensure_clean ('compressed' + extension ) as path :
@@ -84,7 +82,7 @@ def test_series_compression_defaults_to_infer(
84
82
85
83
def test_compression_warning (compression_only ):
86
84
# Assert that passing a file object to to_csv while explicitly specifying a
87
- # compression protocol triggers a RuntimeWarning, as per GH 21227 .
85
+ # compression protocol triggers a RuntimeWarning, as per GH21227 .
88
86
# Note that pytest has an issue that causes assert_produces_warning to fail
89
87
# in Python 2 if the warning has occurred in previous tests
90
88
# (see https://git.io/fNEBm & https://git.io/fNEBC). Hence, should this
0 commit comments