-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed
Description
Hi,
The live logger _LiveLoggingStreamHandler
will emit messages in emit()
:
self.stream.section('live log ' + self._when, sep='-', bold=True)
If self._when
is None
, which may be the case before a test is actually started, this will raise an exception:
TypeError: cannot concatenate 'str' and 'NoneType' objects
I ran into this issue with a plugin I created which emits log messages before the first test starts. It's a pretty simple fix which I'm fine creating a PR for, but what should the text be if self._when
is None
?
Metadata
Metadata
Assignees
Labels
type: bugproblem that needs to be addressedproblem that needs to be addressed