Skip to content

Commit 5a57b60

Browse files
committed
Revert "Add py.test options at top-level conftest.py"
This reverts commit a736c4a.
1 parent a736c4a commit 5a57b60

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

conftest.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/matplotlib/tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
from matplotlib.testing import _conversion_cache as ccache
99

1010

11+
def pytest_addoption(parser):
12+
group = parser.getgroup("matplotlib", "matplotlib custom options")
13+
group.addoption("--conversion-cache-max-size", action="store",
14+
help="conversion cache maximum size in bytes")
15+
group.addoption("--conversion-cache-report-misses",
16+
action="store_true",
17+
help="report conversion cache misses")
18+
19+
1120
def pytest_configure(config):
1221
matplotlib.use('agg')
1322
matplotlib._called_from_pytest = True

0 commit comments

Comments
 (0)