(fail_import, fail_run)
| 507 | ) |
| 508 | |
| 509 | def rlf(fail_import, fail_run): |
| 510 | monkeypatch.setenv("FAILIMPORT", str(fail_import)) |
| 511 | monkeypatch.setenv("FAILTEST", str(fail_run)) |
| 512 | |
| 513 | pytester.runpytest("-q") |
| 514 | config = pytester.parseconfigure() |
| 515 | assert config.cache is not None |
| 516 | lastfailed = config.cache.get("cache/lastfailed", -1) |
| 517 | return lastfailed |
| 518 | |
| 519 | lastfailed = rlf(fail_import=0, fail_run=0) |
| 520 | assert lastfailed == -1 |
nothing calls this directly
no test coverage detected