MCPcopy
hub / github.com/pytest-dev/pytest / write

Method write

src/_pytest/_io/terminalwriter.py:154–164  ·  view source on GitHub ↗
(self, msg: str, *, flush: bool = False, **markup: bool)

Source from the content-addressed store, hash-verified

152 self.line(line, **markup)
153
154 def write(self, msg: str, *, flush: bool = False, **markup: bool) -> None:
155 if msg:
156 current_line = msg.rsplit("\n", 1)[-1]
157 if "\n" in msg:
158 self._current_line = current_line
159 else:
160 self._current_line += current_line
161
162 msg = self.markup(msg, **markup)
163
164 self.write_raw(msg, flush=flush)
165
166 def write_raw(self, msg: str, *, flush: bool = False) -> None:
167 try:

Callers 15

lineMethod · 0.95
test_updateMethod · 0.95
test_composedMethod · 0.95
test_combiningMethod · 0.95
write_rawMethod · 0.45
_formatMethod · 0.45
_pprint_dataclassMethod · 0.45
_pprint_ordered_dictMethod · 0.45
_pprint_listMethod · 0.45

Calls 2

markupMethod · 0.95
write_rawMethod · 0.95

Tested by 6

test_updateMethod · 0.76
test_composedMethod · 0.76
test_combiningMethod · 0.76