[Python-checkins] cpython (2.7): Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.

serhiy.storchaka python-checkins at python.org
Tue Nov 10 12:54:13 EST 2015


https://hg.python.org/cpython/rev/bdd257d60da2
changeset:   99053:bdd257d60da2
branch:      2.7
parent:      99045:f81e357b2318
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Nov 10 19:53:37 2015 +0200
summary:
  Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.time instead of time.clock.

files:
  Lib/email/test/test_email.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -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())

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list