(self, pytester: Pytester)
| 1286 | ) |
| 1287 | |
| 1288 | def test_xfail(self, pytester: Pytester) -> None: |
| 1289 | pytester.makepyfile( |
| 1290 | """ |
| 1291 | import pytest |
| 1292 | @pytest.mark.xfail(True, reason="True123") |
| 1293 | def test_func(): |
| 1294 | assert 0 |
| 1295 | """ |
| 1296 | ) |
| 1297 | result = pytester.runpytest("-rxs") |
| 1298 | result.stdout.fnmatch_lines( |
| 1299 | """ |
| 1300 | *XFAIL* |
| 1301 | *True123* |
| 1302 | *1 xfail* |
| 1303 | """ |
| 1304 | ) |
| 1305 | |
| 1306 | |
| 1307 | def test_xfail_item(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected