MCPcopy Index your code
hub / github.com/RustPython/RustPython / testSFBug532646

Method testSFBug532646

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

AClass · 0.70
aClass · 0.70
failMethod · 0.45

Tested by

no test coverage detected