Skip to content
Snippets Groups Projects
Commit 6bc53c8c authored by Luca Weiss's avatar Luca Weiss
Browse files

test_upstream_compat: Use more f-strings

parent 7603f41c
Branches
Tags
No related merge requests found
......@@ -58,8 +58,7 @@ def test_qt_versions(args):
# Compare
if pkgver == pkgver_upstream:
continue
failed.append(pkgname + ": " + pkgver + " != " +
pkgver_upstream)
failed.append(f"{pkgname}: {pkgver} != {pkgver_upstream}")
assert [] == failed
......@@ -97,13 +96,13 @@ def test_aportgen_versions(args):
continue
# Compare the version
print("Checking " + path)
print(f"Checking {path}")
apkbuild = pmb.parse.apkbuild(path)
version = apkbuild["pkgver"] + "-r" + apkbuild["pkgrel"]
if version != version_upstream:
failed.append(apkbuild["pkgname"] + ": " + version +
" != " + version_upstream +
" (from " + pkgname + ")")
failed.append(
f"{apkbuild["pkgname"]}: {version} != {version_upstream} (from {pkgname})"
)
continue
assert [] == failed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment