diff options
| author | Robert Collins <rbtcollins@hp.com> | 2015-08-24 12:15:05 +1200 |
|---|---|---|
| committer | Robert Collins <rbtcollins@hp.com> | 2015-08-24 12:15:05 +1200 |
| commit | 478eadc5f321272d6dc5eacb1e2710bbe59103fa (patch) | |
| tree | 4fd1c63fc4f35d0ae8521ef42b16b5aad01aadbe /Doc/library | |
| parent | be6caca534a6d35ccae6fe13c15eead76b721e1d (diff) | |
| parent | a2b005539687789774f52507bda4d0cecaddb583 (diff) | |
| download | cpython-git-478eadc5f321272d6dc5eacb1e2710bbe59103fa.tar.gz | |
Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
Diffstat (limited to 'Doc/library')
| -rw-r--r-- | Doc/library/unittest.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 508570314f..1153f834ea 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 |
