From a420653c61ca249e7878d59a8c632f75bd021e77 Mon Sep 17 00:00:00 2001 From: mpark1994 Date: Wed, 8 Feb 2023 16:02:46 -0500 Subject: [PATCH] added test for issue #31104 --- pandas/tests/construction/test_object_to_bool_array.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pandas/tests/construction/test_object_to_bool_array.py 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