From 7500ced519c5b6dd48d1f60d976d51bc7b31d05a Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Thu, 23 Dec 2021 12:04:17 +0100 Subject: [PATCH] Fix Zstandard compression unit test --- pandas/tests/io/parser/test_network.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py index 235f19d86a6b3..21cdf6f3274df 100644 --- a/pandas/tests/io/parser/test_network.py +++ b/pandas/tests/io/parser/test_network.py @@ -22,14 +22,11 @@ @pytest.mark.network -@pytest.mark.parametrize( - "compress_type, extension", - icom._compression_to_extension.items(), -) @pytest.mark.parametrize("mode", ["explicit", "infer"]) @pytest.mark.parametrize("engine", ["python", "c"]) -def test_compressed_urls(salaries_table, compress_type, extension, mode, engine): - check_compressed_urls(salaries_table, compress_type, extension, mode, engine) +def test_compressed_urls(salaries_table, mode, engine, compression_only): + extension = icom._compression_to_extension[compression_only] + check_compressed_urls(salaries_table, compression_only, extension, mode, engine) @tm.network