diff options
author | Tom de Vries <tdevries@suse.de> | 2023-06-17 12:28:58 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-06-17 12:28:58 +0200 |
commit | 34a6dcd4422a194a45ae5297ca6d0d56d4c75e97 (patch) | |
tree | 15604cdafdea62ffea5590c2738b520f10ba0ea8 /gdb | |
parent | 90cce6c0551b31b7e7bebec8ca9d6ac9267a8560 (diff) | |
download | gdb-34a6dcd4422a194a45ae5297ca6d0d56d4c75e97.zip gdb-34a6dcd4422a194a45ae5297ca6d0d56d4c75e97.tar.gz gdb-34a6dcd4422a194a45ae5297ca6d0d56d4c75e97.tar.bz2 |
[gdb/testsuite] Remove f-string in gdb.python/py-unwind.py
on openSUSE Leap 42.3, with python 3.4, I run into a
"SyntaxError: invalid syntax" due to usage of an f-string in test-case
gdb.python/py-unwind.py.
Fix this by using string concatenation using '+' instead.
Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.python/py-unwind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-unwind.py b/gdb/testsuite/gdb.python/py-unwind.py index 8e24a31..1dcc240 100644 --- a/gdb/testsuite/gdb.python/py-unwind.py +++ b/gdb/testsuite/gdb.python/py-unwind.py @@ -254,7 +254,7 @@ class validating_unwinder(Unwinder): assert not old_info["matched"] for key, value in info.items(): - assert key in old_info, f"{key} not in old_info" + assert key in old_info, key + " not in old_info" assert type(value) == type(old_info[key]) if isinstance(value, gdb.Block): assert value.start == old_info[key].start |