mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
11 lines
315 B
Python
11 lines
315 B
Python
from testutils import assert_raises
|
|
from testutils import TestFailingBool, TestFailingIter
|
|
|
|
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()]))
|