1
1
Fork 0
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:
Pradyun Gedam 2021-10-08 18:13:46 +01:00
parent 2b95e6eb7b
commit afda75625c
No known key found for this signature in database
GPG key ID: FF99710C4332258E

View file

@ -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,