https://github.com/python/cpython/commit/54a187d3b3ae11e37ae04fd91f3ea0cdfb6fe410
commit: 54a187d3b3ae11e37ae04fd91f3ea0cdfb6fe410
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: diegorusso <[email protected]>
date: 2026-05-08T13:32:59Z
summary:

[3.15] Skip GNU backtrace test on Arm 32-bit (GH-149493) (#149562)

files:
M Lib/test/test_frame_pointer_unwind.py

diff --git a/Lib/test/test_frame_pointer_unwind.py 
b/Lib/test/test_frame_pointer_unwind.py
index faa012c9c00d8f..1cf5083fd0fdcf 100644
--- a/Lib/test/test_frame_pointer_unwind.py
+++ b/Lib/test/test_frame_pointer_unwind.py
@@ -89,6 +89,21 @@ def _frame_pointers_expected(machine):
     return None
 
 
+def _is_arm32_build():
+    if sys.maxsize >= 2**32:
+        return False
+
+    abi = " ".join(
+        value for value in (
+            sysconfig.get_config_var("MULTIARCH"),
+            sysconfig.get_config_var("HOST_GNU_TYPE"),
+            sysconfig.get_config_var("SOABI"),
+        )
+        if value
+    ).lower()
+    return "arm" in abi
+
+
 def _build_stack_and_unwind(unwinder):
     import operator
 
@@ -295,6 +310,10 @@ def test_manual_unwind_respects_frame_pointers(self):
 @support.requires_gil_enabled("test requires the GIL enabled")
 @unittest.skipIf(support.is_wasi, "test not supported on WASI")
 @unittest.skipUnless(sys.platform == "linux", "GNU backtrace unwinding test 
requires Linux")
[email protected](
+    _is_arm32_build(),
+    "GNU backtrace unwinding skipped on Arm 32-bit",
+)
 class GnuBacktraceUnwindTests(unittest.TestCase):
 
     def setUp(self):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to