Skip to content

Commit

Permalink
Issue python#22812: Fix unittest discovery examples.
Browse files Browse the repository at this point in the history
Patch from Pam McA'Nulty.
  • Loading branch information
rbtcollins committed Aug 24, 2015
1 parent ab7cc75 commit a2b0055
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ Daniel May
Madison May
Lucas Maystre
Arnaud Mazin
Pam McA'Nulty
Matt McClure
Rebecca McCreary
Kirk McDonald
Expand Down
3 changes: 3 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ C API
Documentation
-------------

- Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.

- Issue #24129: Clarify the reference documentation for name resolution.
This includes removing the assumption that readers will be familiar with the
name resolution scheme Python used prior to the introduction of lexical
Expand Down

0 comments on commit a2b0055

Please sign in to comment.