(pytester: Pytester)
| 748 | |
| 749 | |
| 750 | def test_conftest_exception_handling(pytester: Pytester) -> None: |
| 751 | pytester.makeconftest( |
| 752 | class="st">"""\ |
| 753 | raise ValueError() |
| 754 | class="st">""" |
| 755 | ) |
| 756 | pytester.makepyfile( |
| 757 | class="st">"""\ |
| 758 | def test_some(): |
| 759 | pass |
| 760 | class="st">""" |
| 761 | ) |
| 762 | res = pytester.runpytest() |
| 763 | assert res.ret == 4 |
| 764 | assert class="st">"raise ValueError()" in [line.strip() for line in res.errlines] |
| 765 | |
| 766 | |
| 767 | def test_hook_proxy(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected