Fix "ImportError: No module named backports" · pandas-dev/pandas@d27e57d (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit d27e57d

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"

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ def test_compressed_urls(self):
47 47 yield (test_fxn, url) + args
48 48
49 49 def check_table(self, url, compression, engine):
50 -if compression == 'xz':
50 +if url.endswith('.xz'):
51 51 tm._skip_if_no_lzma()
52 52 url_table = read_table(url, compression=compression, engine=engine)
53 53 tm.assert_frame_equal(url_table, self.local_table)