summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-10 17:51:56 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-10 17:51:56 (GMT)
commitc6ce13d9101f51af53101f63a789e252784395ea (patch)
treeda1f4ca2338466d34debc61f67dfd40bbb09dc99 /Lib/test/test_email
parent7c3f3859a570f2cff2dd55c80a7116f0505f22a8 (diff)
parente1dc3d47e0a5cc4b390cc9eb70c5a5153c309cb2 (diff)
downloadcpython-c6ce13d9101f51af53101f63a789e252784395ea.zip
cpython-c6ce13d9101f51af53101f63a789e252784395ea.tar.gz
cpython-c6ce13d9101f51af53101f63a789e252784395ea.tar.bz2
Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.monotonic instead of time.clock.
Diffstat (limited to 'Lib/test/test_email')
-rw-r--r--Lib/test/test_email/test_email.py2
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
index dff3e4b..894b800 100644
--- a/Lib/test/test_email/test_email.py
+++ b/Lib/test/test_email/test_email.py
@@ -3179,7 +3179,7 @@ Foo
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'))