File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 13
13
class CompressionTests (object ):
14
14
15
15
def test_zip (self ):
16
- try :
17
- import zipfile
18
- except ImportError :
19
- pytest .skip ('need zipfile to run' )
16
+ import zipfile
20
17
21
18
with open (self .csv1 , 'rb' ) as data_file :
22
19
data = data_file .read ()
@@ -65,10 +62,7 @@ def test_zip(self):
65
62
f , compression = 'zip' )
66
63
67
64
def test_gzip (self ):
68
- try :
69
- import gzip
70
- except ImportError :
71
- pytest .skip ('need gzip to run' )
65
+ import gzip
72
66
73
67
with open (self .csv1 , 'rb' ) as data_file :
74
68
data = data_file .read ()
@@ -94,10 +88,7 @@ def test_gzip(self):
94
88
tm .assert_frame_equal (result , expected )
95
89
96
90
def test_bz2 (self ):
97
- try :
98
- import bz2
99
- except ImportError :
100
- pytest .skip ('need bz2 to run' )
91
+ import bz2
101
92
102
93
with open (self .csv1 , 'rb' ) as data_file :
103
94
data = data_file .read ()
You can’t perform that action at this time.
0 commit comments