File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments