]> granicus.if.org Git - python/commit
Issue #8407: Make signal.sigwait() tests more reliable
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 10 Jun 2011 10:48:13 +0000 (12:48 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 10 Jun 2011 10:48:13 +0000 (12:48 +0200)
commitaf4946020e92556052782fcc95075dd8d694dbb5
tree2e9d61f2e5c5bbc863f4c943aa433bd3f64f798a
parentb0ae53d8a09731a51be48f9e84a71d09d0f90657
Issue #8407: Make signal.sigwait() tests more reliable

Block the signal before calling sigwait(). Use os.fork() to ensure that we have
only one thread.

Initial patch written by Charles-François Natali.
Lib/test/test_signal.py