Skip to content

mock's autospec's behavior on method-bound builtin functions is broken #73589

@habnabit

Description

@habnabit
mannequin
BPO 29403
Nosy @voidspace, @berkerpeksag, @habnabit, @csabella
PRs
  • bpo-29403: Fix mock's broken autospec behavior on method-bound builtin functions #3
  • [3.6] bpo-29403: Fix mock's broken autospec behavior on method-bound builtin functions (GH-3) #2807
  • [3.5] bpo-29403: Fix mock's broken autospec behavior on method-bound builtin functions (GH-3) #2809
  • Files
  • mock.patch
  • 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 2017-07-21.23:27:59.508>
    created_at = <Date 2017-01-31.23:01:55.161>
    labels = ['3.7', 'type-bug', 'library']
    title = "mock's autospec's behavior on method-bound builtin functions is broken"
    updated_at = <Date 2017-07-21.23:27:59.506>
    user = 'https://github.com/habnabit'

    bugs.python.org fields:

    activity = <Date 2017-07-21.23:27:59.506>
    actor = 'berker.peksag'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-07-21.23:27:59.508>
    closer = 'berker.peksag'
    components = ['Library (Lib)']
    creation = <Date 2017-01-31.23:01:55.161>
    creator = 'Aaron Gallagher'
    dependencies = []
    files = ['46468']
    hgrepos = []
    issue_num = 29403
    keywords = ['patch']
    message_count = 7.0
    messages = ['286565', '286566', '295249', '298696', '298827', '298828', '298829']
    nosy_count = 4.0
    nosy_names = ['michael.foord', 'berker.peksag', 'Aaron Gallagher', 'cheryl.sabella']
    pr_nums = ['3', '2807', '2809']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29403'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      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