MCPcopy Index your code
hub / github.com/python/cpython / testSFBug532646

Method testSFBug532646

Lib/test/test_class.py:561–574  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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().

Callers

nothing calls this directly

Calls 3

AClass · 0.70
aClass · 0.70
failMethod · 0.45

Tested by

no test coverage detected