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

Method test_remote_exec_undecodable

Lib/test/test_sys.py:2110–2117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2108 @unittest.skipIf(sys.platform == 'darwin',
2109 'undecodable paths are not supported on macOS')
2110 def test_remote_exec_undecodable(self):
2111 script = 'print("Remote script executed successfully!")'
2112 script_path = os_helper.TESTFN_UNDECODABLE + b'_undecodable_remote.py'
2113 for script_path in [script_path, os.fsdecode(script_path)]:
2114 returncode, stdout, stderr = self._run_remote_exec_test(script,
2115 script_path=script_path)
2116 self.assertIn(b"Remote script executed successfully!", stdout)
2117 self.assertEqual(stderr, b"")
2118
2119 def test_remote_exec_with_self_process(self):
2120 """Test remote exec with the target process being the same as the test process"""

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