Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed coverage on Python>=3.11 #1276

Merged
merged 9 commits into from
Sep 19, 2024
Merged

Fixed coverage on Python>=3.11 #1276

merged 9 commits into from
Sep 19, 2024

Conversation

c4ffein
Copy link
Contributor

@c4ffein c4ffein commented Aug 23, 2024

make test-cov is not at 100% on Python>=3.11 when executed locally.
Nothing is wrong with the pipeline as it is still using Python 3.9 but it is a minor incovenience during development.

It is due to the fact that the handling of typing.Any becomes unnecessary with this change in cpython: python/cpython#88690

This PR resolves this situation by adding a quick UT that is not so useful for Python<3.11 but covers that specific try - except block.

We may (or may not) also add support for Python>=3.11 in the coverage pipeline, in this PR or another one.

@c4ffein c4ffein changed the title Fixed coverage on Python>=3.10 Fixed coverage on Python>3.10 Aug 23, 2024
@c4ffein c4ffein changed the title Fixed coverage on Python>3.10 Fixed coverage on Python>=3.11 Aug 23, 2024
@c4ffein
Copy link
Contributor Author

c4ffein commented Aug 23, 2024

I guess the change to typing.Any is introduced between 3.10.0 and 3.11.0, but better just ask for a first review anyway

@vitalik vitalik merged commit de40a7f into vitalik:master Sep 19, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants