File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1414from  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 ():
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments