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@selma$ ls Lib/test/test_*xml*py >| list haypo@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@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 <rep...@bugs.python.org> <http://bugs.python.org/issue29035> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com