diff --git a/tests/conftest.py b/tests/conftest.py index 684dc7be0c..5f4f781fc4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -928,7 +928,7 @@ def performance_report( tmp_path, ): if not test_run_benchmark: - yield + yield contextlib.nullcontext else: if not pytestconfig.getoption("--performance-report"): yield contextlib.nullcontext