diff --git a/pandas/tests/construction/test_object_to_bool_array.py b/pandas/tests/construction/test_object_to_bool_array.py new file mode 100644 index 0000000000000..85da2eb59ccfd --- /dev/null +++ b/pandas/tests/construction/test_object_to_bool_array.py @@ -0,0 +1,8 @@ +import pandas._testing as tm +import numpy as np +from pandas.core.construction import array as array_test + +def test_object_to_bool_array(): + array1 = array_test(np.array([True, False]), dtype="Int64") + array2 = array_test(np.array([True, False], dtype=object), dtype="Int64") + tm.assert_numpy_array_equal(array1, array2) \ No newline at end of file