| 690 | def test_assert_raising__bool__in_comparison(self) -> None: |
| 691 | def f() -> None: |
| 692 | class A: |
| 693 | def __bool__(self): |
| 694 | raise ValueError(42) |
| 695 | |
| 696 | def __lt__(self, other): |
| 697 | return A() |
| 698 | |
| 699 | def __repr__(self): |
| 700 | return "<MY42 object>" |
| 701 | |
| 702 | def myany(x) -> bool: |
| 703 | return False |