Skip to content

patch.object should raise another error when first argument is a str #82850

Description

@elenaoat
mannequin
BPO 38669
Nosy @terryjreedy, @cjw296, @voidspace, @elenaoat, @lisroach, @mariocj89, @tirkarthi
PRs
  • bpo-38669: Add check for the type of target #17034
  • [3.8] bpo-38669: patch.object now raises a helpful error (GH17034) #17510
  • [3.7] bpo-38669: patch.object now raises a helpful error (GH17034) #17511
  • 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-12-09.07:00:24.292>
    created_at = <Date 2019-11-03.02:30:39.464>
    labels = ['type-feature', 'tests', '3.9']
    title = 'patch.object should raise another error when first argument is a str'
    updated_at = <Date 2019-12-09.07:00:24.291>
    user = 'https://github.com/elenaoat'

    bugs.python.org fields:

    activity = <Date 2019-12-09.07:00:24.291>
    actor = 'cjw296'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-12-09.07:00:24.292>
    closer = 'cjw296'
    components = ['Tests']
    creation = <Date 2019-11-03.02:30:39.464>
    creator = 'Elena.Oat'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38669
    keywords = ['patch']
    message_count = 5.0
    messages = ['355886', '356258', '358023', '358057', '358058']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'cjw296', 'michael.foord', 'Elena.Oat', 'lisroach', 'mariocj89', 'xtreak']
    pr_nums = ['17034', '17510', '17511']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue38669'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifetestsTests in the Lib/test dirtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions