(self, pytester: Pytester)
| 315 | result.stderr.fnmatch_lines("ERROR: *pytest.ini:1: no section header defined") |
| 316 | |
| 317 | def test_toml_parse_error(self, pytester: Pytester) -> None: |
| 318 | pytester.makepyprojecttoml( |
| 319 | """ |
| 320 | \\" |
| 321 | """ |
| 322 | ) |
| 323 | result = pytester.runpytest() |
| 324 | assert result.ret != 0 |
| 325 | result.stderr.fnmatch_lines("ERROR: *pyproject.toml: Invalid statement*") |
| 326 | |
| 327 | def test_pytest_toml_parse_error(self, pytester: Pytester) -> None: |
| 328 | pytester.path.joinpath("pytest.toml").write_text( |
nothing calls this directly
no test coverage detected