Skip to content

Commit bb9a1a3

Browse files
committed
Import the pytest hooks in the other conftest.py files
This way py.test lib/matplotlib/tests/test_artist.py --conversion-cache-report-misses -n 2 works for me even though the options don't get documented in "py.test --help".
1 parent 5a57b60 commit bb9a1a3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4-
from matplotlib.tests.conftest import (mpl_test_settings,
5-
pytest_configure, pytest_unconfigure)
4+
from matplotlib.tests.conftest import (
5+
mpl_test_settings, pytest_addoption, pytest_configure, pytest_unconfigure,
6+
pytest_sessionfinish, pytest_terminal_summary)

lib/mpl_toolkits/tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4-
from matplotlib.tests.conftest import (mpl_test_settings,
5-
pytest_configure, pytest_unconfigure)
4+
from matplotlib.tests.conftest import (
5+
mpl_test_settings, pytest_addoption, pytest_configure, pytest_unconfigure,
6+
pytest_sessionfinish, pytest_terminal_summary)

0 commit comments

Comments
 (0)