Issue #22812: Fix unittest discovery examples.
Patch from Pam McA'Nulty.
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index f13100c..a8a684c 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -271,8 +271,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 --git a/Misc/ACKS b/Misc/ACKS
index 395b9e5..cb4f5a6 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -894,6 +894,7 @@
Madison May
Lucas Maystre
Arnaud Mazin
+Pam McA'Nulty
Matt McClure
Rebecca McCreary
Kirk McDonald
diff --git a/Misc/NEWS b/Misc/NEWS
index 1a2aebf..b4fa7a1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -449,6 +449,9 @@
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