1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-14 13:37:45 +08:00

test/helper.py: do not assign a lambda expression, use a def

This commit is contained in:
stepshal 2016-06-28 22:19:44 +07:00
parent 32616c14cc
commit abe03863d5

View File

@ -94,7 +94,7 @@ def gettestcases(include_onlymatching=False):
yield tc
md5 = lambda s: hashlib.md5(s.encode('utf-8')).hexdigest()
def md5(s): return: hashlib.md5(s.encode('utf-8')).hexdigest()
def expect_value(self, got, expected, field):