]> granicus.if.org Git - python/commit
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Jun 2018 20:41:39 +0000 (13:41 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Jun 2018 20:41:39 +0000 (13:41 -0700)
commit4b1d286ac06f32a5857af1b3141dd4127744b15b
tree144b0b8d065cdf4c68c4527beed92862c0d3e8dd
parent34f2935dca7bb20cd87e42dc41985cc3d688a735
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972)

bpo-30339, bpo-33913:

* Increase timeout from 10 seconds to 1 minute in
  test_source_main_skipped_in_children source of
  test_multiprocessing_main_handling.
* Replace time.time() with time.monotonic().
* On timeout, include the duration in the error message.
(cherry picked from commit 64737e9ae2081e529935ecf07f44e89f362d1c4b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_multiprocessing_main_handling.py