1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-05 20:33:36 +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
Unverified
parent 32616c14cc
commit abe03863d5
+1 -1
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):