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

Function _assert_python

Lib/test/support/script_helper.py:163–167  ·  view source on GitHub ↗
(expected_success, /, *args, **env_vars)

Source from the content-addressed store, hash-verified

161
162@support.requires_subprocess()
163def _assert_python(expected_success, /, *args, **env_vars):
164 res, cmd_line = run_python_until_end(*args, **env_vars)
165 if (res.rc and expected_success) or (not res.rc and not expected_success):
166 res.fail(cmd_line)
167 return res
168
169
170def assert_python_ok(*args, **env_vars):

Callers 2

assert_python_okFunction · 0.85
assert_python_failureFunction · 0.85

Calls 2

run_python_until_endFunction · 0.85
failMethod · 0.45

Tested by

no test coverage detected