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

Function assert_python_failure

Lib/test/support/script_helper.py:185–193  ·  view source on GitHub ↗

Assert that running the interpreter with `args` and optional environment variables `env_vars` fails (rc != 0) and return a (return code, stdout, stderr) tuple. See assert_python_ok() for more options.

(*args, **env_vars)

Source from the content-addressed store, hash-verified

183
184
185def assert_python_failure(*args, **env_vars):
186 """
187 Assert that running the interpreter with `args` and optional environment
188 variables `env_vars` fails (rc != 0) and return a (return code, stdout,
189 stderr) tuple.
190
191 See assert_python_ok() for more options.
192 """
193 return _assert_python(False, *args, **env_vars)
194
195
196@support.requires_subprocess()

Calls 1

_assert_pythonFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…