Mercurial > hg
comparison tests/run-tests.py @ 38251:47b9240615ca
py3: add b'' prefix to make the regex bytes
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D3705
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 09 Jun 2018 15:01:04 +0530 |
parents | f2e3196a34f9 |
children | b5651ae53127 |
comparison
equal
deleted
inserted
replaced
38250:d0abd7949ea3 | 38251:47b9240615ca |
---|---|
2644 expanded_args.extend([arg + a for a in os.listdir(arg)]) | 2644 expanded_args.extend([arg + a for a in os.listdir(arg)]) |
2645 else: | 2645 else: |
2646 expanded_args.append(arg) | 2646 expanded_args.append(arg) |
2647 args = expanded_args | 2647 args = expanded_args |
2648 | 2648 |
2649 testcasepattern = re.compile(r'([\w-]+\.t|py)(#([^\s]+))') | 2649 testcasepattern = re.compile(br'([\w-]+\.t|py)(#([^\s]+))') |
2650 tests = [] | 2650 tests = [] |
2651 for t in args: | 2651 for t in args: |
2652 case = None | 2652 case = None |
2653 | 2653 |
2654 if not (os.path.basename(t).startswith(b'test-') | 2654 if not (os.path.basename(t).startswith(b'test-') |