Skip to content

Commit 92cae05

Browse files
committed
integer array creation test GH#31104
Signed-off-by: Liang Yan <[email protected]>
1 parent c8ea34c commit 92cae05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/arrays/integer/test_construction.py

+6
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,9 @@ def test_to_integer_array(values, to_dtype, result_dtype):
234234
assert result.dtype == result_dtype()
235235
expected = pd.array(values, dtype=result_dtype())
236236
tm.assert_extension_array_equal(result, expected)
237+
238+
239+
def test_integer_array_from_boolean():
240+
expected = pd.array(np.array([True, False]), dtype="Int64")
241+
result = pd.array(np.array([True, False], dtype=object), dtype="Int64")
242+
tm.assert_extension_array_equal(result, expected)

0 commit comments

Comments
 (0)