Repository navigation
Conversation
pytest 9.2 removed Node._nodeid, which pytest-benchmark 5.3.0 still uses. Assisted-by: ClaudeCode:claude-opus-5-5
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Test dependency constraints pyproject.toml |
Both test dependency declarations now cap pytest below version 9.2. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: matthewfeickert
Merge Risk: 
Minimal · up to ac364
-
The dependency cap consistently prevents the reported pytest-benchmark incompatibility.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
🤖 AI text below 🤖 Another option is the workaround from scikit-hep/mplhep#771. It does not cap pytest. A def pytest_collection_modifyitems(items):
for item in items:
if not hasattr(item, "_nodeid"):
item._nodeid = item.nodeidIf you prefer that, I can change this PR to use it. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2781 +/- ##
=======================================
Coverage 98.30% 98.30%
=======================================
Files 66 66
Lines 4372 4372
Branches 475 475
=======================================
Hits 4298 4298
Misses 46 46
Partials 28 28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🤖 AI text below 🤖
pytest 9.2 removed
Node._nodeid. pytest-benchmark 5.3.0 (latest) still uses it, so tests that use thebenchmarkfixture error at setup. This caps pytest below 9.2 until ionelmc/pytest-benchmark#321 is fixed in a release. Same as scikit-hep/particle#818 and scikit-hep/boost-histogram#1201.I checked locally that the benchmark tests fail with pytest 9.2.0 and pytest-benchmark 5.3.0.
Summary by CodeRabbit