(self)
| 559 | @support.skip_emscripten_stack_overflow() |
| 560 | @support.skip_wasi_stack_overflow() |
| 561 | def testSFBug532646(self): |
| 562 | # Test for SF bug 532646 |
| 563 | |
| 564 | class A: |
| 565 | pass |
| 566 | A.__call__ = A() |
| 567 | a = A() |
| 568 | |
| 569 | try: |
| 570 | a() # This should not segfault |
| 571 | except RecursionError: |
| 572 | pass |
| 573 | else: |
| 574 | self.fail("Failed to raise RecursionError") |
| 575 | |
| 576 | def testForExceptionsRaisedInInstanceGetattr2(self): |
| 577 | # Tests for exceptions raised in instance_getattr2(). |