Skip to content

isinstance check fails for Mock objects with spec executed under tracing function #80774

@nedbat

Description

@nedbat
BPO 36593
Nosy @nedbat, @cjw296, @voidspace, @mariocj89, @pablogsal, @miss-islington, @tirkarthi
PRs
  • bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing #12790
  • [3.7] bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790) #12821
  • Files
  • traced_sscce.py
  • 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 = None
    closed_at = <Date 2019-04-14.02:48:46.917>
    created_at = <Date 2019-04-11.00:04:16.787>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'isinstance check fails for Mock objects with spec executed under tracing function'
    updated_at = <Date 2019-04-14.02:48:46.915>
    user = 'https://github.com/nedbat'

    bugs.python.org fields:

    activity = <Date 2019-04-14.02:48:46.915>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-14.02:48:46.917>
    closer = 'pablogsal'
    components = ['Library (Lib)']
    creation = <Date 2019-04-11.00:04:16.787>
    creator = 'nedbat'
    dependencies = []
    files = ['48260']
    hgrepos = []
    issue_num = 36593
    keywords = ['patch', '3.7regression']
    message_count = 11.0
    messages = ['339903', '339904', '339908', '339909', '339956', '339964', '339987', '340170', '340171', '340172', '340177']
    nosy_count = 7.0
    nosy_names = ['nedbat', 'cjw296', 'michael.foord', 'mariocj89', 'pablogsal', 'miss-islington', 'xtreak']
    pr_nums = ['12790', '12821']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36593'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (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