This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, vstinner
Date 2018-07-12.10:44:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531392242.2.0.56676864532.issue33723@psf.upfronthosting.co.za>
In-reply-to
Content
The following test failed:

        # thread_time() should include CPU time spent in current thread...
        start = time.thread_time()
        busy_wait(0.100)
        stop = time.thread_time()
        self.assertGreaterEqual(stop - start, 0.020)  # machine busy?

def busy_wait(duration):
    deadline = time.monotonic() + duration
    while time.monotonic() < deadline:
        pass

Do we really have to have functional tests on Python block functions? These tests seem very fragile...

I proposed the PR 8265 to remove these fragile tests.

I chose to keep time.process_time() functional test. We can remove it later if it starts failing on a buildbot.
History
Date User Action Args
2018-07-12 10:44:02vstinnersetrecipients: + vstinner, pitrou
2018-07-12 10:44:02vstinnersetmessageid: <1531392242.2.0.56676864532.issue33723@psf.upfronthosting.co.za>
2018-07-12 10:44:02vstinnerlinkissue33723 messages
2018-07-12 10:44:02vstinnercreate