Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 44023:6d3b67a837a6
cleanup: drop redundant character escapes from `[]` character sets
Flagged by PyCharm. Most special characters lose their special meaning inside
square brackets. The `-` in util.py doesn't need to be escaped because it is
the last character in the set.
Differential Revision: https://phab.mercurial-scm.org/D7766
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 28 Dec 2019 01:35:05 -0500 |
parents | bd3fa45c0662 |
children | 9803b374389a bd0de73cf810 |
line wrap: on
line diff
--- a/tests/run-tests.py Sat Dec 28 01:12:19 2019 -0500 +++ b/tests/run-tests.py Sat Dec 28 01:35:05 2019 -0500 @@ -3179,9 +3179,7 @@ expanded_args.append(arg) args = expanded_args - testcasepattern = re.compile( - br'([\w-]+\.t|py)(?:#([a-zA-Z0-9_\-\.#]+))' - ) + testcasepattern = re.compile(br'([\w-]+\.t|py)(?:#([a-zA-Z0-9_\-.#]+))') tests = [] for t in args: case = []