diff --git a/src/_pytest/logging.py b/src/_pytest/logging.py index f4a4801b8..ba55ebb42 100644 --- a/src/_pytest/logging.py +++ b/src/_pytest/logging.py @@ -436,7 +436,7 @@ class LoggingPlugin(object): if self.log_file_handler is not None: with catching_logs(self.log_file_handler, level=self.log_file_level): - yield # run all the tests + yield else: yield