[PATCH 3/3] [gdb/testsuite] Remove f-string in gdb.python/py-unwind.py
Tom de Vries
tdevries@suse.de
Sat Jun 17 10:30:23 GMT 2023
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.
---
gdb/testsuite/gdb.python/py-unwind.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.35.3
More information about the Gdb-patches
mailing list