Skip to content

Commit e209185

Browse files
Chang Shewesm
authored andcommitted
TST: use _check_roundtrip
1 parent bf84631 commit e209185

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/io/tests/test_pytables.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -664,14 +664,7 @@ def test_store_datetime_mixed(self):
664664
df = DataFrame({'a': [1,2,3], 'b': [1.,2.,3.], 'c': ['a', 'b', 'c']})
665665
ts = tm.makeTimeSeries()
666666
df['d'] = ts.index[:3]
667-
store = HDFStore('data.h5')
668-
store['df'] = df
669-
store.close()
670-
store = HDFStore('data.h5')
671-
test = store['df']
672-
assert_series_equal(df.dtypes, test.dtypes)
673-
store.close()
674-
os.remove('data.h5')
667+
self._check_roundtrip(df, tm.assert_frame_equal)
675668

676669
def curpath():
677670
pth, _ = os.path.split(os.path.abspath(__file__))

0 commit comments

Comments
 (0)