]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40094: Enhance threading tests (GH-19260)
authorVictor Stinner <vstinner@python.org>
Tue, 31 Mar 2020 19:49:44 +0000 (21:49 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 19:49:44 +0000 (21:49 +0200)
commita9f9687a7ce25e7c0c89f88f52db323104668ae0
tree0049f147ffb3311373bb5a5501457d73796e7474
parent27c6231f5827fe17c6cb6f097391931f30b511ec
bpo-40094: Enhance threading tests (GH-19260)

* Rewrite test_thread.test_forkinthread() to use
  support.wait_process() and wait for the child process in the main
  thread, not in the spawned thread.
* test_threading now uses support.wait_process() and checks the child
  process exit code to detect crashes.
Lib/test/test_thread.py
Lib/test/test_threading.py