mirror of
https://github.com/python/cpython.git
synced 2026-06-08 02:41:11 +00:00
gh-149879: Fix multiprocessing resource tracker tests on Cygwin (#150440)
Skip test_resource_tracker_sigterm() if signal.pthread_sigmask() is missing.
This commit is contained in:
parent
ec23ec6870
commit
bc67dadb1b
1 changed files with 2 additions and 0 deletions
|
|
@ -6310,6 +6310,8 @@ def test_resource_tracker_sigint(self):
|
|||
# Catchable signal (ignored by semaphore tracker)
|
||||
self.check_resource_tracker_death(signal.SIGINT, False)
|
||||
|
||||
@unittest.skipUnless(hasattr(signal, 'pthread_sigmask'),
|
||||
'need signal.pthread_sigmask')
|
||||
def test_resource_tracker_sigterm(self):
|
||||
# Catchable signal (ignored by semaphore tracker)
|
||||
self.check_resource_tracker_death(signal.SIGTERM, False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue