From 9665cca16d031b929d1c652654870657aeb127f4 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 10 Nov 2015 19:53:37 +0200 Subject: [PATCH] Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. Use time.time instead of time.clock. --- Lib/email/test/test_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 513b3e5eb7..160306c5ee 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()) -- 2.50.1