summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-24 00:15:05 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-08-24 00:15:05 (GMT)
commit478eadc5f321272d6dc5eacb1e2710bbe59103fa (patch)
tree4fd1c63fc4f35d0ae8521ef42b16b5aad01aadbe /Doc/library
parentbe6caca534a6d35ccae6fe13c15eead76b721e1d (diff)
parenta2b005539687789774f52507bda4d0cecaddb583 (diff)
downloadcpython-478eadc5f321272d6dc5eacb1e2710bbe59103fa.zip
cpython-478eadc5f321272d6dc5eacb1e2710bbe59103fa.tar.gz
cpython-478eadc5f321272d6dc5eacb1e2710bbe59103fa.tar.bz2
Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/unittest.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 5085703..1153f83 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -278,8 +278,8 @@ The :option:`-s`, :option:`-p`, and :option:`-t` options can be passed in
as positional arguments in that order. The following two command lines
are equivalent::
- python -m unittest discover -s project_directory -p '*_test.py'
- python -m unittest discover project_directory '*_test.py'
+ python -m unittest discover -s project_directory -p "*_test.py"
+ python -m unittest discover project_directory "*_test.py"
As well as being a path it is possible to pass a package name, for example
``myproject.subpackage.test``, as the start directory. The package name you