Skip to content

Commit

Permalink
[3.12] pythongh-110017: Disable test_signal.test_stress_modifying_han…
Browse files Browse the repository at this point in the history
…dlers on macOS (pythonGH-112834) (python#112851)

pythongh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (pythonGH-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 bf0beae)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
  • Loading branch information
miss-islington and ronaldoussoren committed Dec 8, 2023
1 parent 8b58d12 commit 46f86f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,7 @@ def handler(signum, frame):
# 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()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Disable a signal handling stress test on macOS due to a bug in macOS
(FB13453490).

0 comments on commit 46f86f5

Please sign in to comment.