From 06b9196371b4a0cf83eb25f950d32a348b9b922b Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:55:23 +0545 Subject: [PATCH] pytest.ini_options: add --benchmark-skip to suppress pytest-benchmark warning with xdist (#10106) We don't run benchmarks here, and benchmarking should always be a separate command than regular test run. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 694fd180e..bf09936ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -145,7 +145,7 @@ namespaces = false write_to = "dvc/_dvc_version.py" [tool.pytest.ini_options] -addopts = "-ra --cov-config pyproject.toml --dist worksteal" +addopts = "-ra --cov-config pyproject.toml --dist worksteal --benchmark-skip" filterwarnings = [ "error::ResourceWarning", "error::pytest.PytestUnraisableExceptionWarning",