Skip to content

Commit d27e57d

Browse files
committed
Fix "ImportError: No module named backports"
AppVeyor doesn't have backports installed in the 2.7 test so xz decompression fails. Should fix the following errors: ERROR: Test reading xz-compressed tables from URL: compression="infer", engine="python" ERROR: Test reading xz-compressed tables from URL: compression="infer", engine="c"
1 parent 97a1c25 commit d27e57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/tests/parser/test_network.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_compressed_urls(self):
4747
yield (test_fxn, url) + args
4848

4949
def check_table(self, url, compression, engine):
50-
if compression == 'xz':
50+
if url.endswith('.xz'):
5151
tm._skip_if_no_lzma()
5252
url_table = read_table(url, compression=compression, engine=engine)
5353
tm.assert_frame_equal(url_table, self.local_table)

0 commit comments

Comments
 (0)