MCPcopy Create free account
hub / github.com/pytest-dev/pytest / getlines

Method getlines

testing/io/test_terminalwriter.py:75–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 tw = terminalwriter.TerminalWriter(f)
74
75 def getlines():
76 f.flush()
77 with open(str(p), encoding="utf8") as fp:
78 return fp.readlines()
79
80 elif request.param == "stringio":
81 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 1

flushMethod · 0.45

Tested by

no test coverage detected