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

Method getlines

testing/io/test_terminalwriter.py:78–81  ·  testing/io/test_terminalwriter.py::TestTerminalWriter.getlines
()

Source from the content-addressed store, hash-verified

76 tw = terminalwriter.TerminalWriter(f)
77
78 def getlines():
79 f.flush()
80 with open(str(p), encoding=class="st">"utf8") as fp:
81 return fp.readlines()
82
83 elif request.param == class="st">"stringio":
84 f = io.StringIO()

Callers 7

test_lineMethod · 0.80
test_line_unicodeMethod · 0.80
test_sep_no_titleMethod · 0.80
test_sep_with_titleMethod · 0.80
test_attr_fullwidthMethod · 0.80

Calls 3

seekMethod · 0.80
flushMethod · 0.45
readlinesMethod · 0.45

Tested by

no test coverage detected