(self, pytester: Pytester, linecomp)
| 141 | assert "INTERNALERROR" not in combined |
| 142 | |
| 143 | def test_internalerror(self, pytester: Pytester, linecomp) -> None: |
| 144 | modcol = pytester.getmodulecol("def test_one(): pass") |
| 145 | rep = TerminalReporter(modcol.config, file=linecomp.stringio) |
| 146 | with pytest.raises(ValueError) as excinfo: |
| 147 | raise ValueError("hello") |
| 148 | rep.pytest_internalerror(excinfo.getrepr()) |
| 149 | linecomp.assert_contains_lines(["INTERNALERROR> *ValueError*hello*"]) |
| 150 | |
| 151 | def test_writeline(self, pytester: Pytester, linecomp) -> None: |
| 152 | modcol = pytester.getmodulecol("def test_one(): pass") |
nothing calls this directly
no test coverage detected