]> granicus.if.org Git - python/commit
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972) (GH-7976)
authorVictor Stinner <vstinner@redhat.com>
Wed, 27 Jun 2018 21:14:53 +0000 (23:14 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Jun 2018 21:14:53 +0000 (23:14 +0200)
commit1d06be8cc55715be8c32ec3b462adfb3a7839dfe
treec50b865b9c3e9bfbc9dd80858b4fa4ecd0d8d486
parenta599323fc7661668a01e9fbb0d2369e62941bdf1
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972) (GH-7976)

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)
Lib/test/test_multiprocessing_main_handling.py