File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 14
14
from pandas .io .parsers import read_csv , read_table
15
15
16
16
17
- class TestCompressedUrl ( tm . TestCase ) :
17
+ class TestCompressedUrl :
18
18
19
19
compression_to_extension = {
20
20
'gzip' : '.gz' ,
@@ -23,17 +23,15 @@ class TestCompressedUrl(tm.TestCase):
23
23
'xz' : '.xz' ,
24
24
}
25
25
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' )
29
28
self .local_table = read_table (path )
30
29
# NOTE: change URL once https://github.com/pandas-dev/pandas/pull/14587
31
30
# is merged.
32
31
self .base_url = ('https://github.com/dhimmel/pandas/raw/'
33
32
'24341b53341455433abcb6d01a2c7b4071e35316/'
34
33
'pandas/io/tests/parser/data/salaries.csv' )
35
34
36
- @tm .network
37
35
def test_compressed_urls (self ):
38
36
"""Test reading compressed tables from URL."""
39
37
for compression , extension in self .compression_to_extension .items ():
You can’t perform that action at this time.
0 commit comments