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

Method test_closure_undefined

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

Source from the content-addressed store, hash-verified

249 self.assertEqual(anno, {"arg": "x"})
250
251 def test_closure_undefined(self):
252 if False:
253 x = 0
254
255 def inner(arg: x):
256 pass
257
258 anno = get_annotations(inner, format=Format.STRING)
259 self.assertEqual(anno, {"arg": "x"})
260
261 def test_function(self):
262 def f(x: int, y: doesntexist):

Callers

nothing calls this directly

Calls 2

get_annotationsFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected