Skip to content

Commit 11add19

Browse files
authored
Update test_execution_id.py
1 parent fb6b6d3 commit 11add19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_execution_id.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ def test_log_handler_ignores_newlines(monkeypatch, capsys):
258258
assert record.out == ""
259259

260260

261+
def test_log_handler_does_not_nest():
262+
log_handler_1 = execution_id.LoggingHandlerAddExecutionId(stream=sys.stdout)
263+
log_handler_2 = execution_id.LoggingHandlerAddExecutionId(log_handler_1)
264+
265+
assert log_handler_1 == log_handler_2
266+
267+
261268
def test_log_handler_omits_empty_execution_context(monkeypatch, capsys):
262269
log_handler = execution_id.LoggingHandlerAddExecutionId(stream=sys.stdout)
263270
monkeypatch.setattr(

0 commit comments

Comments
 (0)