Skip to content

Commit

Permalink
test: use the coverage-command fixture throughout the venv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 31, 2021
1 parent 1a6844a commit adff230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_third_party_venv_isnt_measured(self, coverage_command):
debug_out,
)

out = run_in_venv("python -m coverage report")
out = run_in_venv(coverage_command + " report")
assert "myproduct.py" in out
assert "third" not in out
assert "coverage" not in out
Expand All @@ -237,7 +237,7 @@ def test_us_in_venv_isnt_measured(self, coverage_command):
debug_out,
)

out = run_in_venv("python -m coverage report")
out = run_in_venv(coverage_command + " report")
assert "myproduct.py" not in out
assert "third" in out
assert "coverage" not in out
Expand All @@ -252,7 +252,7 @@ def test_venv_isnt_measured(self, coverage_command):
assert re_lines(r"^Tracing .*\bmyproduct.py", debug_out)
assert re_lines(r"^Not tracing .*\bcolorsys.py': is in the stdlib", debug_out)

out = run_in_venv("python -m coverage report")
out = run_in_venv(coverage_command + " report")
assert "myproduct.py" in out
assert "third" not in out
assert "coverage" not in out
Expand Down Expand Up @@ -301,7 +301,7 @@ def test_installed_namespace_packages(self, coverage_command):
debug_out,
)

out = run_in_venv("python -m coverage report")
out = run_in_venv(coverage_command + " report")

# Name Stmts Miss Cover
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit adff230

Please sign in to comment.