Skip to content

Commit

Permalink
Fix #177: Update documentation on how to run the unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Aug 22, 2022
1 parent 37df85a commit 3788259
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ Testing
single: Testing; distlib

A full test suite is included with ``distlib``. To run it, you'll need to
download the source distribution, unpack it and run ``python setup.py test``
in the top-level directory of the package. You can of course also run
``python setup.py install`` to install the package (perhaps invoking with
``sudo`` if you need to install to a protected location).
download the source distribution, unpack it and run ``python tests/test_all.py``
in the top-level directory of the package.

If running the tests under Python >= 3.2.3, remember to first set the environment
variable ``PYTHONHASHSEED=0`` to disable hash randomisation, which is needed for
Expand Down Expand Up @@ -79,12 +77,13 @@ If PyPI is unavailable or slow, then some of the tests can fail or become
painfully slow. To skip tests that might be sometimes slow, set the
``SKIP_SLOW`` environment variable::

$ SKIP_SLOW=1 python setup.py test
$ SKIP_SLOW=1 PYTHONHASHSEED=0 python tests/test_all.py

on Posix, or::

C:\> set SKIP_SLOW=1
C:\> python setup.py test
C:\> set PYTHONHASHSEED=0
C:\> python tests/test_all.py

on Windows.

Expand Down

0 comments on commit 3788259

Please sign in to comment.