-
Notifications
You must be signed in to change notification settings - Fork 160
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
H2 and Python 3.10a7: test failures due to changes in repr() #1253
Comments
eclipseo
pushed a commit
to eclipseo/h2
that referenced
this issue
Apr 13, 2021
Stating Python 3.10 alpha 7, repr() was modified as follow: bpo-40066: Enum: adjust repr() to show only enum and member name (not value, nor angle brackets) and str() to show only member name. Update and improve documentation to match. bpo-40066: Enum’s repr() and str() have changed: repr() is now EnumClass.MemberName and str() is MemberName. Additionally, stdlib Enum’s whose contents are available as module attributes, such as RegexFlag.IGNORECASE, have their repr() as module.name, e.g. re.IGNORECASE. See https://bugs.python.org/issue40066 This commit fixes the assertions to match the new repr() behavior. Fix python-hyper#1253
The CPython changes were reverted for Python 3.10.0b4 (full thread) and will not be present in Python 3.10. It does look like these changes are coming back in some form for Python 3.11. |
Closing as 3.10 is stable released and this is not an issue any more. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There were some changes in repr() in latest alpha of Python 3.10.
https://docs.python.org/3.10/whatsnew/changelog.html#python-3-10-0-alpha-7
https://bugs.python.org/issue40066
This causes multiple test failures:
The text was updated successfully, but these errors were encountered: