summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/cmdline.py
diff options
context:
space:
mode:
authormlouielu <git@louie.lu>2017-06-16 09:36:19 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-06-16 09:36:19 (GMT)
commita49c935cfd6b4f8ea1f750888dd9260bbf5b9980 (patch)
tree9ae451409f3fa9ca7ba08b36eaf16af9ec8ca9da /Lib/test/libregrtest/cmdline.py
parent272d888c7b58aff5e1614e3b12e8198b92054835 (diff)
downloadcpython-a49c935cfd6b4f8ea1f750888dd9260bbf5b9980.zip
cpython-a49c935cfd6b4f8ea1f750888dd9260bbf5b9980.tar.gz
cpython-a49c935cfd6b4f8ea1f750888dd9260bbf5b9980.tar.bz2
bpo-30523: regrtest: Add --list-cases option (#2238)
* bpo-30523: regrtest: Add --list-cases option * bpo-30523: Enhance --list-cases * Add get_abs_module() function, use it in list_cases() * list_cases() now logs skipped tests into stderr * Remove unused doctest
Diffstat (limited to 'Lib/test/libregrtest/cmdline.py')
-rw-r--r--Lib/test/libregrtest/cmdline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py
index 7f66997..bf64062 100644
--- a/Lib/test/libregrtest/cmdline.py
+++ b/Lib/test/libregrtest/cmdline.py
@@ -250,6 +250,9 @@ def _create_parser():
group.add_argument('--list-tests', action='store_true',
help="only write the name of tests that will be run, "
"don't execute them")
+ group.add_argument('--list-cases', action='store_true',
+ help='only write the name of test cases that will be run'
+ ' , don\'t execute them')
group.add_argument('-P', '--pgo', dest='pgo', action='store_true',
help='enable Profile Guided Optimization training')