Commit 2cd914d
committed
Move most of pytest's conf to conftest.py.
pytest.ini is not found if running the test suite from anywhere but
a source checkout root. For example, it is not found if running
`matplotlib.test()` from an installed Matplotlib (that includes test
data). mplcairo's test suite also relies on being able to run the
Matplotlib test suite from not-the-source-tree (via `pytest --pyargs
matplotlib`).
This is particularly problematic now that pytest requires markers to be
explicitly declared, and emits a warning when they are not.
Instead, declare most relevant options in pytest_configure(). (Note
that this actually only helps mplcairo when used in conjunction of
pytest>=5.0 due to pytest issue 5078, but the patch doesn't bump the
pytest version requirement for matplotlib.)
See also pytest issue 4039.1 parent 666d3d0 commit 2cd914d
2 files changed
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
8 | 23 | | |
9 | 24 | | |
10 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
0 commit comments