Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue36454

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7
Type:Stage:resolved
Components:TestsVersions:Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: koobs, miss-islington, vstinner
Priority:normalKeywords:patch

Created on2019-03-28 01:54 byvstinner, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 12929mergedvstinner,2019-04-23 15:48
PR 12930mergedmiss-islington,2019-04-23 22:15
Messages (3)
msg339002 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2019-03-28 01:54
AMD64 FreeBSD 10-STABLE Non-Debug 3.7:https://buildbot.python.org/all/#/builders/170/builds/354======================================================================FAIL: test_monotonic (test.test_time.TimeTestCase)----------------------------------------------------------------------Traceback (most recent call last):  File "/usr/home/buildbot/python/3.7.koobs-freebsd10.nondebug/build/Lib/test/test_time.py", line 474, in test_monotonic    self.assertTrue(0.45 <= dt <= 1.0, dt)AssertionError: False is not true : 1.0372954378835857Extract of the test:    def test_monotonic(self):        ...        # monotonic() includes time elapsed during a sleep        t1 = time.monotonic()        time.sleep(0.5)        t2 = time.monotonic()        dt = t2 - t1        self.assertGreater(t2, t1)        # Issue#20101: On some Windows machines, dt may be slightly low        self.assertTrue(0.45 <= dt <= 1.0, dt)        ...IMHO the test is too strict. It should not test the maximum value of dt, only the minimum.
msg340744 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2019-04-23 22:15
New changesetd246a6766b9d8cc625112906299c4cb019944300 by Victor Stinner in branch 'master':bpo-36454: Fix test_time.test_monotonic() (GH-12929)https://github.com/python/cpython/commit/d246a6766b9d8cc625112906299c4cb019944300
msg340745 -(view)Author: miss-islington (miss-islington)Date: 2019-04-23 22:35
New changesete1a6cf2824acb43dc80473e0d938db99856daa97 by Miss Islington (bot) in branch '3.7':bpo-36454: Fix test_time.test_monotonic() (GH-12929)https://github.com/python/cpython/commit/e1a6cf2824acb43dc80473e0d938db99856daa97
History
DateUserActionArgs
2022-04-11 14:59:13adminsetgithub: 80635
2019-04-24 10:51:29koobssetnosy: +koobs
2019-04-23 23:46:23vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-04-23 22:35:59miss-islingtonsetnosy: +miss-islington
messages: +msg340745
2019-04-23 22:15:33vstinnersetmessages: +msg340744
2019-04-23 22:15:30miss-islingtonsetpull_requests: +pull_request12855
2019-04-23 15:48:50vstinnersetkeywords: +patch
stage: patch review
pull_requests: +pull_request12854
2019-03-28 01:54:53vstinnercreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp