diff --git a/testing/run-write-tests.rst b/testing/run-write-tests.rst index c7c36a7ba..59f1583f4 100644 --- a/testing/run-write-tests.rst +++ b/testing/run-write-tests.rst @@ -165,6 +165,18 @@ a failure, drop the ``-j`` flag: To limit how many tests run at once, pass an explicit number of worker processes instead, such as ``-j2``. +To check that the test suite is included in an installed build, install Python +to a fresh prefix and run the test suite with that installation. For example, +on Unix:: + + ./configure --prefix=/tmp/cpython-install + make -j3 + make install + /tmp/cpython-install/bin/python3 -m test -j3 + +Using the installed interpreter is important: running ``./python -m test`` from +the checkout tests the build tree, not the installed files. + .. _strenuous_testing: Finally, if you want to run tests under a more strenuous set of settings, you