]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Dec 2018 09:03:04 +0000 (01:03 -0800)
committerGitHub <noreply@github.com>
Mon, 17 Dec 2018 09:03:04 +0000 (01:03 -0800)
commitbe69ff232df23b6ee165d7c34df5435d497cb79b
tree705a582be92252ef0b2ffb2ad245c92b27246a61
parent2d91a1325f7def1cc3762cadf5f5a99a55dac78a
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)

Replace time.time() with time.monotonic() in tests to measure time
delta.

test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).
(cherry picked from commit 2cf4c202ffeb30787c944365ba54013688b854c2)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
14 files changed:
Lib/pydoc.py
Lib/test/_test_multiprocessing.py
Lib/test/lock_tests.py
Lib/test/support/__init__.py
Lib/test/test_asyncio/utils.py
Lib/test/test_asyncore.py
Lib/test/test_dummy_thread.py
Lib/test/test_ossaudiodev.py
Lib/test/test_pydoc.py
Lib/test/test_signal.py
Lib/test/test_threadsignals.py
Lib/test/test_timeout.py
Lib/test/test_zipfile64.py
Misc/NEWS.d/next/Tests/2018-12-16-23-36-47.bpo-35513.k4WHlA.rst [new file with mode: 0644]