Skip to content

Commit 60ea58c

Browse files
committed
test_to_csv_compression_dict uses compression_only fixture
1 parent b41be54 commit 60ea58c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/io/formats/test_to_csv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ def test_to_csv_compression(self, compression_only,
538538
compression=read_compression)
539539
tm.assert_frame_equal(result, df)
540540

541-
@pytest.mark.parametrize("method", ["gzip", "bz2", "zip", "xz"])
542-
def test_to_csv_compression_dict(self, method):
541+
def test_to_csv_compression_dict(self, compression_only):
543542
# GH 26023
543+
method = compression_only
544544
df = DataFrame({"ABC": [1]})
545545
filename = "to_csv_compress_as_dict."
546546
filename += "gz" if method == "gzip" else method

0 commit comments

Comments
 (0)