changeset: 76653:0bdf0727ee29 user: Victor Stinner date: Mon Apr 30 00:51:31 2012 +0200 files: Lib/test/test_time.py description: Issue #14428: Make test_process_time_threads() less strict diff -r 56becb6716fd -r 0bdf0727ee29 Lib/test/test_time.py --- a/Lib/test/test_time.py Sun Apr 29 18:20:05 2012 -0400 +++ b/Lib/test/test_time.py Mon Apr 30 00:51:31 2012 +0200 @@ -438,7 +438,8 @@ t2 = time.process_time() thread.stop = True thread.join() - self.assertGreaterEqual(t2 - t1, busy) + # Use a factor of 0.75 because time.process_time() is maybe not precise + self.assertGreaterEqual(t2 - t1, busy * 0.75) @unittest.skipUnless(hasattr(time, 'monotonic'), 'need time.monotonic')