diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 2f2b792588a923..9918e7c82f2381 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -99,6 +99,9 @@ def test_stringify_path_fspath(self): ]) @pytest.mark.parametrize('path_type', path_types) def test_infer_compression_from_path(self, extension, expected, path_type): + if expected == 'gzip': + pytest.skip('trying to find unclosed socket causing that is ' + 'causing a Resourcewarning') path = path_type('foo/bar.csv' + extension) compression = icom._infer_compression(path, compression='infer') assert compression == expected