diff options
author | Petr Viktorin <encukou@gmail.com> | 2019-05-29 20:45:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 20:45:41 (GMT) |
commit | fecb75c1bb46c818e6579ba422cfa5d0d9d104d1 (patch) | |
tree | 36238cb886d5740f29cf07344d89c37931c9a908 /Lib/test/test_gdb.py | |
parent | e70bfa95e6f0c98b9906f306f24d71f8b7689f87 (diff) | |
download | cpython-fecb75c1bb46c818e6579ba422cfa5d0d9d104d1.zip cpython-fecb75c1bb46c818e6579ba422cfa5d0d9d104d1.tar.gz cpython-fecb75c1bb46c818e6579ba422cfa5d0d9d104d1.tar.bz2 |
bpo-36974: Fix GDB integration (GH-13665)
As it changes the way functions are called, the PEP 590 implementation
skipped the functions that the GDB integration is looking for
(by name) to find function calls.
Looking for the new helper `cfunction_call_varargs` hopefully fixes the
tests, and thus buildbots.
The changed frame nuber in test_gdb is due to there being fewer
C calls when calling a built-in method.
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r-- | Lib/test/test_gdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index dbcb598..3127e69 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -887,7 +887,7 @@ id(42) breakpoint='time_gmtime', cmds_after_breakpoint=['py-bt-full'], ) - self.assertIn('#2 <built-in method gmtime', gdb_output) + self.assertIn('#1 <built-in method gmtime', gdb_output) @unittest.skipIf(python_is_optimized(), "Python was compiled with optimizations") |