8000 Register flaky pytest marker. · matplotlib/matplotlib@bce1bad · GitHub
[go: up one dir, main page]

Skip to content

Commit bce1bad

Browse files
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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ testpaths = lib
55
python_files = test_*.py
66

77
markers =
8+
flaky: (Provided by pytest-rerunfailures.)
89
backend: Set alternate Matplotlib backend temporarily.
910
style: Set alternate Matplotlib style temporarily.
10-
baseline_images: Compare output against a known reference
11-
pytz: Tests that require pytz to be installed
11+
baseline_images: Compare output against a known reference.
12+
pytz: Tests that require pytz to be installed.
1213

1314
filterwarnings =
1415
error

0 commit comments

Comments
 (0)
0