changeset: 99051:e259c0ab7a69 branch: 3.5 parent: 99048:e445ebe2ec0c parent: 99050:3c0a817ab616 user: Serhiy Storchaka date: Tue Nov 10 19:51:56 2015 +0200 files: Lib/test/test_email/test_email.py description: Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. Use time.monotonic instead of time.clock. diff -r e445ebe2ec0c -r e259c0ab7a69 Lib/test/test_email/test_email.py --- a/Lib/test/test_email/test_email.py Tue Nov 10 18:35:19 2015 +0100 +++ b/Lib/test/test_email/test_email.py Tue Nov 10 19:51:56 2015 +0200 @@ -3179,7 +3179,7 @@ self.msgids = [] append = self.msgids.append make_msgid = utils.make_msgid - clock = time.clock + clock = time.monotonic tfin = clock() + 3.0 while clock() < tfin: append(make_msgid(domain='testdomain-string'))