Skip to content

Commit 8237f08

Browse files
committed
fixed test
1 parent a5024b9 commit 8237f08

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/test_map_object.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def test_map_object_native_float(self) -> None:
6464
self.assertEqual(post.dtype, np.dtype(np.float64))
6565

6666
def test_map_object_native_int(self) -> None:
67+
# python-int results auto-detect to the platform default int (int32 on Windows)
6768
post = self._check(np.array([1, 2, 3]), lambda x: int(x) + 1)
68-
self.assertEqual(post.dtype, np.dtype(np.int64))
69+
self.assertEqual(post.dtype, np.dtype(np.int_))
6970

7071
def test_map_object_tuple_result(self) -> None:
7172
post = self._check(np.array([1, 2]), lambda x: (int(x), int(x)))

0 commit comments

Comments
 (0)