(pytester: Pytester)
| 949 | |
| 950 | |
| 951 | def test_issue333_result_clearing(pytester: Pytester) -> None: |
| 952 | pytester.makeconftest( |
| 953 | """ |
| 954 | import pytest |
| 955 | @pytest.hookimpl(hookwrapper=True) |
| 956 | def pytest_runtest_call(item): |
| 957 | yield |
| 958 | assert 0 |
| 959 | """ |
| 960 | ) |
| 961 | pytester.makepyfile( |
| 962 | """ |
| 963 | import unittest |
| 964 | class TestIt(unittest.TestCase): |
| 965 | def test_func(self): |
| 966 | 0/0 |
| 967 | """ |
| 968 | ) |
| 969 | |
| 970 | reprec = pytester.inline_run() |
| 971 | reprec.assertoutcome(failed=1) |
| 972 | |
| 973 | |
| 974 | def test_unittest_raise_skip_issue748(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected