pytest-benchmark
pytest-benchmark copied to clipboard
Python 3.11 compatibility
This patch adds the new arguments to the types.CodeType class constructor in the clonefunc function.
See https://github.com/ionelmc/pytest-benchmark/issues/231
Codecov Report
Patch coverage: 60.00
% and project coverage change: +0.01
:tada:
Comparison is base (
7ef2645
) 64.41% compared to head (254edb6
) 64.43%.
Additional details and impacted files
@@ Coverage Diff @@
## master #232 +/- ##
==========================================
+ Coverage 64.41% 64.43% +0.01%
==========================================
Files 29 29
Lines 2858 2862 +4
Branches 386 469 +83
==========================================
+ Hits 1841 1844 +3
- Misses 927 928 +1
Partials 90 90
Impacted Files | Coverage Δ | |
---|---|---|
src/pytest_benchmark/compat.py | 0.00% <0.00%> (ø) |
|
tests/test_benchmark.py | 100.00% <ø> (ø) |
|
src/pytest_benchmark/utils.py | 41.60% <75.00%> (+0.41%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
.github workflows, etc, needs to be updated.
I updated setup.py and CHANGELOG.rst in #237 as well. I think that's everything that needs to be done. I can close my PR in favor of your's.
LGTM -- but I'm not a contributor, so sorry -- can't provide approval 😅 .
PS You might need to rebase if you haven't done so recently, since this was originally based on sources from 2 months ago. I wouldn't do anything about that unless it's absolutely needed, or the maintainers ask.