aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2018-10-06 07:52:04 -0500
committerTim Harder <radhermit@gmail.com>2018-10-16 15:35:44 -0500
commit0f08e48d1b64da52228b5c5f4f60a0ac74acdf9e (patch)
treebc6c5ac4b9dfebf8e9feb90e8747e4156f2fb80e /tests/package
parentebuild.eapi: flush stderr output so warning comes before other output (diff)
downloadpkgcore-0f08e48d1b64da52228b5c5f4f60a0ac74acdf9e.tar.gz
pkgcore-0f08e48d1b64da52228b5c5f4f60a0ac74acdf9e.tar.bz2
pkgcore-0f08e48d1b64da52228b5c5f4f60a0ac74acdf9e.zip
various f-strings usage
Diffstat (limited to 'tests/package')
-rw-r--r--tests/package/test_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/package/test_base.py b/tests/package/test_base.py
index 21438275..b5dea6f0 100644
--- a/tests/package/test_base.py
+++ b/tests/package/test_base.py
@@ -13,8 +13,8 @@ def fake_pkg(cat='dev-util', pkg='bsdiff', ver='1.0', **attrs):
d['category'] = cat
d['pkg'] = pkg
d['ver'] = ver
- d['key'] = "%s/%s" % (cat, pkg)
- d["cpvstr"] = "%s/%s-%s" % (cat, pkg, ver)
+ d['key'] = f"{cat}/{pkg}"
+ d["cpvstr"] = f"{cat}/{pkg}-{ver}"
d['built'] = False
d.update(attrs)
return malleable_obj(**d)