summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJonas Haag <jonas@lophus.org>2017-11-28 19:40:44 (GMT)
committerAntoine Pitrou <pitrou@free.fr>2017-11-28 19:40:44 (GMT)
commit4d193bcc2560b824389e4d98d9d8b9b34e33dbaf (patch)
tree18a9f541c72092fb0c13c588564d4e7a3a722e8e /Doc
parenta489599793f9b00ddc2c68e2ce3bce9cbb2c09a2 (diff)
downloadcpython-4d193bcc2560b824389e4d98d9d8b9b34e33dbaf.zip
cpython-4d193bcc2560b824389e4d98d9d8b9b34e33dbaf.tar.gz
cpython-4d193bcc2560b824389e4d98d9d8b9b34e33dbaf.tar.bz2
bpo-32071: Fix regression and add What's New entry (#4589)
* bpo-32071: Fix an undocumented behaviour regression * bpo-32071: Add 3.7 release note entry for unittest -k
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.7.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index a67cbc1..4973080 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -398,6 +398,15 @@ Added functions :func:`time.thread_time` and :func:`time.thread_time_ns`
to get per-thread CPU time measurements.
(Contributed by Antoine Pitrou in :issue:`32025`.)
+
+unittest
+--------
+Added new command-line option ``-k`` to filter tests to run with a substring or
+Unix shell-like pattern. For example, ``python -m unittest -k foo`` runs the
+tests ``foo_tests.SomeTest.test_something``, ``bar_tests.SomeTest.test_foo``,
+but not ``bar_tests.FooTest.test_something``.
+
+
unittest.mock
-------------