Skip to content

Commit 7c22955

Browse files
committed
Add forgotten __getitem__ implementation to test case
1 parent 5ff646a commit 7c22955

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/dtypes/test_inference.py

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ def foo():
152152

153153
def test_is_list_like_iter_is_none():
154154
class NotListLike:
155+
def __getitem__(self, item):
156+
return self
157+
155158
__iter__ = None
156159

157160
assert not inference.is_list_like(NotListLike())

0 commit comments

Comments
 (0)