aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2024-09-06 10:58:24 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2024-09-06 12:02:20 +0200
commite8c1a3da8d98f09a1b455d6eebe17c1345e7bfbc (patch)
tree3dbc5377c1d31336851525a14bce1e8d8c6ecde1 /xtesting/core
parenta1ba6fb90620f04ef49f5d29d5ce0e2d812e37b2 (diff)
Update to Alpine 3.20
Please note that it also updates python to 3.12. Change-Id: I715194304b37b9cd52affa998a94ba5ec52e7732 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/core')
-rw-r--r--xtesting/core/testcase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/core/testcase.py b/xtesting/core/testcase.py
index 380adc5e..4c02e1ca 100644
--- a/xtesting/core/testcase.py
+++ b/xtesting/core/testcase.py
@@ -79,7 +79,7 @@ class TestCase(metaclass=abc.ABCMeta):
if self.is_skipped:
result = 'SKIP'
else:
- result = 'PASS' if(self.is_successful(
+ result = 'PASS' if (self.is_successful(
) == TestCase.EX_OK) else 'FAIL'
msg = prettytable.PrettyTable(
header_style='upper', padding_width=5,
@@ -106,7 +106,7 @@ class TestCase(metaclass=abc.ABCMeta):
assert self.stop_time
if self.stop_time < self.start_time:
return "XX:XX"
- return(
+ return (
f"{str(int(self.stop_time - self.start_time) // 60).zfill(2)}:"
f"{str(int(self.stop_time - self.start_time) % 60).zfill(2)}")