]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-149879: Fix test_signal on Cygwin (#149896)
authorVictor Stinner <vstinner@python.org>
Fri, 15 May 2026 19:32:10 +0000 (21:32 +0200)
committerGitHub <noreply@github.com>
Fri, 15 May 2026 19:32:10 +0000 (21:32 +0200)
commitd9ad171ced9b4814e22fe0b078d197de86c1393d
tree8011378eb18ce3debd5af7199d822dadf6fdef3e
parent9ee9f58747652764e1bdca0050daeeaea8a6b92d
gh-149879: Fix test_signal on Cygwin (#149896)

* Check for SIG_BLOCK instead of pthread_sigmask() to decide if
  SIG_BLOCK, SIG_UNBLOCK and SIG_SETMASK constants should be
  converted to enums.
* Skip ITIMER_VIRTUAL and ITIMER_PROF tests on Cygwin: setitimer()
  fails with ItimerError(EINVAL).
Lib/signal.py
Lib/test/test_signal.py