mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Present the result, when the script passes unexpectedly
This commit is contained in:
parent
2b95e6eb7b
commit
afda75625c
|
@ -666,7 +666,7 @@ class PipTestEnvironment(TestFileEnvironment):
|
|||
if expect_error and not allow_error:
|
||||
if result.returncode == 0:
|
||||
__tracebackhide__ = True
|
||||
raise AssertionError("Script passed unexpectedly.")
|
||||
raise AssertionError(f"Script passed unexpectedly:\n{result}")
|
||||
|
||||
_check_stderr(
|
||||
result.stderr,
|
||||
|
|
Loading…
Reference in a new issue