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

Method test_already_running

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

Source from the content-addressed store, hash-verified

651 self.assertEqual(content, expected)
652
653 def test_already_running(self):
654 with _running(self.id):
655 with self.assertRaises(_interpreters.InterpreterError):
656 _interpreters.run_string(self.id, 'print("spam")')
657
658 def test_does_not_exist(self):
659 id = 0

Callers

nothing calls this directly

Calls 2

_runningFunction · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected