From: Serhiy Storchaka Date: Tue, 10 Nov 2015 17:53:37 +0000 (+0200) Subject: Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. X-Git-Tag: v2.7.11rc1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9665cca16d031b929d1c652654870657aeb127f4;p=thirdparty%2FPython%2Fcpython.git Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. Use time.time instead of time.clock. --- diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 513b3e5eb7d0..160306c5ee8c 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -2424,7 +2424,7 @@ Foo 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())