Thanks to visit codestin.com
Credit goes to github.com

Skip to content

unittest.mock.patch does not work as a decorator on generator functions #88893

Description

@gmjw
mannequin
BPO 44730
Nosy @gmjw
PRs
  • bpo-44730: Add handling of generator functions #27315
  • Files
  • example_patch_failure.py: Example of failure on simple patch of len
  • 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 = None
    created_at = <Date 2021-07-23.23:38:41.484>
    labels = ['3.8', 'type-feature', 'library']
    title = 'unittest.mock.patch does not work as a decorator on generator functions'
    updated_at = <Date 2021-07-24.00:57:01.742>
    user = 'https://github.com/gmjw'

    bugs.python.org fields:

    activity = <Date 2021-07-24.00:57:01.742>
    actor = 'garethmjwilliams'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-07-23.23:38:41.484>
    creator = 'garethmjwilliams'
    dependencies = []
    files = ['50176']
    hgrepos = []
    issue_num = 44730
    keywords = ['patch']
    message_count = 1.0
    messages = ['398104']
    nosy_count = 1.0
    nosy_names = ['garethmjwilliams']
    pr_nums = ['27315']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44730'
    versions = ['Python 3.8']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions