(pytester: Pytester)
| 622 | |
| 623 | |
| 624 | def test_issue1073_conftest_special_objects(pytester: Pytester) -> None: |
| 625 | pytester.makeconftest( |
| 626 | """\ |
| 627 | class DontTouchMe(object): |
| 628 | def __getattr__(self, x): |
| 629 | raise Exception('cant touch me') |
| 630 | |
| 631 | x = DontTouchMe() |
| 632 | """ |
| 633 | ) |
| 634 | pytester.makepyfile( |
| 635 | """\ |
| 636 | def test_some(): |
| 637 | pass |
| 638 | """ |
| 639 | ) |
| 640 | res = pytester.runpytest() |
| 641 | assert res.ret == 0 |
| 642 | |
| 643 | |
| 644 | def test_conftest_exception_handling(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected