8000 bpo-46262: cover error path in `enum.Flag._missing_` by sobolevn · Pull Request #30408 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46262: cover error path in enum.Flag 8000 ._missing_ #30408

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

Merged
merged 3 commits into from
Jan 5, 2022

Conversation

sobolevn
Copy link
Member
@sobolevn sobolevn commented Jan 4, 2022

This path is now covered:

cpython/Lib/enum.py

Lines 1222 to 1225 in 31e43cb

if not isinstance(value, int):
raise ValueError(
"%r is not a valid %s" % (value, cls.__qualname__)
)

https://bugs.python.org/issue46262

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@sobolevn
Copy link
Member Author
sobolevn commented Jan 5, 2022

Thanks everyone!

P.S. @ethanfurman would you be so kind to also review one more my enum.py PR? #30357 🙂

(I've also found several other untested features, so new PRs are incoming) 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0