Test remote exec with syntax error in script
(self)
| 2172 | sys.remote_exec(0, 123) |
| 2173 | |
| 2174 | def test_remote_exec_syntax_error(self): |
| 2175 | """Test remote exec with syntax error in script""" |
| 2176 | script = ''' |
| 2177 | this is invalid python code |
| 2178 | ''' |
| 2179 | returncode, stdout, stderr = self._run_remote_exec_test(script) |
| 2180 | self.assertEqual(returncode, 0) |
| 2181 | self.assertIn(b"SyntaxError", stderr) |
| 2182 | self.assertEqual(stdout.strip(), b"Target process running...") |
| 2183 | |
| 2184 | def test_remote_exec_invalid_script_path(self): |
| 2185 | """Test remote exec with invalid script path""" |
nothing calls this directly
no test coverage detected