mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.monotonic instead of time.clock.
This commit is contained in:
commit
a15a98638a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue