Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified pandas/io/tests/legacy_table.h5
Binary file not shown.
9 changes: 5 additions & 4 deletions pandas/io/tests/test_pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1654,11 +1654,11 @@ def test_legacy_table_read(self):
# force the frame
store.select('df2', typ = 'legacy_frame')

self.assertRaises(Exception, store.select, 'wp1', Term('minor_axis','=','B'))

# old version warning
import warnings
warnings.filterwarnings('ignore', category=IncompatibilityWarning)
self.assertRaises(Exception, store.select, 'wp1', Term('minor_axis','=','B'))

df2 = store.select('df2')
store.select('df2', Term('index', '>', df2.index[2]))
warnings.filterwarnings('always', category=IncompatibilityWarning)
Expand All @@ -1674,16 +1674,17 @@ def test_legacy_0_10_read(self):
store.close()

def test_legacy_table_write(self):
raise nose.SkipTest
# legacy table types
pth = curpath()
df = tm.makeDataFrame()
wp = tm.makePanel()

store = HDFStore(os.path.join(pth, 'legacy_table.h5'), 'a')

self.assertRaises(Exception, store.append, 'df1', df)
self.assertRaises(Exception, store.append, 'wp1', wp)

store.close()

def test_store_datetime_fractional_secs(self):
Expand Down