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

Method add_module_cleanup

Lib/test/test_import/__init__.py:2746–2750  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

2744 # helpers
2745
2746 def add_module_cleanup(self, name):
2747 def clean_up():
2748 # Clear all internally cached data for the extension.
2749 _testinternalcapi.clear_extension(name, self.ORIGIN)
2750 self.addCleanup(clean_up)
2751
2752 def _load_dynamic(self, name, path):
2753 """

Callers 3

test_variantsMethod · 0.95
test_basic_reloadedMethod · 0.95

Calls 1

addCleanupMethod · 0.80

Tested by 3

test_variantsMethod · 0.76
test_basic_reloadedMethod · 0.76