(pytester: Pytester)
| 1417 | |
| 1418 | |
| 1419 | def test_error_attribute_issue555(pytester: Pytester) -> None: |
| 1420 | pytester.makepyfile( |
| 1421 | """ |
| 1422 | import sys |
| 1423 | def test_capattr(): |
| 1424 | assert sys.stdout.errors == "replace" |
| 1425 | assert sys.stderr.errors == "replace" |
| 1426 | """ |
| 1427 | ) |
| 1428 | reprec = pytester.inline_run() |
| 1429 | reprec.assertoutcome(passed=1) |
| 1430 | |
| 1431 | |
| 1432 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected