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

Method test_remote_exec

Lib/test/test_sys.py:2091–2097  ·  view source on GitHub ↗

Test basic remote exec functionality

(self)

Source from the content-addressed store, hash-verified

2089 proc.wait(timeout=SHORT_TIMEOUT)
2090
2091 def test_remote_exec(self):
2092 """Test basic remote exec functionality"""
2093 script = 'print("Remote script executed successfully!")'
2094 returncode, stdout, stderr = self._run_remote_exec_test(script)
2095 # self.assertEqual(returncode, 0)
2096 self.assertIn(b"Remote script executed successfully!", stdout)
2097 self.assertEqual(stderr, b"")
2098
2099 def test_remote_exec_bytes(self):
2100 script = 'print("Remote script executed successfully!")'

Callers

nothing calls this directly

Calls 3

_run_remote_exec_testMethod · 0.95
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected