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)
| 182 | |
| 183 | |
| 184 | def 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() |