diff options
author | Ruan HE <ruan.he@orange.com> | 2015-09-22 09:04:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-09-22 09:04:18 +0000 |
commit | 75d34c69f28d691288d6b3afb16d6d5ca5824fd7 (patch) | |
tree | f1ca02ad2cf5f2fbf06a8a5c1580e3d1e1c3e1e2 | |
parent | a25d70ffbe21f4bdf5ad5d086b829eeef4820708 (diff) | |
parent | 9caa954d75981b8641b76978316cbe591e845b55 (diff) |
Merge "Change the regular expression used to catch ''"
-rw-r--r-- | moonclient/moonclient/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moonclient/moonclient/tests.py b/moonclient/moonclient/tests.py index 1e1020bf..5badf4bc 100644 --- a/moonclient/moonclient/tests.py +++ b/moonclient/moonclient/tests.py @@ -33,7 +33,7 @@ class TestsLaunch(Lister): def __replace_var_in_str(self, data_str): for exp in re.findall("\$\w+", data_str): if exp.replace("$", "") in self.result_vars: - data_str = re.sub(exp.replace("$", "\$") + "(?=$|\s)", self.result_vars[exp.replace("$", "")], data_str) + data_str = re.sub(exp.replace("$", "\$") + "(?!\w)", self.result_vars[exp.replace("$", "")], data_str) return data_str def __compare_results(self, expected, observed): |