diff options
author | dirkf <fieldhouse@gmx.net> | 2023-09-03 01:13:40 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-09-03 01:13:40 +0100 |
commit | 21caaf23800c95451cec27dfac56df2c0f8de85a (patch) | |
tree | ff8973fba36c0beb67effadbeb1374cf1450ffc8 | |
parent | 31f50c8194f12c27ac6fbfe336f1d515aa8677ae (diff) |
[test] Remove redundancy from lambda expected value regex
-rw-r--r-- | test/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helper.py b/test/helper.py index fc55c6b46..5b7e3dfe2 100644 --- a/test/helper.py +++ b/test/helper.py @@ -142,7 +142,7 @@ def expect_value(self, got, expected, field): self.assertTrue( contains_str in got, 'field %s (value: %r) should contain %r' % (field, got, contains_str)) - elif isinstance(expected, compat_str) and re.match(r'^lambda \w+:', expected): + elif isinstance(expected, compat_str) and re.match(r'lambda \w+:', expected): fn = eval(expected) suite = expected.split(':', 1)[1].strip() self.assertTrue( |