diff options
author | Tom de Vries <tdevries@suse.de> | 2024-08-01 09:23:24 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-08-01 09:23:24 +0200 |
commit | 1d4ed5907570ef4901f2bbf383e563dc0854bf15 (patch) | |
tree | b2a52866e75b7d3acd20e71318ddd21582c5f2da /libiberty | |
parent | ca5915512b4b20da363c7815ceb24759e9af01c1 (diff) | |
download | gdb-1d4ed5907570ef4901f2bbf383e563dc0854bf15.zip gdb-1d4ed5907570ef4901f2bbf383e563dc0854bf15.tar.gz gdb-1d4ed5907570ef4901f2bbf383e563dc0854bf15.tar.bz2 |
[gdb/testsuite] Fix gdb.python/py-format-string.exp with python 3.13
On fedora rawhide, with python 3.13, I run into:
...
(gdb) python print (gdb.parse_and_eval ('a_point_t').format_string (invalid=True))^M
Python Exception <class 'TypeError'>: \
this function got an unexpected keyword argument 'invalid'^M
Error occurred in Python: \
this function got an unexpected keyword argument 'invalid'^M
(gdb) FAIL: $exp: format_string: lang_c: test_all_common: test_invalid_args: \
a_point_t with option invalid=True
...
A passing version with an older python version looks like:
...
(gdb) python print (gdb.parse_and_eval ('a_point_t').format_string (invalid=True))^M
Python Exception <class 'TypeError'>: \
'invalid' is an invalid keyword argument for this function^M
Error occurred in Python: \
'invalid' is an invalid keyword argument for this function^M
(gdb) PASS: $exp: format_string: lang_c: test_all_common: test_invalid_args: \
a_point_t with option invalid=True
...
Fix this by accepting the updated error message.
Tested on aarch64-linux.
PR testsuite/31912
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31912
Diffstat (limited to 'libiberty')
0 files changed, 0 insertions, 0 deletions