[gdb/testsuite] Remove f-string in gdb.python/py-unwind.py
authorTom de Vries <tdevries@suse.de>
Sat, 17 Jun 2023 10:28:58 +0000 (12:28 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 17 Jun 2023 10:28:58 +0000 (12:28 +0200)
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

index 8e24a3190c7b869e4a083141fea192150246ae7b..1dcc240c9881318b3d6461dd2a5796caf82bcc48 100644 (file)
@@ -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