Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 774b811

Browse files
committed
TST: signal alias does not exist on OSX
The alias SIGCLD for SIGCHLD does not exist on OSX
1 parent 10f5b60 commit 774b811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_backend_qt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def test_other_signal_before_sigint(qt_core, platform_simulate_ctrl_c,
9393
def custom_sigpipe_handler(signum, frame):
9494
nonlocal sigcld_caught
9595
sigcld_caught = True
96-
signal.signal(signal.SIGCLD, custom_sigpipe_handler)
96+
signal.signal(signal.SIGCHLD, custom_sigpipe_handler)
9797

9898
def fire_other_signal():
99-
os.kill(os.getpid(), signal.SIGCLD)
99+
os.kill(os.getpid(), signal.SIGCHLD)
100100

101101
def fire_sigint():
102102
platform_simulate_ctrl_c()

0 commit comments

Comments
 (0)