mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
10 lines
294 B
Python
10 lines
294 B
Python
from testutils import TestFailingBool, TestFailingIter, assert_raises
|
|
|
|
assert any([True])
|
|
assert not any([False])
|
|
assert not any([])
|
|
assert any([True, TestFailingBool()])
|
|
|
|
assert_raises(RuntimeError, lambda: any(TestFailingIter()))
|
|
assert_raises(RuntimeError, lambda: any([TestFailingBool()]))
|