Fixed pya tests for Python 2.7

This commit is contained in:
Matthias Koefferlein 2024-01-20 23:11:54 +01:00
parent 188b5ce4fb
commit cb3d7bc5f3
1 changed files with 1 additions and 1 deletions

View File

@ -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}. <a href='{next_url}'>Goto next ({next_url})</a>"
return "This is " + url + ". <a href='" + next_url + "'>Goto next (" + next_url + ")</a>"
dialog = pya.BrowserDialog()
dialog.home = "int:0"