Skip to content

Commit c831cab

Browse files
committed
TST: use pandas testing tools
1 parent e38fae8 commit c831cab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/io/pytables/test_store.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4908,7 +4908,7 @@ def _constructor(self):
49084908
with HDFStore(path) as store:
49094909
store.put("df", sdf)
49104910
result = read_hdf(path, "df").values
4911-
assert np.array_equal(result, expected)
4911+
tm.assert_numpy_array_equal(result, expected)
49124912

49134913
def test_supported_for_subclasses_series(self):
49144914
class SubSeries(Series):
@@ -4927,7 +4927,7 @@ def _constructor(self):
49274927
with HDFStore(path) as store:
49284928
store.put("ser", sser)
49294929
result = read_hdf(path, "ser").values
4930-
assert np.array_equal(result, expected)
4930+
tm.assert_numpy_array_equal(result, expected)
49314931

49324932

49334933
@pytest.mark.parametrize("bad_version", [(1, 2), (1,), [], "12", "123"])

0 commit comments

Comments
 (0)