diff --git a/testdata/python/layObjects.py b/testdata/python/layObjects.py
index 695621ec6..1b58f4430 100644
--- a/testdata/python/layObjects.py
+++ b/testdata/python/layObjects.py
@@ -26,7 +26,7 @@ class LAYObjectsTests(unittest.TestCase):
class MyBrowserSource(pya.BrowserSource):
def get(self, url):
next_url = "int:" + str(int(url.split(":")[1]) + 1)
- return f"This is {url}. Goto next ({next_url})"
+ return "This is " + url + ". Goto next (" + next_url + ")"
dialog = pya.BrowserDialog()
dialog.home = "int:0"