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

Function _assert_python

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

Source from the content-addressed store, hash-verified

162
163@support.requires_subprocess()
164def _assert_python(expected_success, /, *args, **env_vars):
165 res, cmd_line = run_python_until_end(*args, **env_vars)
166 if (res.rc and expected_success) or (not res.rc and not expected_success):
167 res.fail(cmd_line)
168 return res
169
170
171def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…