Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9fbc7d

Browse files
committed
Tell Pytest to only look in lib by default
This prevents it from trying to look at examples or other documentation, some of which may match the test file glob, but won't contain tests.
1 parent fb84a0f commit d9fbc7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytest.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pytest]
2+
# NOTE: Because tests can be run from an installed copy, most of our Pytest
3+
# configuration is in the `pytest_configure` function in
4+
# `lib/matplotlib/testing/conftest.py`. This configuration file exists only to
5+
# prevent Pytest from wasting time trying to check examples and documentation
6+
# files that are not really tests.
7+
testpaths = lib

0 commit comments

Comments
 (0)