summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNyiro Gergo <gergo.nyiro@balabit.com>2016-01-14 11:25:11 +0100
committerNyiro Gergo <gergo.nyiro@balabit.com>2016-01-14 11:25:11 +0100
commitfc35dcd7521317f04f491f8135faea75f433e896 (patch)
treec5994a2da41f814c7b800ba9749ea5d5ede617be
parentdeaacda2f7691916ff9fb703536b012d6d546208 (diff)
downloadtox-fc35dcd7521317f04f491f8135faea75f433e896.tar.gz
session.Reporter: delete _starttime at exit
The __enter__ of with statement extend the action object with _starttime and assert if it had been already extended. Therefore the __exit__ should remove the extra attribute of the action.
-rw-r--r--tox/session.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox/session.py b/tox/session.py
index ffb52d6..f97b365 100644
--- a/tox/session.py
+++ b/tox/session.py
@@ -252,6 +252,7 @@ class Reporter(object):
# self.cumulated_time += duration
self.verbosity2("%s finish: %s after %.2f seconds" % (
action.venvname, action.msg, duration), bold=True)
+ delattr(action, '_starttime')
def startsummary(self):
self.tw.sep("_", "summary")