changeset: 97470:d9ec88a1e5d6 parent: 97465:d90a65014c42 parent: 97469:875a851b9d5a user: Robert Collins date: Mon Aug 24 12:15:49 2015 +1200 files: Misc/ACKS Misc/NEWS description: Issue #22812: Fix unittest discovery examples. Patch from Pam McA'Nulty. diff -r d90a65014c42 -r d9ec88a1e5d6 Doc/library/unittest.rst --- a/Doc/library/unittest.rst Mon Aug 24 11:46:56 2015 +1200 +++ b/Doc/library/unittest.rst Mon Aug 24 12:15:49 2015 +1200 @@ -278,8 +278,8 @@ 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 diff -r d90a65014c42 -r d9ec88a1e5d6 Misc/ACKS --- a/Misc/ACKS Mon Aug 24 11:46:56 2015 +1200 +++ b/Misc/ACKS Mon Aug 24 12:15:49 2015 +1200 @@ -920,6 +920,7 @@ Madison May Lucas Maystre Arnaud Mazin +Pam McA'Nulty Matt McClure Jack McCracken Rebecca McCreary diff -r d90a65014c42 -r d9ec88a1e5d6 Misc/NEWS --- a/Misc/NEWS Mon Aug 24 11:46:56 2015 +1200 +++ b/Misc/NEWS Mon Aug 24 12:15:49 2015 +1200 @@ -129,6 +129,9 @@ Documentation ------------- +- Issue #22812: Fix unittest discovery examples. + Patch from Pam McA'Nulty. + - Issue #23725: Overhaul tempfile docs. Note deprecated status of mktemp. Patch from Zbigniew Jędrzejewski-Szmek.