diff --git a/behave/features/environment.py b/behave/features/environment.py index a80d9f72f..01bc23666 100644 --- a/behave/features/environment.py +++ b/behave/features/environment.py @@ -11,7 +11,7 @@ import requests -from testlib import Mock +from testlib import Mock, no_output def _random_string(length): @@ -74,4 +74,5 @@ def before_scenario(context, _scenario): def after_scenario(context, _scenario): """ execute after - and for each - scenario """ - context.mock.clean() + with no_output(): + context.mock.clean()