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

Method test_success

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

Source from the content-addressed store, hash-verified

520 self.id = _interpreters.create()
521
522 def test_success(self):
523 script, file = _captured_script('print("it worked!", end="")')
524 with file:
525 _interpreters.run_string(self.id, script)
526 out = file.read()
527
528 self.assertEqual(out, 'it worked!')
529
530 def test_in_thread(self):
531 script, file = _captured_script('print("it worked!", end="")')

Callers

nothing calls this directly

Calls 3

_captured_scriptFunction · 0.70
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected