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

Method test_fwdref_with_owner

Lib/test/test_annotationlib.py:2156–2160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2154 fr.evaluate()
2155
2156 def test_fwdref_with_owner(self):
2157 self.assertEqual(
2158 ForwardRef("Counter[int]", owner=collections).evaluate(),
2159 collections.Counter[int],
2160 )
2161
2162 def test_name_lookup_without_eval(self):
2163 # test the codepath where we look up simple names directly in the

Callers

nothing calls this directly

Calls 3

ForwardRefClass · 0.90
assertEqualMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected