From ea3d50ed06cac1027a4b4536c77acfc9d35ea12a Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Mon, 19 Apr 2021 00:10:23 +0200 Subject: [PATCH] Backport PR #19962: Dev install troubleshooting --- doc/devel/development_setup.rst | 2 +- doc/devel/testing.rst | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/devel/development_setup.rst b/doc/devel/development_setup.rst index d926f401c757..a511e4a6aef3 100644 --- a/doc/devel/development_setup.rst +++ b/doc/devel/development_setup.rst @@ -132,4 +132,4 @@ Optional, but recommended: Python packages and must be installed separately. The documentation can be built without Inkscape and optipng, but the build process will raise various warnings. If the build process warns that you are missing fonts, make sure - your LaTeX distribution bundles cm-super or install it separately. + your LaTeX distribution bundles cm-super or install it separately. \ No newline at end of file diff --git a/doc/devel/testing.rst b/doc/devel/testing.rst index 49c27002b058..b46586104121 100644 --- a/doc/devel/testing.rst +++ b/doc/devel/testing.rst @@ -37,7 +37,7 @@ Running the tests In the root directory of your development repository run:: - pytest + python -m pytest pytest can be configured via a lot of `command-line parameters`_. Some @@ -258,10 +258,10 @@ Run the tests ^^^^^^^^^^^^^ To run the all the tests on your installed version of Matplotlib:: - pytest --pyargs matplotlib.tests + python -m pytest --pyargs matplotlib.tests The test discovery scope can be narrowed to single test modules or even single functions:: - pytest --pyargs matplotlib.tests.test_simplification.py::test_clipping + python -m pytest --pyargs matplotlib.tests.test_simplification.py::test_clipping