ionelmc / pytest-benchmark

py.test fixture for benchmarking code
BSD 2-Clause "Simplified" License
1.22k stars 115 forks source link

Python 3.11 compatibility #232

Open danigm opened 1 year ago

danigm commented 1 year ago

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[bot] commented 1 year ago

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 ```diff @@ 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](https://codecov.io/gh/ionelmc/pytest-benchmark/pull/232?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ionel+Cristian+M%C4%83rie%C8%99) | Coverage Δ | | |---|---|---| | [src/pytest\_benchmark/compat.py](https://codecov.io/gh/ionelmc/pytest-benchmark/pull/232?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ionel+Cristian+M%C4%83rie%C8%99#diff-c3JjL3B5dGVzdF9iZW5jaG1hcmsvY29tcGF0LnB5) | `0.00% <0.00%> (ø)` | | | [tests/test\_benchmark.py](https://codecov.io/gh/ionelmc/pytest-benchmark/pull/232?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ionel+Cristian+M%C4%83rie%C8%99#diff-dGVzdHMvdGVzdF9iZW5jaG1hcmsucHk=) | `100.00% <ø> (ø)` | | | [src/pytest\_benchmark/utils.py](https://codecov.io/gh/ionelmc/pytest-benchmark/pull/232?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ionel+Cristian+M%C4%83rie%C8%99#diff-c3JjL3B5dGVzdF9iZW5jaG1hcmsvdXRpbHMucHk=) | `41.60% <75.00%> (+0.41%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ionel+Cristian+M%C4%83rie%C8%99). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ionel+Cristian+M%C4%83rie%C8%99)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

ngie-eign commented 1 year ago

.github workflows, etc, needs to be updated.

ngie-eign commented 1 year ago

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.

ngie-eign commented 1 year ago

LGTM -- but I'm not a contributor, so sorry -- can't provide approval 😅 .

ngie-eign commented 1 year ago

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.