Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2b0055

Browse files
committed
Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
1 parent ab7cc75 commit a2b0055

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ The :option:`-s`, :option:`-p`, and :option:`-t` options can be passed in
271271
as positional arguments in that order. The following two command lines
272272
are equivalent::
273273

274-
python -m unittest discover -s project_directory -p '*_test.py'
275-
python -m unittest discover project_directory '*_test.py'
274+
python -m unittest discover -s project_directory -p "*_test.py"
275+
python -m unittest discover project_directory "*_test.py"
276276

277277
As well as being a path it is possible to pass a package name, for example
278278
``myproject.subpackage.test``, as the start directory. The package name you

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ Daniel May
894894
Madison May
895895
Lucas Maystre
896896
Arnaud Mazin
897+
Pam McA'Nulty
897898
Matt McClure
898899
Rebecca McCreary
899900
Kirk McDonald

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ C API
449449
Documentation
450450
-------------
451451

452+
- Issue #22812: Fix unittest discovery examples.
453+
Patch from Pam McA'Nulty.
454+
452455
- Issue #24129: Clarify the reference documentation for name resolution.
453456
This includes removing the assumption that readers will be familiar with the
454457
name resolution scheme Python used prior to the introduction of lexical

0 commit comments

Comments
 (0)