Skip to content

Commit

Permalink
Remove prepared compressed data. _get_handle will take care of compre…
Browse files Browse the repository at this point in the history
…ssed I/O
  • Loading branch information
goldenbull committed Jan 3, 2017
1 parent 1cb810b commit 9a07250
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 18 deletions.
Binary file removed pandas/io/tests/data/pickle_compression/data.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 0 additions & 17 deletions pandas/io/tests/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,23 +324,6 @@ def test_compression_infer(self):
for ext in extensions:
yield self.compression_infer, ext

def decompression_prepared_data(self, ext):
if ext == '.xz':
tm._skip_if_no_lzma()
pickle_path = os.path.join(tm.get_data_path(),
'pickle_compression',
'data.pickle')
compressed_path = pickle_path + ext
data1 = pd.read_pickle(pickle_path)
data2 = pd.read_pickle(compressed_path)
tm.assert_frame_equal(data1, data2)

def test_decompression_prepared_data(self):
extensions = ['.gz', '.bz2', '.xz', '.zip']
for ext in extensions:
yield self.decompression_prepared_data, ext


if __name__ == '__main__':
nose.runmodule(argv=[__file__, '-vvs', '-x', '--pdb', '--pdb-failure'],
# '--with-coverage', '--cover-package=pandas.core'],
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ def pxd(name):
package_data={'pandas.io': ['tests/data/legacy_hdf/*.h5',
'tests/data/legacy_pickle/*/*.pickle',
'tests/data/legacy_msgpack/*/*.msgpack',
'tests/data/pickle_compression/*',
'tests/data/*.csv*',
'tests/data/*.dta',
'tests/data/*.pickle',
Expand Down

0 comments on commit 9a07250

Please sign in to comment.