Repository navigation
Commit ae646b6
authored
Pin pytest <9.2 for python >=3.10 to fix pytest-benchmark 4.x breakage (#878)
pytest 9.2.0 removed the private Node._nodeid attribute, which
pytest_benchmark/fixture.py (BenchmarkFixture.__init__) relies on,
causing every benchmark-fixture test to fail with AttributeError.
pytest-benchmark 5.x would fix this but requires Python >=3.9, and this
repo still supports 3.8, so cap pytest at <9.2 on the 9.x line instead
(3.8/3.9 already use pytest ^8.3.4, which is unaffected).
TODO: remove the cap once pytest-benchmark ships a fix compatible with
both pytest 9.2+ and Python 3.8, or once 3.8 support is dropped.1 parent 5b86bdd commit ae646b6
2 files changed
Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments