logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 21caaf23800c95451cec27dfac56df2c0f8de85a
parent 31f50c8194f12c27ac6fbfe336f1d515aa8677ae
Author: dirkf <fieldhouse@gmx.net>
Date:   Sun,  3 Sep 2023 01:13:40 +0100

[test] Remove redundancy from lambda expected value regex

Diffstat:

Mtest/helper.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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(