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

Function assert_python_failure

Lib/test/support/script_helper.py:184–192  ·  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

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

Calls 1

_assert_pythonFunction · 0.85