mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
This commit is contained in:
commit
478eadc5f3
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -920,6 +920,7 @@ Daniel May
|
|||
Madison May
|
||||
Lucas Maystre
|
||||
Arnaud Mazin
|
||||
Pam McA'Nulty
|
||||
Matt McClure
|
||||
Jack McCracken
|
||||
Rebecca McCreary
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ Library
|
|||
Documentation
|
||||
-------------
|
||||
|
||||
- Issue #22812: Fix unittest discovery examples.
|
||||
Patch from Pam McA'Nulty.
|
||||
|
||||
|
||||
What's New in Python 3.5.0 release candidate 2?
|
||||
===============================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue