(self, pytester: Pytester)
| 576 | ) |
| 577 | |
| 578 | def test_collectonly_error(self, pytester: Pytester) -> None: |
| 579 | p = pytester.makepyfile(class="st">"import Errlkjqweqwe") |
| 580 | result = pytester.runpytest(class="st">"--collect-only", p) |
| 581 | assert result.ret == 2 |
| 582 | result.stdout.fnmatch_lines( |
| 583 | textwrap.dedent( |
| 584 | class="st">"""\ |
| 585 | *ERROR* |
| 586 | *ImportError* |
| 587 | *No module named *Errlk* |
| 588 | *1 error* |
| 589 | class="st">""" |
| 590 | ).strip() |
| 591 | ) |
| 592 | |
| 593 | def test_collectonly_missing_path(self, pytester: Pytester) -> None: |
| 594 | class="st">"""Issue 115: failure in parseargs will cause session not to |
nothing calls this directly
no test coverage detected