Skip to content

Commit a5c8c59

Browse files
donBarbospicnixz
andauthored
Update doctest.rst
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 56c2b7c commit a5c8c59

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/doctest.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,11 @@ The :mod:`doctest` module can be invoked as a script from the command line:
268268
python -m doctest -v example.py
269269

270270
This will import :file:`example.py` as a standalone module and run
271-
:func:`testmod` on it. Note that this may not work correctly if the file is
272-
part of a package and imports other submodules from that package.
273-
If the file name does not end with :file:`.py`, :mod:`doctest` infers that
274-
it must be run with :func:`testfile`, not :func:`testmod`::
271+
:func:`testmod` on it. Note that this may not work correctly if the
272+
file is part of a package and imports other submodules from that package.
273+
274+
If the file name does not end with :file:`.py`, :mod:`!doctest` infers
275+
that it must be run with :func:`testfile` instead::
275276

276277
python -m doctest -v example.txt
277278

0 commit comments

Comments
 (0)