[New-bugs-announce] [issue29035] regrtest: simplify regex to match test names for the --fromfile option
STINNER Victor
report at bugs.python.org
Wed Dec 21 09:28:14 EST 2016
New submission from STINNER Victor:
Lib/test/libregrtest/main.py uses a complex regex to find "test_builtin" in lines like '0:00:00 [ 4/400] test_builtin -- test_dict took 1 sec'. Recently, I changed (change d8222c197831) the regex to support a filename containing a list of filenames. Example:
haypo at selma$ ls Lib/test/test_*xml*py >| list
haypo at selma$ cat list
Lib/test/test_docxmlrpc.py
Lib/test/test_xml_dom_minicompat.py
Lib/test/test_xml_etree_c.py
Lib/test/test_xml_etree.py
Lib/test/test_xmlrpc_net.py
Lib/test/test_xmlrpc.py
haypo at selma$ ./python -m test --fromfile=list --list
test_docxmlrpc
test_xml_dom_minicompat
test_xml_etree_c
test_xml_etree
test_xmlrpc_net
test_xmlrpc
Serhiy sent me a private message to suggest to simply the regex. So here is a patch.
----------
components: Tests
files: regrtest_regex.patch
keywords: patch
messages: 283755
nosy: haypo, inada.naoki, serhiy.storchaka, xiang.zhang
priority: normal
severity: normal
status: open
title: regrtest: simplify regex to match test names for the --fromfile option
versions: Python 3.7
Added file: http://bugs.python.org/file45984/regrtest_regex.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29035>
_______________________________________
More information about the New-bugs-announce
mailing list