Commit bce1bad
committed
Register flaky pytest marker.
Otherwise, running the test suite without installing
pytest-rerunfailures now results in
_____________________________ ERROR collecting lib/matplotlib/tests/test_backend_ps.py _____________________________
lib/matplotlib/tests/test_backend_ps.py:29: in <module>
@pytest.mark.flaky(reruns=3)
../../../.local/lib/python3.7/site-packages/_pytest/mark/structures.py:324: in __getattr__
PytestUnknownMarkWarning,
E _pytest.warning_types.PytestUnknownMarkWarning: Unknown pytest.mark.flaky - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
collected 0 items / 1 errors
(The alternative is to add a hard requirement on pytest-rerunfailures to
run the test suite, but that seems overkill.)1 parent 9e9554e commit bce1bad
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
0 commit comments