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

Method test_force_close

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

Source from the content-addressed store, hash-verified

1826 fix.clean_up()
1827
1828 def test_force_close(self):
1829 for i, fix, actions in self._iter_close_tests():
1830 with self.subTest('{} {} {}'.format(i, fix, actions)):
1831 fix.prep_interpreter(fix.interp)
1832 self.run_actions(fix, actions)
1833
1834 self._close(fix, force=True)
1835
1836 self._assert_closed(fix)
1837 # XXX Things slow down if we have too many interpreters.
1838 fix.clean_up()
1839
1840
1841if __name__ == '__main__':

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