MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_remote_exec_bytes

Method test_remote_exec_bytes

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

Source from the content-addressed store, hash-verified

2069 self.assertEqual(stderr, b"")
2070
2071 def test_remote_exec_bytes(self):
2072 script = 'print("Remote script executed successfully!")'
2073 script_path = os.fsencode(os_helper.TESTFN) + b'_bytes_remote.py'
2074 returncode, stdout, stderr = self._run_remote_exec_test(script,
2075 script_path=script_path)
2076 self.assertIn(b"Remote script executed successfully!", stdout)
2077 self.assertEqual(stderr, b"")
2078
2079 @unittest.skipUnless(os_helper.TESTFN_UNDECODABLE, 'requires undecodable path')
2080 @unittest.skipIf(sys.platform == 'darwin',

Callers

nothing calls this directly

Calls 4

_run_remote_exec_testMethod · 0.95
fsencodeMethod · 0.80
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected