[elbe-devel] [PATCH v3 53/75] junit: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Sun Nov 6 22:12:32 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/junit.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/junit.py b/elbepack/junit.py
index 005bbf229..bbaf5a827 100644
--- a/elbepack/junit.py
+++ b/elbepack/junit.py
@@ -35,7 +35,7 @@ class TestSuite:
def do_test(self, node, target):
if node.tag not in self.test_dict:
- raise TestException("Invalid Test %s" % node.tag)
+ raise TestException(f"Invalid Test {node.tag}")
test = self.test_dict[node.tag]
return test(node, target)()
@@ -61,7 +61,7 @@ class BaseTest:
self.target = target
def __call__(self):
- raise TestException("Unimplemented Test %s" % self.tag)
+ raise TestException(f"Unimplemented Test {self.tag}")
@TestSuite.register("file-exists")
--
2.38.1
More information about the elbe-devel
mailing list