Skip to content

Commit 61ecd0a

Browse files
CI: Fix expected for 32-bit platform (#34135)
Closes #34130
1 parent bb5e637 commit 61ecd0a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pandas/tests/test_algos.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -331,25 +331,25 @@ def test_factorize_na_sentinel(self, sort, na_sentinel, data, uniques):
331331
(
332332
["a", None, "b", "a"],
333333
True,
334-
np.array([0, -1, 1, 0], dtype=np.int64),
334+
np.array([0, -1, 1, 0], dtype=np.dtype("intp")),
335335
np.array(["a", "b"], dtype=object),
336336
),
337337
(
338338
["a", np.nan, "b", "a"],
339339
True,
340-
np.array([0, -1, 1, 0], dtype=np.int64),
340+
np.array([0, -1, 1, 0], dtype=np.dtype("intp")),
341341
np.array(["a", "b"], dtype=object),
342342
),
343343
(
344344
["a", None, "b", "a"],
345345
False,
346-
np.array([0, 2, 1, 0], dtype=np.int64),
346+
np.array([0, 2, 1, 0], dtype=np.dtype("intp")),
347347
np.array(["a", "b", np.nan], dtype=object),
348348
),
349349
(
350350
["a", np.nan, "b", "a"],
351351
False,
352-
np.array([0, 2, 1, 0], dtype=np.int64),
352+
np.array([0, 2, 1, 0], dtype=np.dtype("intp")),
353353
np.array(["a", "b", np.nan], dtype=object),
354354
),
355355
],
@@ -368,25 +368,25 @@ def test_object_factorize_dropna(
368368
(
369369
[1, None, 1, 2],
370370
True,
371-
np.array([0, -1, 0, 1], dtype=np.int64),
371+
np.array([0, -1, 0, 1], dtype=np.dtype("intp")),
372372
np.array([1, 2], dtype="O"),
373373
),
374374
(
375375
[1, np.nan, 1, 2],
376376
True,
377-
np.array([0, -1, 0, 1], dtype=np.int64),
377+
np.array([0, -1, 0, 1], dtype=np.dtype("intp")),
378378
np.array([1, 2], dtype=np.float64),
379379
),
380380
(
381381
[1, None, 1, 2],
382382
False,
383-
np.array([0, 2, 0, 1], dtype=np.int64),
383+
np.array([0, 2, 0, 1], dtype=np.dtype("intp")),
384384
np.array([1, 2, np.nan], dtype="O"),
385385
),
386386
(
387387
[1, np.nan, 1, 2],
388388
False,
389-
np.array([0, 2, 0, 1], dtype=np.int64),
389+
np.array([0, 2, 0, 1], dtype=np.dtype("intp")),
390390
np.array([1, 2, np.nan], dtype=np.float64),
391391
),
392392
],

0 commit comments

Comments
 (0)