Skip to content

Commit

Permalink
[test] Remove redundancy from lambda expected value regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Sep 3, 2023
1 parent 31f50c8 commit 21caaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 21caaf2

Please sign in to comment.