Skip to content

Commit 02870d2

Browse files
committed
Fix --output NONE with timeouts. Fixes robotframework#2326.
1 parent 2473247 commit 02870d2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

atest/testdata/misc/normal.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ First One
1212
logs on trace
1313

1414
Second One
15+
[Documentation] Nothing interesting here
16+
[Timeout] 1 day
1517
Log Test 2
1618
Sleep 0.01 # Make sure elapsed time > 0
1719

1820
*** Keyword ***
1921
logs on trace
22+
[Timeout] 1 hour
23+
[Tags] kw tags
2024
Log Log on ${TEST NAME} TRACE

src/robot/utils/markupwriters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,7 @@ def _escape(self, text):
101101

102102

103103
class NullMarkupWriter(object):
104-
"""Null implementation of _MarkupWriter interface."""
105-
__init__ = start = content = element = end = close = lambda *args: None
104+
"""Null implementation of the _MarkupWriter interface."""
105+
106+
__init__ = start = content = element = end = close = \
107+
lambda *args, **kwargs: None

0 commit comments

Comments
 (0)