summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-24 00:06:18 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-08-24 00:06:18 (GMT)
commit11ac1a8239829782ef0ac1a70fa74f82e23698d5 (patch)
tree1641d4d359281cbf591535eef62f6033864b186b
parent311c8d63e581b29a9a086a318d5265d0c124cec5 (diff)
downloadcpython-11ac1a8239829782ef0ac1a70fa74f82e23698d5.zip
cpython-11ac1a8239829782ef0ac1a70fa74f82e23698d5.tar.gz
cpython-11ac1a8239829782ef0ac1a70fa74f82e23698d5.tar.bz2
Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
-rw-r--r--Doc/library/unittest.rst4
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
3 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index a082200..41478f3 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -286,8 +286,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
diff --git a/Misc/ACKS b/Misc/ACKS
index 12d9674..eea8a32 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -880,6 +880,7 @@ Daniel May
Madison May
Lucas Maystre
Arnaud Mazin
+Pam McA'Nulty
Matt McClure
Rebecca McCreary
Kirk McDonald
diff --git a/Misc/NEWS b/Misc/NEWS
index 76e0226..7814de8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,9 @@ Core and Builtins
Library
-------
+- Issue #22812: Fix unittest discovery examples.
+ Patch from Pam McA'Nulty.
+
- Issue #23652: Make it possible to compile the select module against the
libc headers from the Linux Standard Base, which do not include some
EPOLL macros. Initial patch by Matt Frank.