]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_multiprocessing detects dangling per test case (#2841)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 24 Jul 2017 23:55:54 +0000 (01:55 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2017 23:55:54 +0000 (01:55 +0200)
commitffb49408f0780ae80a553208aa133bc5bb3ba129
treec1d29d1be3aa593af611fdc7b6982e5afe587bb2
parentd7e64d9934d86aa6173229de5af5fe908662a33a
test_multiprocessing detects dangling per test case (#2841)

bpo-26762: test_multiprocessing now detects dangling processes and
threads per test case classes:

* setUpClass()/tearDownClass() of mixin classes now check if
  multiprocessing.process._dangling or threading._dangling was
  modified to detect "dangling" processses and threads.
* ManagerMixin.tearDownClass() now also emits a warning if it still
  has more than one active child process after 5 seconds.
* tearDownModule() now checks for dangling processes and threads
  before sleep 500 ms. And it now only sleeps if there is a least one
  dangling process or thread.
Lib/test/_test_multiprocessing.py