Skip to content

Commit

Permalink
Fixes issue nestorsalceda#96 - after.each only executes if examples p…
Browse files Browse the repository at this point in the history
…ass. There was an if statement that checked for errors and only ran code in after.each if there were none. Removed this if check.
  • Loading branch information
jes5e committed Jan 5, 2018
1 parent 59091a9 commit c323b0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mamba/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ def execute(self, reporter, execution_context, tags=None):

if self.error is None:
self._execute_test(execution_context)

if self.error is None:
self.parent.execute_hook('after_each', execution_context)

self.parent.execute_hook('after_each', execution_context)

self.was_run = True
self._finish(reporter)
Expand Down

0 comments on commit c323b0f

Please sign in to comment.