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

Method test_references___class__

Lib/test/test_listcomps.py:168–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 self._check_in_scopes(code, outputs={"res": [super]})
167
168 def test_references___class__(self):
169 code = """
170 res = [__class__ for x in [1]]
171 """
172 self._check_in_scopes(code, raises=NameError)
173
174 def test_references___class___defined(self):
175 code = """

Callers

nothing calls this directly

Calls 1

_check_in_scopesMethod · 0.95

Tested by

no test coverage detected