Skip to content
Merged
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
15 changes: 7 additions & 8 deletions tests/test_build_import_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading