Skip to content

Add support.check_time_delta() #65163

Closed
Closed

Description

@vstinner
BPO 20964
Nosy @vstinner
Files
  • check_time_delta.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 2015-10-02.21:07:03.090>
    created_at = <Date 2014-03-17.23:23:14.112>
    labels = ['tests']
    title = 'Add support.check_time_delta()'
    updated_at = <Date 2015-10-02.21:07:03.089>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2015-10-02.21:07:03.089>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-10-02.21:07:03.090>
    closer = 'vstinner'
    components = ['Tests']
    creation = <Date 2014-03-17.23:23:14.112>
    creator = 'vstinner'
    dependencies = []
    files = ['34471']
    hgrepos = []
    issue_num = 20964
    keywords = ['patch']
    message_count = 2.0
    messages = ['213914', '213917']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue20964'
    versions = ['Python 3.5']

    Activity

    1. vstinner commented on Mar 17, 2014

      @vstinner
      MemberAuthor

      Follow-up of issue bpo-20910: add a support.check_time_delta() function an a --check-time-delta command line option for Lib/test/regrtest.py. By default, the function tolerate a difference of 500 ms for the maximum delta.

      The idea is to set the --check-time-delta option on slowest buildbots to tolerate larger difference.

      For example, test_time_and_call_at() of test_asyncio takes 2000 ms instead of 100 ms on the "AMD64 OpenIndiana 3.x" buildbot:
      http://bugs.python.org/issue20336#msg208714

    2. vstinner commented on Mar 17, 2014

      @vstinner
      MemberAuthor

      I ran test_time and test_asyncio on Linux and Windows with --check-time-delta=1e-9 and the tests passed.

    3. transferred this issue fromon Apr 10, 2022
    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

      testsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions