Skip to content

Commit

Permalink
PEP 668 test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Jan 10, 2025
1 parent 0284ab8 commit 0a0a051
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/functional/test_pep668.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ def check_externally_managed():
],
)
@pytest.mark.usefixtures("patch_check_externally_managed")
def test_fails(script: PipTestEnvironment, arguments: List[str]) -> None:
def test_fails(script: PipTestEnvironment, arguments: List[str], virtualenv: VirtualEnvironment) -> None:
result = script.pip(*arguments, "pip", expect_error=True)
assert "I am externally managed" in result.stderr
try:
assert "I am externally managed" in result.stderr
except AssertionError:
print("virtualenv.sitecustomize:")
print(virtualenv.sitecustomize)
raise


@pytest.mark.parametrize(
Expand Down

0 comments on commit 0a0a051

Please sign in to comment.