From 97d07a15048684b6432d2c85976ffa722616b4d1 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 8 Jan 2019 14:00:06 -0800 Subject: [PATCH] [stable-2.7] Improve performance of no-tests-as-filters test. (cherry picked from commit 7995f69a4493cf4bfebbe66fca4650c09567b40e) Co-authored-by: Matt Clay --- test/sanity/code-smell/no-tests-as-filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sanity/code-smell/no-tests-as-filters.py b/test/sanity/code-smell/no-tests-as-filters.py index 792dc988341..04f50fb88ce 100755 --- a/test/sanity/code-smell/no-tests-as-filters.py +++ b/test/sanity/code-smell/no-tests-as-filters.py @@ -45,7 +45,7 @@ TEST_MAP = { } -FILTER_RE = re.compile(r'((.+?)\s*(?P[\w .\'"]+)(\s*)\|(\s*)(?P\w+))') +FILTER_RE = re.compile(r'(?P[\w .\'"]+)(\s*)\|(\s*)(?P\w+)') def main():