MCPcopy Index your code
hub / github.com/RustPython/RustPython / test___globals__

Method test___globals__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

globalsFunction · 0.85
cannot_set_attrMethod · 0.80
assertIsMethod · 0.45

Tested by

no test coverage detected