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

Function clean_up_interpreters

Lib/test/test__interpreters.py:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74def clean_up_interpreters():
75 for id, *_ in _interpreters.list_all():
76 if id == 0: # main
77 continue
78 try:
79 _interpreters.destroy(id)
80 except _interpreters.InterpreterError:
81 pass # already destroyed
82
83
84class TestBase(unittest.TestCase):

Callers 3

tearDownMethod · 0.90
clean_upMethod · 0.90
tearDownMethod · 0.70

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…