Message 297697 - Python tracker
First at all replace self.assertTrue(time.time()<timeout) with self.assertLess(time.time(), timeout). There was a large set of patches that did this globally for all tests (issue16510 and subissues), but it was mostly rejected (only some parts were merged, and often only into master).