Skip to content

Commit 757d105

Browse files
committed
TST: Use assert_numpy_array_equal
1 parent 6d75e55 commit 757d105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/test_numeric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def test_constructor(self):
169169
# explicit construction
170170
index = Float64Index([1, 2, 3, 4, 5])
171171
self.assertIsInstance(index, Float64Index)
172-
self.assertTrue((index.values == np.array(
173-
[1, 2, 3, 4, 5], dtype='float64')).all())
172+
expected = np.array([1, 2, 3, 4, 5], dtype='float64')
173+
self.assert_numpy_array_equal(index.values, expected)
174174
index = Float64Index(np.array([1, 2, 3, 4, 5]))
175175
self.assertIsInstance(index, Float64Index)
176176
index = Float64Index([1., 2, 3, 4, 5])

0 commit comments

Comments
 (0)