Skip to content

Commit 707becf

Browse files
committed
fix tests
1 parent 378cffb commit 707becf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tools/tests/test_hashing.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,13 @@ def test_hash_collisions(self):
165165

166166
# these should be different!
167167
result1 = hash_array(np.asarray(L[0:1], dtype=object), 'utf8')
168-
expected1 = np.array([1760245841805064774], dtype=np.uint64)
168+
expected1 = np.array([14963968704024874985], dtype=np.uint64)
169169
self.assert_numpy_array_equal(result1, expected1)
170170

171171
result2 = hash_array(np.asarray(L[1:2], dtype=object), 'utf8')
172-
expected2 = np.array([1760245841805064774], dtype=np.uint64)
172+
expected2 = np.array([16428432627716348016], dtype=np.uint64)
173173
self.assert_numpy_array_equal(result2, expected2)
174174

175175
result = hash_array(np.asarray(L, dtype=object), 'utf8')
176-
self.assertTrue(len(result)) == 2
176+
self.assert_numpy_array_equal(
177+
result, np.concatenate([expected1, expected2], axis=0))

0 commit comments

Comments
 (0)