From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:08:04 +0000 (+0100) Subject: [3.11] gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH... X-Git-Tag: v3.11.8~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eac0aab859516378b64552b44b543a0dfd373c2;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834) (#112852) gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834) Test test_stress_modifying_handlers in test_signal can crash the interpreter due to a bug in macOS. Filed as FB13453490 with Apple. (cherry picked from commit bf0beae6a05f3266606a21e22a4d803abbb8d731) Co-authored-by: Ronald Oussoren --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 0f3343b10e4a..04f43ceb489c 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -1326,6 +1326,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 index 000000000000..eab1746f1ae3 --- /dev/null +++ b/Misc/NEWS.d/next/macOS/2023-12-07-15-53-16.gh-issue-110017.UMYzMR.rst @@ -0,0 +1,2 @@ +Disable a signal handling stress test on macOS due to a bug in macOS +(FB13453490).