diff options
author | Tom de Vries <tdevries@suse.de> | 2025-06-25 12:37:35 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-06-25 12:37:35 +0200 |
commit | 4d4bb30b41aaf902e4ad21e4b314950c705447bc (patch) | |
tree | 258585755ff5b84e07f6f931128c308414dff5c5 /gdb/python/py-connection.c | |
parent | 86a053ddd1e2534c588d8d6f56752fb51dd1b184 (diff) | |
download | binutils-4d4bb30b41aaf902e4ad21e4b314950c705447bc.zip binutils-4d4bb30b41aaf902e4ad21e4b314950c705447bc.tar.gz binutils-4d4bb30b41aaf902e4ad21e4b314950c705447bc.tar.bz2 |
[gdb/testsuite] Fix gdb.python/py-warning.exp with python 3.6
On openSUSE Tumbleweed (with python 3.13), I get:
...
(gdb) PASS: gdb.python/py-warning.exp: python gdb.warning("")
python gdb.warning()^M
Python Exception <class 'TypeError'>: \
function missing required argument 'text' (pos 1)^M
Error occurred in Python: function missing required argument 'text' (pos 1)^M
(gdb) PASS: gdb.python/py-warning.exp: python gdb.warning()
...
But on openSUSE Leap 15.6 (with python 3.6), I get instead:
...
(gdb) PASS: gdb.python/py-warning.exp: python gdb.warning("")
python gdb.warning()^M
Python Exception <class 'TypeError'>: \
Required argument 'text' (pos 1) not found^M
Error occurred in Python: Required argument 'text' (pos 1) not found^M
(gdb) FAIL: gdb.python/py-warning.exp: python gdb.warning()
...
Fix this by updating the regexp.
Tested on x86_64-linux.
PR testsuite/33104
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33104
Diffstat (limited to 'gdb/python/py-connection.c')
0 files changed, 0 insertions, 0 deletions