Skip to content

Commit 4c06885

Browse files
committed
Attempt to get rid of second ResourceWarning
1 parent 70fe640 commit 4c06885

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/io/test_parquet.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,11 @@ def test_compression(self, engine, compression):
279279

280280
if compression == 'snappy':
281281
pytest.importorskip('snappy')
282-
283282
elif compression == 'brotli':
284283
pytest.importorskip('brotli')
284+
elif compression == 'gzip':
285+
pytest.skip(reason='trying to find unclosed socket causing that is'
286+
'causing a Resourcewarning')
285287

286288
df = pd.DataFrame({'A': [1, 2, 3]})
287289
check_round_trip(df, engine, write_kwargs={'compression': compression})

0 commit comments

Comments
 (0)