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

Method test_remote_exec_disabled_by_xoption

Lib/test/test_sys.py:2185–2188  ·  view source on GitHub ↗

Test remote exec is disabled with -Xdisable-remote-debug

(self)

Source from the content-addressed store, hash-verified

2183 self._run_remote_exec_test("print('should not run')", env=env)
2184
2185 def test_remote_exec_disabled_by_xoption(self):
2186 """Test remote exec is disabled with -Xdisable-remote-debug"""
2187 with self.assertRaisesRegex(RuntimeError, "Remote debugging is not enabled in the remote process"):
2188 self._run_remote_exec_test("print('should not run')", python_args=['-Xdisable-remote-debug'])
2189
2190 def test_remote_exec_invalid_pid(self):
2191 """Test remote exec with invalid process ID"""

Callers

nothing calls this directly

Calls 2

_run_remote_exec_testMethod · 0.95
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected