We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c64a5 commit b66e2a9Copy full SHA for b66e2a9
tests/conftest.py
@@ -7,3 +7,12 @@
7
@pytest.fixture
8
def pytester(testdir):
9
return testdir
10
+
11
12
+def pytest_configure(config):
13
+ # Matplotlib versions build with pybind11 3.0.0 or later
14
+ # encounter import issues unless run in subprocess mode.
15
+ # See: https://github.com/matplotlib/pytest-mpl/issues/248
16
+ import matplotlib
17
+ if Version(matplotlib.__version__) > Version("3.10.3"):
18
+ config.option.runpytest = "subprocess"
0 commit comments