Skip to content

Commit cf82a25

Browse files
committed
test any
1 parent 7a4d653 commit cf82a25

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/snippets/builtin_any.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def anything(a):
2+
return a
3+
4+
class Test:
5+
def __iter__(self):
6+
while True:
7+
yield True
8+
9+
assert True == any(map(anything, Test()))

0 commit comments

Comments
 (0)