diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-12-16 18:18:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-16 18:18:02 (GMT) |
commit | 1d276ec6f8403590a6a1a18c560ce75b9221572b (patch) | |
tree | eb45452944131db0fc07ed384e90db708f5bc093 /Lib/test | |
parent | e4981e33b82ac14cca0f2d9b95257301fa201810 (diff) | |
download | cpython-1d276ec6f8403590a6a1a18c560ce75b9221572b.zip cpython-1d276ec6f8403590a6a1a18c560ce75b9221572b.tar.gz cpython-1d276ec6f8403590a6a1a18c560ce75b9221572b.tar.bz2 |
Revert "gh-127586: properly restore blocked signals in resource_tracker.py (GH-127587)" (#127983)
This reverts commit 46006a1b355f75d06c10e7b8086912c483b34487.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 01e92f0..80b08b8 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -6044,21 +6044,6 @@ class TestResourceTracker(unittest.TestCase): self._test_resource_tracker_leak_resources( cleanup=cleanup, ) - @unittest.skipUnless(hasattr(signal, "pthread_sigmask"), "pthread_sigmask is not available") - def test_resource_tracker_blocked_signals(self): - # - # gh-127586: Check that resource_tracker does not override blocked signals of caller. - # - from multiprocessing.resource_tracker import ResourceTracker - signals = {signal.SIGTERM, signal.SIGINT, signal.SIGUSR1} - - for sig in signals: - signal.pthread_sigmask(signal.SIG_SETMASK, {sig}) - self.assertEqual(signal.pthread_sigmask(signal.SIG_BLOCK, set()), {sig}) - tracker = ResourceTracker() - tracker.ensure_running() - self.assertEqual(signal.pthread_sigmask(signal.SIG_BLOCK, set()), {sig}) - tracker._stop() class TestSimpleQueue(unittest.TestCase): |