changeset: 99053:bdd257d60da2 branch: 2.7 parent: 99045:f81e357b2318 user: Serhiy Storchaka date: Tue Nov 10 19:53:37 2015 +0200 files: Lib/email/test/test_email.py description: Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. Use time.time instead of time.clock. diff -r f81e357b2318 -r bdd257d60da2 Lib/email/test/test_email.py --- a/Lib/email/test/test_email.py Tue Nov 10 15:32:54 2015 +0200 +++ b/Lib/email/test/test_email.py Tue Nov 10 19:53:37 2015 +0200 @@ -2424,7 +2424,7 @@ self.msgids = [] append = self.msgids.append make_msgid = Utils.make_msgid - clock = time.clock + clock = time.time tfin = clock() + 3.0 while clock() < tfin: append(make_msgid())