summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-24 00:14:28 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-08-24 00:14:28 (GMT)
commita2b005539687789774f52507bda4d0cecaddb583 (patch)
tree4cb7f801723ecf792af0b26357695f204d810999 /Doc/library/unittest.rst
parentab7cc7598a3b8fd3bfb8c21412ac693ba8e9396a (diff)
downloadcpython-a2b005539687789774f52507bda4d0cecaddb583.zip
cpython-a2b005539687789774f52507bda4d0cecaddb583.tar.gz
cpython-a2b005539687789774f52507bda4d0cecaddb583.tar.bz2
Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
Diffstat (limited to 'Doc/library/unittest.rst')
-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 f13100c..a8a684c 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -271,8 +271,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