]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36454: Fix test_time.test_monotonic() (GH-12929)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 23 Apr 2019 22:35:55 +0000 (15:35 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2019 22:35:55 +0000 (15:35 -0700)
commite1a6cf2824acb43dc80473e0d938db99856daa97
tree8113fc13783bb9cf720088a47b2e665e7cdef408
parente64d21b187871c35fb2a1d68b6a591ec26d86722
bpo-36454: Fix test_time.test_monotonic() (GH-12929)

Change test_time.test_monotonic() to test only the lower bound of elapsed time
after a sleep command rather than the upper bound. This prevents unnecessary
test failures on slow buildbots. Patch by Victor Stinner.
(cherry picked from commit d246a6766b9d8cc625112906299c4cb019944300)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_time.py
Misc/NEWS.d/next/Tests/2019-04-23-17-48-11.bpo-36454.0q4lQz.rst [new file with mode: 0644]