diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-10 17:51:56 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-10 17:51:56 (GMT) |
commit | c6ce13d9101f51af53101f63a789e252784395ea (patch) | |
tree | da1f4ca2338466d34debc61f67dfd40bbb09dc99 /Lib/test/test_email | |
parent | 7c3f3859a570f2cff2dd55c80a7116f0505f22a8 (diff) | |
parent | e1dc3d47e0a5cc4b390cc9eb70c5a5153c309cb2 (diff) | |
download | cpython-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.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 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')) |