Skip to content

Commit e95a1f0

Browse files
committed
TST: pytables test changes to work in 3.1rc1
1 parent 51de3c6 commit e95a1f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/tests/test_pytables.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -226,24 +226,24 @@ def test_api(self):
226226
_maybe_remove(store,'df')
227227
store.append('df',df.iloc[:10],append=True,format='table')
228228
store.append('df',df.iloc[10:],append=True,format='table')
229-
assert_frame_equal(read_hdf(path,'df'),df)
229+
assert_frame_equal(store.select('df'),df)
230230

231231
# append to False
232232
_maybe_remove(store,'df')
233233
store.append('df',df.iloc[:10],append=False,format='table')
234234
store.append('df',df.iloc[10:],append=True,format='table')
235-
assert_frame_equal(read_hdf(path,'df'),df)
235+
assert_frame_equal(store.select('df'),df)
236236

237237
# formats
238238
_maybe_remove(store,'df')
239239
store.append('df',df.iloc[:10],append=False,format='table')
240240
store.append('df',df.iloc[10:],append=True,format='table')
241-
assert_frame_equal(read_hdf(path,'df'),df)
241+
assert_frame_equal(store.select('df'),df)
242242

243243
_maybe_remove(store,'df')
244244
store.append('df',df.iloc[:10],append=False,format='table')
245245
store.append('df',df.iloc[10:],append=True,format=None)
246-
assert_frame_equal(read_hdf(path,'df'),df)
246+
assert_frame_equal(store.select('df'),df)
247247

248248
with ensure_clean_path(self.path) as path:
249249

0 commit comments

Comments
 (0)