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

Method test_close

Lib/test/test__interpchannels.py:1816–1826  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1814 pass
1815
1816 def test_close(self):
1817 for i, fix, actions in self._iter_close_tests():
1818 with self.subTest('{} {} {}'.format(i, fix, actions)):
1819 fix.prep_interpreter(fix.interp)
1820 self.run_actions(fix, actions)
1821
1822 self._close(fix, force=False)
1823
1824 self._assert_closed(fix)
1825 # XXX Things slow down if we have too many interpreters.
1826 fix.clean_up()
1827
1828 def test_force_close(self):
1829 for i, fix, actions in self._iter_close_tests():

Callers

nothing calls this directly

Calls 8

_iter_close_testsMethod · 0.95
run_actionsMethod · 0.95
_closeMethod · 0.95
_assert_closedMethod · 0.95
prep_interpreterMethod · 0.80
subTestMethod · 0.45
formatMethod · 0.45
clean_upMethod · 0.45

Tested by

no test coverage detected