Message321537
| 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:02 | vstinner | set | recipients: + vstinner, pitrou |
| 2018-07-12 10:44:02 | vstinner | set | messageid: <1531392242.2.0.56676864532.issue33723@psf.upfronthosting.co.za> |
| 2018-07-12 10:44:02 | vstinner | link | issue33723 messages |
| 2018-07-12 10:44:02 | vstinner | create | |