(self, pytester: Pytester)
| 533 | assert out.endswith(nl) |
| 534 | |
| 535 | def test_capfdbinary(self, pytester: Pytester) -> None: |
| 536 | reprec = pytester.inline_runsource( |
| 537 | """\ |
| 538 | def test_hello(capfdbinary): |
| 539 | import os |
| 540 | # some likely un-decodable bytes |
| 541 | os.write(1, b'\\xfe\\x98\\x20') |
| 542 | out, err = capfdbinary.readouterr() |
| 543 | assert out == b'\\xfe\\x98\\x20' |
| 544 | assert err == b'' |
| 545 | """ |
| 546 | ) |
| 547 | reprec.assertoutcome(passed=1) |
| 548 | |
| 549 | def test_capsysbinary(self, pytester: Pytester) -> None: |
| 550 | p1 = pytester.makepyfile( |
nothing calls this directly
no test coverage detected