(pytester: Pytester)
| 1449 | |
| 1450 | |
| 1451 | def test_dontreadfrominput_has_encoding(pytester: Pytester) -> None: |
| 1452 | pytester.makepyfile( |
| 1453 | """ |
| 1454 | import sys |
| 1455 | def test_capattr(): |
| 1456 | # should not raise AttributeError |
| 1457 | assert sys.stdout.encoding |
| 1458 | assert sys.stderr.encoding |
| 1459 | """ |
| 1460 | ) |
| 1461 | reprec = pytester.inline_run() |
| 1462 | reprec.assertoutcome(passed=1) |
| 1463 | |
| 1464 | |
| 1465 | def test_crash_on_closing_tmpfile_py27( |
nothing calls this directly
no test coverage detected