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

Method test_mutated_attr

Lib/test/test_importlib/test_lazy.py:117–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 self.assertEqual('bogus', module.__name__)
116
117 def test_mutated_attr(self):
118 # Changing an attribute that comes into existence after an import
119 # should persist.
120 module = self.new_module()
121 module.attr = 6
122 self.assertEqual(6, module.attr)
123
124 def test_delete_eventual_attr(self):
125 # Deleting an attribute should stay deleted.

Callers

nothing calls this directly

Calls 2

new_moduleMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected