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

Method test_cafd_preserves_newlines

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

Source from the content-addressed store, hash-verified

528
529 @pytest.mark.parametrize("nl", ("\n", "\r\n", "\r"))
530 def test_cafd_preserves_newlines(self, capfd, nl) -> None:
531 print("test", end=nl)
532 out, err = capfd.readouterr()
533 assert out.endswith(nl)
534
535 def test_capfdbinary(self, pytester: Pytester) -> None:
536 reprec = pytester.inline_runsource(

Callers

nothing calls this directly

Calls 1

readouterrMethod · 0.45

Tested by

no test coverage detected