[Python-checkins] cpython (merge 3.5 -> default): Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.

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


https://hg.python.org/cpython/rev/d1c11a78b43a
changeset:   99052:d1c11a78b43a
parent:      99049:7ef2d85fc1a7
parent:      99051:e259c0ab7a69
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Nov 10 19:52:20 2015 +0200
summary:
  Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.monotonic instead of time.clock.

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


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

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


More information about the Python-checkins mailing list