aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-30 20:31:29 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-30 20:33:59 +0600
commitf88f1b40ce7f70a3a510259154364a25d7dceff6 (patch)
tree1e7b4d12161c73dc2940005c41d01b2036415cbc /test
parent386a7b52d548da0aaf11e5805d67d5ab30d9dfab (diff)
downloadyoutube-dl-f88f1b40ce7f70a3a510259154364a25d7dceff6.tar.xz
[test/helper] Clarify field for list length mismatch
Diffstat (limited to 'test')
-rw-r--r--test/helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/helper.py b/test/helper.py
index 0ce9a0fb3..28fd135b2 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -128,7 +128,8 @@ def expect_value(self, got, expected, field):
elif isinstance(expected, list) and isinstance(got, list):
self.assertEqual(
len(expected), len(got),
- 'Expect a list of length %d, but got a list of length %d' % (len(expected), len(got)))
+ 'Expect a list of length %d, but got a list of length %d for field %s' % (
+ len(expected), len(got), field))
for index, (item_got, item_expected) in enumerate(zip(got, expected)):
type_got = type(item_got)
type_expected = type(item_expected)