Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ getlines
Method
getlines
testing/io/test_terminalwriter.py:78–81 ·
view source on GitHub ↗
()
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=
"utf8"
)
as
fp:
81
return
fp.readlines()
82
83
elif
request.param ==
"stringio"
:
84
f = io.StringIO()
Callers
7
test_line
Method · 0.80
test_line_unicode
Method · 0.80
test_sep_no_title
Method · 0.80
test_sep_with_title
Method · 0.80
test_sep_longer_than_width
Method · 0.80
test_line_write_markup
Method · 0.80
test_attr_fullwidth
Method · 0.80
Calls
3
seek
Method · 0.80
flush
Method · 0.45
readlines
Method · 0.45
Tested by
no test coverage detected