Skip to content

Commit adff230

Browse files
committed
test: use the coverage-command fixture throughout the venv tests
1 parent 1a6844a commit adff230

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_venv.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_third_party_venv_isnt_measured(self, coverage_command):
210210
debug_out,
211211
)
212212

213-
out = run_in_venv("python -m coverage report")
213+
out = run_in_venv(coverage_command + " report")
214214
assert "myproduct.py" in out
215215
assert "third" not in out
216216
assert "coverage" not in out
@@ -237,7 +237,7 @@ def test_us_in_venv_isnt_measured(self, coverage_command):
237237
debug_out,
238238
)
239239

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

255-
out = run_in_venv("python -m coverage report")
255+
out = run_in_venv(coverage_command + " report")
256256
assert "myproduct.py" in out
257257
assert "third" not in out
258258
assert "coverage" not in out
@@ -301,7 +301,7 @@ def test_installed_namespace_packages(self, coverage_command):
301301
debug_out,
302302
)
303303

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

306306
# Name Stmts Miss Cover
307307
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)