Skip to content

Enum._missing_ doesn't raise TypeError when a non-Enum object is a returned #78717

Description

@PaulPinterits
BPO 34536
Nosy @vstinner, @ethanfurman, @tirkarthi
PRs
  • bpo-34536: raise error for invalid _missing_ results #9147
  • bpo-34536: raise error for invalid _missing_ results #9147
  • bpo-34536: raise error for invalid _missing_ results #9147
  • [3.7] bpo-34536: raise error for invalid _missing_ results (GH-9147) #9381
  • [3.7] bpo-34536: raise error for invalid _missing_ results (GH-9147) #9978
  • bpo-34536: Cleanup test_enum imports #9979
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ethanfurman'
    closed_at = <Date 2019-07-16.03:17:12.404>
    created_at = <Date 2018-08-28.19:37:44.217>
    labels = ['3.7', 'type-bug', 'library']
    title = "Enum._missing_ doesn't raise TypeError when a non-Enum object is a returned"
    updated_at = <Date 2019-07-16.03:17:12.403>
    user = 'https://bugs.python.org/PaulPinterits'

    bugs.python.org fields:

    activity = <Date 2019-07-16.03:17:12.403>
    actor = 'ethan.furman'
    assignee = 'ethan.furman'
    closed = True
    closed_date = <Date 2019-07-16.03:17:12.404>
    closer = 'ethan.furman'
    components = ['Library (Lib)']
    creation = <Date 2018-08-28.19:37:44.217>
    creator = 'Paul Pinterits'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34536
    keywords = ['patch', 'patch', 'patch']
    message_count = 7.0
    messages = ['324282', '325165', '328071', '328086', '328089', '328090', '328091']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'ethan.furman', 'Paul Pinterits', 'xtreak']
    pr_nums = ['9147', '9147', '9147', '9381', '9978', '9979']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34536'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions