From 6daa654f61240079ec7517da52849c9d7568ab3d Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Thu, 20 Feb 2020 09:42:59 +0100 Subject: [PATCH] improve regex to find parameter definitions in check for redefined parameters, as suggested by @smoors --- test/easyconfigs/easyconfigs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/easyconfigs/easyconfigs.py b/test/easyconfigs/easyconfigs.py index 111a4097967..02798cf9735 100644 --- a/test/easyconfigs/easyconfigs.py +++ b/test/easyconfigs/easyconfigs.py @@ -822,7 +822,7 @@ def template_easyconfig_test(self, spec): self.assertFalse(res, error_msg % res) # check for redefined easyconfig parameters, there should be none... - param_def_regex = re.compile('^(?P[a-z_]+)\s*=', re.M) + param_def_regex = re.compile('^(?P\w+)\s*=', re.M) keys = param_def_regex.findall(ec.rawtxt) redefined_keys = [] for key in sorted(nub(keys)):