Fix decoding issue while formatting SyntaxErrors during collection (#578).
(pytester: Pytester)
| 1335 | |
| 1336 | |
| 1337 | def test_syntax_error_with_non_ascii_chars(pytester: Pytester) -> None: |
| 1338 | """Fix decoding issue while formatting SyntaxErrors during collection (#578).""" |
| 1339 | pytester.makepyfile("☃") |
| 1340 | result = pytester.runpytest() |
| 1341 | result.stdout.fnmatch_lines(["*ERROR collecting*", "*SyntaxError*", "*1 error in*"]) |
| 1342 | |
| 1343 | |
| 1344 | def test_collect_error_with_fulltrace(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected