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

Fix repr() checks for Python 3.10 #1254

Closed
wants to merge 1 commit into from

Commits on Apr 13, 2021

  1. Fix repr() checks for Python 3.10

    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
    eclipseo committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    7e9f789 View commit details
    Browse the repository at this point in the history