(self, pytester: Pytester)
| 389 | result.stdout.fnmatch_lines(["*2 failed*"]) |
| 390 | |
| 391 | def test_lastfailed_xpass(self, pytester: Pytester) -> None: |
| 392 | pytester.inline_runsource( |
| 393 | """ |
| 394 | import pytest |
| 395 | @pytest.mark.xfail |
| 396 | def test_hello(): |
| 397 | assert 1 |
| 398 | """ |
| 399 | ) |
| 400 | config = pytester.parseconfigure() |
| 401 | assert config.cache is not None |
| 402 | lastfailed = config.cache.get("cache/lastfailed", -1) |
| 403 | assert lastfailed == -1 |
| 404 | |
| 405 | def test_non_serializable_parametrize(self, pytester: Pytester) -> None: |
| 406 | """Test that failed parametrized tests with unmarshable parameters |
nothing calls this directly
no test coverage detected