Skip to content

Commit 09a46f5

Browse files
committed
COMPAT: 32-bit compat for testing
xref pandas-dev#20502
1 parent c4b4a81 commit 09a46f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_algos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def test_parametrized_factorize_na_value_default(self, data):
266266
# arrays that include the NA default for that type, but isn't used.
267267
l, u = algos.factorize(data)
268268
expected_uniques = data[[0, 1]]
269-
expected_labels = np.array([0, 1, 0], dtype='i8')
269+
expected_labels = np.array([0, 1, 0], dtype=np.intp)
270270
tm.assert_numpy_array_equal(l, expected_labels)
271271
tm.assert_numpy_array_equal(u, expected_uniques)
272272

@@ -283,7 +283,7 @@ def test_parametrized_factorize_na_value_default(self, data):
283283
def test_parametrized_factorize_na_value(self, data, na_value):
284284
l, u = algos._factorize_array(data, na_value=na_value)
285285
expected_uniques = data[[1, 3]]
286-
expected_labels = np.array([-1, 0, -1, 1], dtype='i8')
286+
expected_labels = np.array([-1, 0, -1, 1], dtype=np.intp)
287287
tm.assert_numpy_array_equal(l, expected_labels)
288288
tm.assert_numpy_array_equal(u, expected_uniques)
289289

0 commit comments

Comments
 (0)