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

Method test_readlines_nocr

testing/_py/test_local.py:283–287  ·  testing/_py/test_local.py::CommonFSTests.test_readlines_nocr
(self, path1)

Source from the content-addressed store, hash-verified

281 assert contents == [class="st">"samplefile\n"]
282
283 def test_readlines_nocr(self, path1):
284 fn = path1.join(class="st">"samplefile")
285 with ignore_encoding_warning():
286 contents = fn.readlines(cr=0)
287 assert contents == [class="st">"samplefile", class="st">""]
288
289 def test_file(self, path1):
290 assert path1.join(class="st">"samplefile").check(file=1)

Callers

nothing calls this directly

Calls 3

ignore_encoding_warningFunction · 0.85
joinMethod · 0.80
readlinesMethod · 0.45

Tested by

no test coverage detected