Commit 71049486 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.

Use time.monotonic instead of time.clock.
parents 433d833d d4dc5515
...@@ -3179,7 +3179,7 @@ Foo ...@@ -3179,7 +3179,7 @@ Foo
self.msgids = [] self.msgids = []
append = self.msgids.append append = self.msgids.append
make_msgid = utils.make_msgid make_msgid = utils.make_msgid
clock = time.clock clock = time.monotonic
tfin = clock() + 3.0 tfin = clock() + 3.0
while clock() < tfin: while clock() < tfin:
append(make_msgid(domain='testdomain-string')) append(make_msgid(domain='testdomain-string'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment