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

Function unload

Lib/test/support/import_helper.py:32–36  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

30
31
32def unload(name):
33 try:
34 del sys.modules[name]
35 except KeyError:
36 pass
37
38
39def forget(modname):

Callers 15

_check_moduleMethod · 0.90
_check_packageMethod · 0.90
tearDownMethod · 0.90
test_double_constMethod · 0.90
test_failing_reloadMethod · 0.90
tearDownMethod · 0.90
test_trailing_slashMethod · 0.90
test_UNC_pathMethod · 0.90
tearDownMethod · 0.90

Calls

no outgoing calls

Tested by 12

_check_moduleMethod · 0.72
_check_packageMethod · 0.72
test_double_constMethod · 0.72
test_failing_reloadMethod · 0.72
test_trailing_slashMethod · 0.72
test_UNC_pathMethod · 0.72