@@ -9,7 +9,6 @@ Matplotlib's testing infrastructure depends on pytest_. The tests are in
99infrastructure are in :mod: `matplotlib.testing `.
1010
1111.. _pytest : http://doc.pytest.org/en/latest/
12- .. _mock : https://docs.python.org/3/library/unittest.mock.html
1312.. _Ghostscript : https://www.ghostscript.com/
1413.. _Inkscape : https://inkscape.org
1514.. _pytest-cov : https://pytest-cov.readthedocs.io/en/latest/
@@ -27,7 +26,6 @@ local FreeType build
2726The following software is required to run the tests:
2827
2928 - pytest _ (>=3.1)
30- - mock _, when running Python 2
3129 - Ghostscript _ (to render PDF files)
3230 - Inkscape _ (to render SVG files)
3331
@@ -44,7 +42,7 @@ Running the tests
4442
4543Running the tests is simple. Make sure you have pytest installed and run::
4644
47- py.test
45+ pytest
4846
4947or::
5048
@@ -74,22 +72,22 @@ To run a single test from the command line, you can provide a file path,
7472optionally followed by the function separated by two colons, e.g., (tests do
7573not need to be installed, but Matplotlib should be)::
7674
77- py.test lib/matplotlib/tests/test_simplification.py::test_clipping
75+ pytest lib/matplotlib/tests/test_simplification.py::test_clipping
7876
7977or, if tests are installed, a dot-separated path to the module, optionally
8078followed by the function separated by two colons, such as::
8179
82- py.test --pyargs matplotlib.tests.test_simplification::test_clipping
80+ pytest --pyargs matplotlib.tests.test_simplification::test_clipping
8381
8482If you want to run the full test suite, but want to save wall time try
8583running the tests in parallel::
8684
87- py.test --verbose -n 5
85+ pytest --verbose -n 5
8886
8987Depending on your version of Python and pytest-xdist, you may need to set
9088``PYTHONHASHSEED `` to a fixed value when running in parallel::
9189
92- PYTHONHASHSEED=0 py.test --verbose -n 5
90+ PYTHONHASHSEED=0 pytest --verbose -n 5
9391
9492An alternative implementation that does not look at command line arguments
9593and works from within Python is to run the tests from the Matplotlib library
0 commit comments