Skip to content

Commit 491350c

Browse files
committed
Unskip sql/gzip tests
1 parent d4c44a2 commit 491350c

File tree

8 files changed

+1
-18
lines changed

8 files changed

+1
-18
lines changed

pandas/tests/io/formats/test_to_csv.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,6 @@ def test_to_csv_compression(self, compression_only,
547547
filename = "test."
548548

549549
if compression == "gzip":
550-
pytest.skip('trying to find unclosed socket causing that is '
551-
'causing a Resourcewarning')
552550
filename += "gz"
553551
else:
554552
# xz --> .xz

pandas/tests/io/json/test_compression.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ def test_to_json_compression(compression_only,
109109
filename = "test."
110110

111111
if compression == "gzip":
112-
pytest.skip('trying to find unclosed socket causing that is '
113-
'causing a Resourcewarning')
114112
filename += "gz"
115113
else:
116114
# xz --> .xz

pandas/tests/io/parser/c_parser_only.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ def test_buffer_rd_bytes(self):
5050
'\x1f\x8b\x08\x00VT\x97V\x00\x03\xed]\xefO'
5151
for i in range(100):
5252
try:
53-
pytest.skip('trying to find unclosed socket causing that is '
54-
'causing a Resourcewarning')
5553
self.read_csv(StringIO(data),
5654
compression='gzip',
5755
delim_whitespace=True)

pandas/tests/io/parser/python_parser_only.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ def test_decompression_regex_sep(self):
146146
expected = self.read_csv(self.csv1)
147147

148148
with tm.ensure_clean() as path:
149-
pytest.skip('trying to find unclosed socket causing that is '
150-
'causing a Resourcewarning')
151149
tmp = gzip.GzipFile(path, mode='wb')
152150
tmp.write(data)
153151
tmp.close()

pandas/tests/io/parser/test_read_fwf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ def test_fwf_compression(self):
205205
data = bytes(data, encoding='utf-8')
206206
comps = [('gzip', gzip.GzipFile), ('bz2', bz2.BZ2File)]
207207
for comp_name, compresser in comps:
208-
if comp_name == 'gzip':
209-
pytest.skip('trying to find unclosed socket causing that is '
210-
'causing a Resourcewarning')
211208
with tm.ensure_clean() as path:
212209
tmp = compresser(path, mode='wb')
213210
tmp.write(data)

pandas/tests/io/test_parquet.py

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

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

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

pandas/tests/io/test_pickle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ def compress_file(self, src_path, dest_path, compression):
326326
return
327327

328328
if compression == 'gzip':
329-
pytest.skip('trying to find unclosed socket causing that is '
330-
'causing a Resourcewarning')
331329
import gzip
332330
f = gzip.open(dest_path, "w")
333331
elif compression == 'bz2':

pandas/tests/io/test_sql.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,8 +1963,6 @@ class TestSQLiteAlchemyConn(_TestSQLiteAlchemy, _TestSQLAlchemyConn):
19631963
# -----------------------------------------------------------------------------
19641964
# -- Test Sqlite / MySQL fallback
19651965

1966-
@pytest.mark.skip('trying to find unclosed socket causing that is '
1967-
'causing a Resourcewarning')
19681966
@pytest.mark.single
19691967
class TestSQLiteFallback(SQLiteMixIn, PandasSQLTest):
19701968
"""

0 commit comments

Comments
 (0)