Skip to content

Commit 9a07250

Browse files
committed
Remove prepared compressed data. _get_handle will take care of compressed I/O
1 parent 1cb810b commit 9a07250

File tree

7 files changed

+0
-18
lines changed

7 files changed

+0
-18
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

pandas/io/tests/test_pickle.py

-17
Original file line numberDiff line numberDiff line change
@@ -324,23 +324,6 @@ def test_compression_infer(self):
324324
for ext in extensions:
325325
yield self.compression_infer, ext
326326

327-
def decompression_prepared_data(self, ext):
328-
if ext == '.xz':
329-
tm._skip_if_no_lzma()
330-
pickle_path = os.path.join(tm.get_data_path(),
331-
'pickle_compression',
332-
'data.pickle')
333-
compressed_path = pickle_path + ext
334-
data1 = pd.read_pickle(pickle_path)
335-
data2 = pd.read_pickle(compressed_path)
336-
tm.assert_frame_equal(data1, data2)
337-
338-
def test_decompression_prepared_data(self):
339-
extensions = ['.gz', '.bz2', '.xz', '.zip']
340-
for ext in extensions:
341-
yield self.decompression_prepared_data, ext
342-
343-
344327
if __name__ == '__main__':
345328
nose.runmodule(argv=[__file__, '-vvs', '-x', '--pdb', '--pdb-failure'],
346329
# '--with-coverage', '--cover-package=pandas.core'],

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ def pxd(name):
660660
package_data={'pandas.io': ['tests/data/legacy_hdf/*.h5',
661661
'tests/data/legacy_pickle/*/*.pickle',
662662
'tests/data/legacy_msgpack/*/*.msgpack',
663-
'tests/data/pickle_compression/*',
664663
'tests/data/*.csv*',
665664
'tests/data/*.dta',
666665
'tests/data/*.pickle',

0 commit comments

Comments
 (0)