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

Method test___globals__

Lib/test/test_funcattrs.py:96–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 dst.__code__ = prev
95
96 def test___globals__(self):
97 self.assertIs(self.b.__globals__, globals())
98 self.cannot_set_attr(self.b, '__globals__', 2,
99 (AttributeError, TypeError))
100
101 def test___builtins__(self):
102 if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

cannot_set_attrMethod · 0.80
assertIsMethod · 0.45

Tested by

no test coverage detected