Browse Source

Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.

Use time.monotonic instead of time.clock.
pull/9921/head
Serhiy Storchaka 11 years ago
parent
commit
a15a98638a
  1. 2
      Lib/test/test_email/test_email.py

2
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'))

Loading…
Cancel
Save