Skip to content

Allow waiting on a mock#61215

@pitrou

Description

@pitrou
BPO17013
Nosy@jcea, @pitrou, @rbtcollins, @cjw296, @ezio-melotti, @voidspace, @Kentzo, @lisroach, @mariocj89, @pablogsal, @Kentzo, @tirkarthi
PRs
  • [WIP] bpo-17013: Implement WaitableMock to create Mock objects that can wait until called #12818
  • gh-61215: New mock to wait for multi-threaded events to happen #16094
  • bpo-17013: Extend Mock.called to allow waiting for calls #17133
  • gh-61215: Add Mock.call_event to allow waiting for calls #20759
  • 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=Noneclosed_at=Nonecreated_at=<Date2013-01-22.12:15:47.799>labels= ['type-feature', 'library', '3.9'] title='Allow waiting on a mock'updated_at=<Date2020-06-10.14:37:15.926>user='https://github.com/pitrou'

    bugs.python.org fields:

    activity=<Date2020-06-10.14:37:15.926>actor='Kentzo'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Library (Lib)'] creation=<Date2013-01-22.12:15:47.799>creator='pitrou'dependencies= [] files= [] hgrepos= [] issue_num=17013keywords= ['patch'] message_count=18.0messages= ['180377', '181398', '247777', '340146', '340153', '340158', '340164', '352211', '356898', '367446', '371133', '371165', '371175', '371193', '371195', '371196', '371202', '371207'] nosy_count=13.0nosy_names= ['jcea', 'pitrou', 'rbcollins', 'cjw296', 'ezio.melotti', 'michael.foord', 'Ilya.Kulakov', 'lisroach', 'mariocj89', 'lkollar', 'pablogsal', 'Kentzo', 'xtreak'] pr_nums= ['12818', '16094', '17133', '20759'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='enhancement'url='https://bugs.python.org/issue17013'versions= ['Python 3.9']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      Status

      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions