diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-10 17:52:20 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-10 17:52:20 (GMT) |
commit | a15a98638acd7cc4098bf2ee9d1094b4ac051b26 (patch) | |
tree | 6bd82a4ec4094d7a23722a0855e90ca19472e04c /Lib | |
parent | e2cf9843841ce0cf26ea7e31070313e361f91611 (diff) | |
parent | c6ce13d9101f51af53101f63a789e252784395ea (diff) | |
download | cpython-a15a98638acd7cc4098bf2ee9d1094b4ac051b26.zip cpython-a15a98638acd7cc4098bf2ee9d1094b4ac051b26.tar.gz cpython-a15a98638acd7cc4098bf2ee9d1094b4ac051b26.tar.bz2 |
Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.monotonic instead of time.clock.
Diffstat (limited to 'Lib')
-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')) |