Skip to content

Commit d100f0c

Browse files
committed
Type for 32bit
1 parent fc34080 commit d100f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/dtypes/test_cast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ def test_maybe_convert_for_categorical_noop(self):
312312
assert result == expected
313313

314314
@pytest.mark.parametrize('categories, dtype, expected', [
315-
(['1', '2'], [1, 2, 3], np.array([1, 2])),
316-
(['1', '2', 'a'], [1, 2, 3], np.array([1, 2, np.nan])),
315+
(['1', '2'], [1, 2, 3], np.array([1, 2], dtype='i8')),
316+
(['1', '2', 'a'], [1, 2, 3], np.array([1, 2, np.nan], dtype='f8')),
317317
])
318318
def test_maybe_convert_for_categorical(self, categories, dtype, expected):
319319
dtype = CategoricalDtype(dtype)

0 commit comments

Comments
 (0)