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

Method test_cafd_preserves_newlines

testing/test_capture.py:585–588  ·  view source on GitHub ↗
(self, capfd, nl)

Source from the content-addressed store, hash-verified

583
584 @pytest.mark.parametrize("nl", ("\n", "\r\n", "\r"))
585 def test_cafd_preserves_newlines(self, capfd, nl) -> None:
586 print("test", end=nl)
587 out, _err = capfd.readouterr()
588 assert out.endswith(nl)
589
590 def test_capfdbinary(self, pytester: Pytester) -> None:
591 reprec = pytester.inline_runsource(

Callers

nothing calls this directly

Calls 2

endswithMethod · 0.80
readouterrMethod · 0.45

Tested by

no test coverage detected