(code: str, expected: str, pytester: Pytester)
| 276 | |
| 277 | @pytest.mark.parametrize("code, expected", TESTCASES) |
| 278 | def test_error_diff(code: str, expected: str, pytester: Pytester) -> None: |
| 279 | expected_lines = [line.lstrip() for line in expected.splitlines()] |
| 280 | p = pytester.makepyfile(code) |
| 281 | result = pytester.runpytest(p, "-vv") |
| 282 | result.stdout.fnmatch_lines(expected_lines) |
| 283 | assert result.ret == 1 |
nothing calls this directly
no test coverage detected