##// END OF EJS Templates
testrunner: avoid capturing a regex group we don't care about...
Martin von Zweigbergk -
r41177:89d103fc default
parent child Browse files
Show More
@@ -2786,7 +2786,8 b' class TestRunner(object):'
2786 expanded_args.append(arg)
2786 expanded_args.append(arg)
2787 args = expanded_args
2787 args = expanded_args
2788
2788
2789 testcasepattern = re.compile(br'([\w-]+\.t|py)(#([a-zA-Z0-9_\-\.#]+))')
2789 testcasepattern = re.compile(
2790 br'([\w-]+\.t|py)(?:#([a-zA-Z0-9_\-\.#]+))')
2790 tests = []
2791 tests = []
2791 for t in args:
2792 for t in args:
2792 case = []
2793 case = []
@@ -2796,7 +2797,7 b' class TestRunner(object):'
2796
2797
2797 m = testcasepattern.match(os.path.basename(t))
2798 m = testcasepattern.match(os.path.basename(t))
2798 if m is not None:
2799 if m is not None:
2799 t_basename, _, casestr = m.groups()
2800 t_basename, casestr = m.groups()
2800 t = os.path.join(os.path.dirname(t), t_basename)
2801 t = os.path.join(os.path.dirname(t), t_basename)
2801 if casestr:
2802 if casestr:
2802 case = casestr.split(b'#')
2803 case = casestr.split(b'#')
General Comments 0
You need to be logged in to leave comments. Login now