Skip to content
Merged
Show file tree
Hide file tree
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: 0 additions & 10 deletions bench_runner/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import importlib
import os
import sys


Expand All @@ -26,15 +25,6 @@
}

if __name__ == "__main__":
# This lets pytest-cov collect coverage data in a subprocess
if "COV_CORE_SOURCE" in os.environ:
try:
from pytest_cov.embed import init

init()
except Exception:
sys.stderr.write("pytest-cov: Failed to setup subprocess coverage.")

command = len(sys.argv) >= 2 and sys.argv[1] or ""

if command not in COMMANDS:
Expand Down
9 changes: 0 additions & 9 deletions bench_runner/scripts/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,4 @@ def dummy(*args, **kwargs):


if __name__ == "__main__":
# This lets pytest-cov collect coverage data in a subprocess
if "COV_CORE_SOURCE" in os.environ:
try:
from pytest_cov.embed import init

init()
except Exception:
sys.stderr.write("pytest-cov: Failed to setup subprocess coverage.")

main()
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test = [
"filelock==4.2.9",
"pyright==1.1.414",
"pytest==9.2.0",
"pytest-cov==6.2.1",
"pytest-cov==7.1.0",
"pytest-xdist==3.8.0",
]

Expand All @@ -56,6 +56,9 @@ markers = [
"long_running: marks tests as long_running (deselect with '-m \"not running\"')",
]

[tool.coverage.run]
patch = ["subprocess"]

[tool.coverage.paths]
source = [
"bench_runner",
Expand Down
Loading