From ce0d23a1b758789f53ecf83973f99ad32afc8f94 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 3 Dec 2026 11:41:37 +0000 Subject: [PATCH] TST: don't assert the verdict in the package-directory import test --- tests/test_build_import_path.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/test_build_import_path.py b/tests/test_build_import_path.py index bee8ae8..5a57b20 100644 --- a/tests/test_build_import_path.py +++ b/tests/test_build_import_path.py @@ -133,14 +133,13 @@ def test_one_pythonpath_measures_one_build_on_both_sides(tmp, toy, monkeypatch): def test_the_package_directory_as_target_imports_each_build(tmp, toy, monkeypatch): """With the directory that holds the package as the target path, pyperf's own - `sys.path` entry finds each side's build, in one shared environment.""" + `sys.path` entry finds each side's build, in one shared environment. The verdict is + not asserted: the per-round ratios of a 100-fold difference spread widely on a noisy + runner, and even at six rounds they sometimes missed the threshold (#126). The effect + is what shows each side imported its own build.""" pytest.importorskip("pyperf") monkeypatch.delenv("PYTHONPATH", raising=False) - # Six rounds: the per-round ratios of a 100-fold difference spread widely, and at three - # rounds (2 degrees of freedom) the threshold is 19 standard errors, which they missed - # about one run in three (#126). - doc = compare(tmp, toy, monkeypatch, reported="package", rounds=6) + doc = compare(tmp, toy, monkeypatch, reported="package") unit = doc["units"][0] - assert unit["details"]["rounds"] == 6 - assert unit["verdict"] == "regressed" - assert unit["effect"]["value"] > 10 + assert unit["details"]["rounds"] == 3 + assert unit["effect"]["value"] > 10 # one shared build is an effect near zero