Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,10 @@ def test_regular_run():

def test_regular_run_native_toxenv():
result = tox("-e", NATIVE_TOXENV)
lines = sorted(result.stdout.splitlines()[:1])
# Filter out lines only present when custom $PYTHONPATH is set:
lines = [l for l in result.stdout.splitlines()
if not l.startswith("WARNING: Discarding $PYTHONPATH")]
lines = sorted(lines[:1])
assert f"/.tox/{NATIVE_TOXENV} is the exec_prefix" in lines[0]
assert "congratulations" in result.stdout
for pkg in "py", "six", "test":
Expand Down Expand Up @@ -509,7 +512,10 @@ def test_regular_after_first_print_deps_is_supported(print_deps_stdout_arg):
result = tox("-e", NATIVE_TOXENV, print_deps_stdout_arg)
assert result.stdout.splitlines()[0] == "six"
result = tox("-e", NATIVE_TOXENV)
lines = sorted(result.stdout.splitlines()[:1])
# Filter out lines only present when custom $PYTHONPATH is set:
lines = [l for l in result.stdout.splitlines()
if not l.startswith("WARNING: Discarding $PYTHONPATH")]
lines = sorted(lines[:1])
assert "--recreate" not in result.stderr
assert f"/.tox/{NATIVE_TOXENV} is the exec_prefix" in lines[0]

Expand Down