Skip to content

Commit c21412c

Browse files
committed
add test cases with dtype=None
1 parent 986548f commit c21412c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/arrays/test_integer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,9 @@ def test_to_integer_array_float():
618618
'bool_values, int_values, result_dtype',
619619
[([False, True], [0, 1], Int64Dtype()),
620620
([False, True], [0, 1], 'Int64'),
621-
([False, True, np.nan], [0, 1, np.nan], Int64Dtype())])
621+
([False, True, np.nan], [0, 1, np.nan], Int64Dtype()),
622+
([False, True], [0, 1], None),
623+
([False, True, np.nan], [0, 1, np.nan], None)])
622624
def test_to_integer_array_bool(bool_values, int_values, result_dtype):
623625
result = integer_array(bool_values, dtype=result_dtype)
624626
assert result.dtype == result_dtype

0 commit comments

Comments
 (0)