]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (#112834)
authorRonald Oussoren <ronaldoussoren@mac.com>
Thu, 7 Dec 2023 18:41:27 +0000 (19:41 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 18:41:27 +0000 (19:41 +0100)
Test test_stress_modifying_handlers in test_signal can crash
the interpreter due to a bug in macOS. Filed as FB13453490
with Apple.

Lib/test/test_signal.py
Misc/NEWS.d/next/macOS/2023-12-07-15-53-16.gh-issue-110017.UMYzMR.rst [new file with mode: 0644]

index f2ae28c38dd72d721a8319e536f46b2882af0c2f..acb7e9d4c6074d108ca9c32a93132aa216e4a50a 100644 (file)
@@ -1318,6 +1318,7 @@ class StressTest(unittest.TestCase):
         # Python handler
         self.assertEqual(len(sigs), N, "Some signals were lost")
 
+    @unittest.skipIf(sys.platform == "darwin", "crashes due to system bug (FB13453490)")
     @unittest.skipUnless(hasattr(signal, "SIGUSR1"),
                          "test needs SIGUSR1")
     @threading_helper.requires_working_threading()
diff --git a/Misc/NEWS.d/next/macOS/2023-12-07-15-53-16.gh-issue-110017.UMYzMR.rst b/Misc/NEWS.d/next/macOS/2023-12-07-15-53-16.gh-issue-110017.UMYzMR.rst
new file mode 100644 (file)
index 0000000..eab1746
--- /dev/null
@@ -0,0 +1,2 @@
+Disable a signal handling stress test on macOS due to a bug in macOS
+(FB13453490).