Skip to content

Commit a420653

Browse files
committed
added test for issue pandas-dev#31104
1 parent 4096733 commit a420653

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pandas._testing as tm
2+
import numpy as np
3+
from pandas.core.construction import array as array_test
4+
5+
def test_object_to_bool_array():
6+
array1 = array_test(np.array([True, False]), dtype="Int64")
7+
array2 = array_test(np.array([True, False], dtype=object), dtype="Int64")
8+
tm.assert_numpy_array_equal(array1, array2)

0 commit comments

Comments
 (0)