@@ -1132,19 +1132,19 @@ def test_pad_backfill_object_segfault():
11321132
11331133 result = libalgos .pad_object (old , new )
11341134 expected = np .array ([- 1 ], dtype = np .int64 )
1135- assert ( np . array_equal (result , expected ) )
1135+ tm . assert_numpy_array_equal (result , expected )
11361136
11371137 result = libalgos .pad_object (new , old )
11381138 expected = np .array ([], dtype = np .int64 )
1139- assert ( np . array_equal (result , expected ) )
1139+ tm . assert_numpy_array_equal (result , expected )
11401140
11411141 result = libalgos .backfill_object (old , new )
11421142 expected = np .array ([- 1 ], dtype = np .int64 )
1143- assert ( np . array_equal (result , expected ) )
1143+ tm . assert_numpy_array_equal (result , expected )
11441144
11451145 result = libalgos .backfill_object (new , old )
11461146 expected = np .array ([], dtype = np .int64 )
1147- assert ( np . array_equal (result , expected ) )
1147+ tm . assert_numpy_array_equal (result , expected )
11481148
11491149
11501150def test_arrmap ():
@@ -1235,15 +1235,6 @@ def test_is_lexsorted():
12351235
12361236 assert (not libalgos .is_lexsorted (failure ))
12371237
1238- # def test_get_group_index():
1239- # a = np.array([0, 1, 2, 0, 2, 1, 0, 0], dtype=np.int64)
1240- # b = np.array([1, 0, 3, 2, 0, 2, 3, 0], dtype=np.int64)
1241- # expected = np.array([1, 4, 11, 2, 8, 6, 3, 0], dtype=np.int64)
1242-
1243- # result = lib.get_group_index([a, b], (3, 4))
1244-
1245- # assert(np.array_equal(result, expected))
1246-
12471238
12481239def test_groupsort_indexer ():
12491240 a = np .random .randint (0 , 1000 , 100 ).astype (np .int64 )
@@ -1253,13 +1244,13 @@ def test_groupsort_indexer():
12531244
12541245 # need to use a stable sort
12551246 expected = np .argsort (a , kind = 'mergesort' )
1256- assert ( np . array_equal (result , expected ) )
1247+ tm . assert_numpy_array_equal (result , expected )
12571248
12581249 # compare with lexsort
12591250 key = a * 1000 + b
12601251 result = libalgos .groupsort_indexer (key , 1000000 )[0 ]
12611252 expected = np .lexsort ((b , a ))
1262- assert ( np . array_equal (result , expected ) )
1253+ tm . assert_numpy_array_equal (result , expected )
12631254
12641255
12651256def test_infinity_sort ():
0 commit comments