MCPcopy Create free account
hub / github.com/python/cpython / test_recursion_limit

Method test_recursion_limit

Lib/test/test_inspect/test_inspect.py:6484–6487  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6482 self.assertIsNone(inspect.unwrap(C()))
6483
6484 def test_recursion_limit(self):
6485 obj = NTimesUnwrappable(sys.getrecursionlimit() + 1)
6486 with self.assertRaisesRegex(ValueError, 'wrapper loop'):
6487 inspect.unwrap(obj)
6488
6489 def test_wrapped_descriptor(self):
6490 self.assertIs(inspect.unwrap(NTimesUnwrappable), NTimesUnwrappable)

Callers

nothing calls this directly

Calls 3

NTimesUnwrappableClass · 0.85
assertRaisesRegexMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected