Skip to content

mock 3.9 bug: Wrapped objects without __bool__ raise exception #84147

Description

@avylove
mannequin
BPO 39966
Nosy @rbtcollins, @cjw296, @bitdancer, @voidspace, @serhiy-storchaka, @phmc, @lisroach, @tonybaloney, @mariocj89, @avylove, @tirkarthi, @amiremohamadi
PRs
  • bpo-39966: Fix wrapped objects exception mockunittest #19102
  • bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock (#16029)" #19734
  • 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 2020-04-29.04:18:01.259>
    created_at = <Date 2020-03-15.06:39:44.237>
    labels = ['type-bug', 'library', '3.9']
    title = 'mock 3.9 bug: Wrapped objects without __bool__ raise exception'
    updated_at = <Date 2020-04-29.04:18:01.258>
    user = 'https://github.com/avylove'

    bugs.python.org fields:

    activity = <Date 2020-04-29.04:18:01.258>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-04-29.04:18:01.259>
    closer = 'xtreak'
    components = ['Library (Lib)']
    creation = <Date 2020-03-15.06:39:44.237>
    creator = 'aviso'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39966
    keywords = ['patch', '3.9regression']
    message_count = 19.0
    messages = ['364222', '364223', '364663', '364728', '365144', '365198', '365199', '365200', '365201', '365202', '365203', '365204', '365211', '366999', '367402', '367423', '367426', '367558', '367624']
    nosy_count = 13.0
    nosy_names = ['rbcollins', 'cjw296', 'r.david.murray', 'michael.foord', 'serhiy.storchaka', 'pconnell', 'Darragh Bailey', 'lisroach', 'anthonypjshaw', 'mariocj89', 'aviso', 'xtreak', 'Amir']
    pr_nums = ['19102', '19734']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39966'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (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