File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 1313class CompressionTests (object ):
1414
1515 def test_zip (self ):
16- try :
17- import zipfile
18- except ImportError :
19- pytest .skip ('need zipfile to run' )
16+ import zipfile
2017
2118 with open (self .csv1 , 'rb' ) as data_file :
2219 data = data_file .read ()
@@ -65,10 +62,7 @@ def test_zip(self):
6562 f , compression = 'zip' )
6663
6764 def test_gzip (self ):
68- try :
69- import gzip
70- except ImportError :
71- pytest .skip ('need gzip to run' )
65+ import gzip
7266
7367 with open (self .csv1 , 'rb' ) as data_file :
7468 data = data_file .read ()
@@ -94,10 +88,7 @@ def test_gzip(self):
9488 tm .assert_frame_equal (result , expected )
9589
9690 def test_bz2 (self ):
97- try :
98- import bz2
99- except ImportError :
100- pytest .skip ('need bz2 to run' )
91+ import bz2
10192
10293 with open (self .csv1 , 'rb' ) as data_file :
10394 data = data_file .read ()
You can’t perform that action at this time.
0 commit comments