Skip to content

Commit 272669b

Browse files
committed
Enable nose execution of test generators
1 parent 28373f1 commit 272669b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/io/tests/parser/test_network.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pandas.io.parsers import read_csv, read_table
1515

1616

17-
class TestCompressedUrl(tm.TestCase):
17+
class TestCompressedUrl:
1818

1919
compression_to_extension = {
2020
'gzip': '.gz',
@@ -23,17 +23,15 @@ class TestCompressedUrl(tm.TestCase):
2323
'xz': '.xz',
2424
}
2525

26-
def setUp(self):
27-
dirpath = tm.get_data_path()
28-
path = os.path.join(dirpath, 'salary.table.csv')
26+
def __init__(self):
27+
path = os.path.join(tm.get_data_path(), 'salary.table.csv')
2928
self.local_table = read_table(path)
3029
# NOTE: change URL once https://github.com/pandas-dev/pandas/pull/14587
3130
# is merged.
3231
self.base_url = ('https://github.com/dhimmel/pandas/raw/'
3332
'24341b53341455433abcb6d01a2c7b4071e35316/'
3433
'pandas/io/tests/parser/data/salaries.csv')
3534

36-
@tm.network
3735
def test_compressed_urls(self):
3836
"""Test reading compressed tables from URL."""
3937
for compression, extension in self.compression_to_extension.items():

0 commit comments

Comments
 (0)