--- a/src/eric7/Testing/Interfaces/PytestExecutor.py Mon May 22 08:46:00 2023 +0200 +++ b/src/eric7/Testing/Interfaces/PytestExecutor.py Mon May 22 09:07:37 2023 +0200 @@ -297,7 +297,7 @@ for heading, text in sections: extraText += "----- {0} -----\n{1}".format(heading, text) - duration = data.get("duration_s", None) + duration = data.get("duration_s") if duration: # convert to ms duration *= 1000