Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_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
1
flush
Method · 0.45
Tested by
no test coverage detected