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

Method check_exit_message

Lib/test/test_sys.py:268–272  ·  view source on GitHub ↗
(code, expected, **env_vars)

Source from the content-addressed store, hash-verified

266 self.assertEqual(err, b'')
267
268 def check_exit_message(code, expected, **env_vars):
269 rc, out, err = assert_python_failure('-c', code, **env_vars)
270 self.assertEqual(rc, 1)
271 self.assertEqual(out, b'')
272 self.assertStartsWith(err, expected)
273
274 # test that stderr buffer is flushed before the exit message is written
275 # into stderr

Callers

nothing calls this directly

Calls 3

assert_python_failureFunction · 0.90
assertEqualMethod · 0.45
assertStartsWithMethod · 0.45

Tested by

no test coverage detected