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

Method add_interp_cleanup

Lib/test/test_capi/test_misc.py:2291–2297  ·  view source on GitHub ↗
(self, interpid)

Source from the content-addressed store, hash-verified

2289class InterpreterIDTests(unittest.TestCase):
2290
2291 def add_interp_cleanup(self, interpid):
2292 def ensure_destroyed():
2293 try:
2294 _interpreters.destroy(interpid)
2295 except _interpreters.InterpreterNotFoundError:
2296 pass
2297 self.addCleanup(ensure_destroyed)
2298
2299 def new_interpreter(self):
2300 id = _interpreters.create()

Callers 1

new_interpreterMethod · 0.95

Calls 1

addCleanupMethod · 0.80

Tested by

no test coverage detected