Skip to content

Commit 8cea267

Browse files
committed
Pin an older pytest-benchmark for now
Problem: when tox asks to install pytest, it gets pytest 3.2.5, I guess because later versions have `pluggy<1.0` and pluggy's version is now 1.0.0.dev0. Which happens to work fine for the tests, but not for the benchmark, since pytest-benchmark requires `pytest>=3.8`. Solution: pin to an older pytest-benchmark for now.
1 parent 8f79f66 commit 8cea267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ deps=
1818
commands=pytest {posargs:testing/benchmark.py}
1919
deps=
2020
pytest
21-
pytest-benchmark
21+
# Once pytest lifts its pluggy<1.0 constraint, the pytest-benchmark
22+
# constraint can be removed.
23+
pytest-benchmark==3.1.1
2224

2325
[testenv:linting]
2426
skip_install = true

0 commit comments

Comments
 (0)