Skip to content

Commit 7f35cf8

Browse files
Fix DeprecationWarning pt.2
1 parent 938ed73 commit 7f35cf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/indexing/test_loc.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,9 @@ def test_loc_bool_incompatible_index_raises(self, index, frame_or_series):
21262126
obj.loc[True]
21272127

21282128
def test_loc_bool_should_not_raise(self, frame_or_series):
2129-
obj = frame_or_series(index=Index([True, False], dtype="boolean"))
2129+
obj = frame_or_series(
2130+
index=Index([True, False], dtype="boolean"), dtype="object"
2131+
)
21302132
obj.loc[True]
21312133

21322134
def test_loc_bool_slice_raises(self, index, frame_or_series):

0 commit comments

Comments
 (0)