summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Tests
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-06 14:34:35 (GMT)
committerGitHub <noreply@github.com>2023-09-06 14:34:35 (GMT)
commitfbce43a251488f666be9794c908a6613bf8ae260 (patch)
treebbabd98b5c2001bfc6e5c066eb1d11a205c4c5d8 /Misc/NEWS.d/next/Tests
parenta8cae4071c795e55be46e339eda37e241fa0d7f8 (diff)
downloadcpython-fbce43a251488f666be9794c908a6613bf8ae260.zip
cpython-fbce43a251488f666be9794c908a6613bf8ae260.tar.gz
cpython-fbce43a251488f666be9794c908a6613bf8ae260.tar.bz2
gh-91960: Skip test_gdb if gdb cannot retrive Python frames (#108999)
Skip test_gdb if gdb is unable to retrieve Python frame objects: if a frame is "<optimized out>". When Python is built with "clang -Og", gdb can fail to retrive the 'frame' parameter of _PyEval_EvalFrameDefault(). In this case, tests like py_bt() are likely to fail. Without getting access to Python frames, python-gdb.py is mostly clueless on retrieving the Python traceback. Moreover, test_gdb is no longer skipped on macOS if Python is built with Clang.
Diffstat (limited to 'Misc/NEWS.d/next/Tests')
-rw-r--r--Misc/NEWS.d/next/Tests/2023-09-06-15-36-51.gh-issue-91960.P3nD5v.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2023-09-06-15-36-51.gh-issue-91960.P3nD5v.rst b/Misc/NEWS.d/next/Tests/2023-09-06-15-36-51.gh-issue-91960.P3nD5v.rst
new file mode 100644
index 0000000..46472ab
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2023-09-06-15-36-51.gh-issue-91960.P3nD5v.rst
@@ -0,0 +1,7 @@
+Skip ``test_gdb`` if gdb is unable to retrieve Python frame objects: if a
+frame is ``<optimized out>``. When Python is built with "clang -Og", gdb can
+fail to retrive the *frame* parameter of ``_PyEval_EvalFrameDefault()``. In
+this case, tests like ``py_bt()`` are likely to fail. Without getting access
+to Python frames, ``python-gdb.py`` is mostly clueless on retrieving the
+Python traceback. Moreover, ``test_gdb`` is no longer skipped on macOS if
+Python is built with Clang. Patch by Victor Stinner.