Skip to content

Commit

Permalink
Attempt to get rid of second ResourceWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Nov 13, 2018
1 parent 4ca0c6d commit accab28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandas/tests/io/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit accab28

Please sign in to comment.