Visitar URL original
bpo-46262: cover error path in `enum.Flag._missing_` by sobolevn · Pull Request #30408 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20251017020525/https://github.com/python/cpython/pull/30408
Skip to content

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