From 21caaf23800c95451cec27dfac56df2c0f8de85a Mon Sep 17 00:00:00 2001 From: dirkf Date: Sun, 3 Sep 2023 01:13:40 +0100 Subject: [PATCH] [test] Remove redundancy from lambda expected value regex --- test/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(