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

Method test_reload_modules

Lib/test/test_importlib/test_api.py:181–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

179class ReloadTests:
180
181 def test_reload_modules(self):
182 for mod in ('tokenize', 'time', 'marshal'):
183 with self.subTest(module=mod):
184 with import_helper.CleanImport(mod):
185 module = self.init.import_module(mod)
186 self.init.reload(module)
187
188 def test_module_replaced(self):
189 def code():

Callers

nothing calls this directly

Calls 3

subTestMethod · 0.45
import_moduleMethod · 0.45
reloadMethod · 0.45

Tested by

no test coverage detected