Skip to content

Commit cf8c051

Browse files
committed
hash collisions ValueError -> AssertionError
1 parent 0dae56a commit cf8c051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/hashtable_class_helper.pxi.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -868,11 +868,11 @@ cdef class MultiIndexHashTable(HashTable):
868868
ndarray[int64_t] alocs
869869

870870
alocs = np.asarray(locs)
871-
if (alocs!=-1).all():
871+
if (alocs != -1).all():
872872

873873
result = self.mi.take(locs)
874874
if not result.equals(mi):
875-
raise ValueError("hash collision alert")
875+
raise AssertionError("hash collision alert")
876876

877877
def __contains__(self, object key):
878878
cdef:

0 commit comments

Comments
 (0)