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

Function test_error_attribute_issue555

testing/test_capture.py:1419–1429  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1417
1418
1419def 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(

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected