Skip to content

Commit

Permalink
Only run after.all hook if before.all has run
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed May 27, 2015
1 parent af4a8f1 commit a5492eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aloe/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,6 @@ def finalize(self, result):
# TODO: Is there a better method to do something _after_ all the tests
# have been run?

self.after_hook()
delattr(self, 'after_hook')
if hasattr(self, 'after_hook'):
self.after_hook()
delattr(self, 'after_hook')

0 comments on commit a5492eb

Please sign in to comment.