From: Tom de Vries Date: Sat, 17 Jun 2023 10:28:58 +0000 (+0200) Subject: [gdb/testsuite] Remove f-string in gdb.python/py-unwind.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34a6dcd4422a194a45ae5297ca6d0d56d4c75e97;p=binutils-gdb.git [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. --- diff --git a/gdb/testsuite/gdb.python/py-unwind.py b/gdb/testsuite/gdb.python/py-unwind.py index 8e24a3190c7..1dcc240c988 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