diff options
Diffstat (limited to 'Lib/test/support/__init__.py')
-rw-r--r-- | Lib/test/support/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 5bea547..fd7fb2c 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -2219,11 +2219,11 @@ def start_threads(threads, unlock=None): try: if unlock: unlock() - endtime = starttime = time.time() + endtime = starttime = time.monotonic() for timeout in range(1, 16): endtime += 60 for t in started: - t.join(max(endtime - time.time(), 0.01)) + t.join(max(endtime - time.monotonic(), 0.01)) started = [t for t in started if t.isAlive()] if not started: break |