changeset: 99052:d1c11a78b43a parent: 99049:7ef2d85fc1a7 parent: 99051:e259c0ab7a69 user: Serhiy Storchaka date: Tue Nov 10 19:52:20 2015 +0200 description: Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions. Use time.monotonic instead of time.clock. diff -r 7ef2d85fc1a7 -r d1c11a78b43a Lib/test/test_email/test_email.py --- a/Lib/test/test_email/test_email.py Tue Nov 10 18:35:47 2015 +0100 +++ b/Lib/test/test_email/test_email.py Tue Nov 10 19:52:20 2015 +0200 @@ -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'))