diff options
author | Nyiro Gergo <gergo.nyiro@balabit.com> | 2016-01-14 11:25:11 +0100 |
---|---|---|
committer | Nyiro Gergo <gergo.nyiro@balabit.com> | 2016-01-14 11:25:11 +0100 |
commit | fc35dcd7521317f04f491f8135faea75f433e896 (patch) | |
tree | c5994a2da41f814c7b800ba9749ea5d5ede617be /tox/session.py | |
parent | deaacda2f7691916ff9fb703536b012d6d546208 (diff) | |
download | tox-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.
Diffstat (limited to 'tox/session.py')
-rw-r--r-- | tox/session.py | 1 |
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") |