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

Method test_subinterpreter

Lib/test/test__interpreters.py:230–236  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228
229 @unittest.skip('Fails on FreeBSD')
230 def test_subinterpreter(self):
231 interp = _interpreters.create()
232 self.assertFalse(_interpreters.is_running(interp))
233
234 with _running(interp):
235 self.assertTrue(_interpreters.is_running(interp))
236 self.assertFalse(_interpreters.is_running(interp))
237
238 def test_from_subinterpreter(self):
239 interp = _interpreters.create()

Callers

nothing calls this directly

Calls 5

assertFalseMethod · 0.80
assertTrueMethod · 0.80
_runningFunction · 0.70
createMethod · 0.45
is_runningMethod · 0.45

Tested by

no test coverage detected