@@ -114,12 +114,8 @@ def test_bz2(self): |
|
|
114 |
114 |
path, compression='bz3') |
115 |
115 |
|
116 |
116 |
with open(path, 'rb') as fin: |
117 |
|
-if compat.PY3: |
118 |
|
-result = self.read_csv(fin, compression='bz2') |
119 |
|
-tm.assert_frame_equal(result, expected) |
120 |
|
-elif self.engine is not 'python': |
121 |
|
-self.assertRaises(ValueError, self.read_csv, |
122 |
|
-fin, compression='bz2') |
|
117 |
+result = self.read_csv(fin, compression='bz2') |
|
118 |
+tm.assert_frame_equal(result, expected) |
123 |
119 |
|
124 |
120 |
with tm.ensure_clean('test.bz2') as path: |
125 |
121 |
tmp = bz2.BZ2File(path, mode='wb') |