]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[test/helper] Clarify field for list length mismatch
authorSergey M․ <dstftw@gmail.com>
Wed, 30 Sep 2015 14:31:29 +0000 (20:31 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 30 Sep 2015 14:33:59 +0000 (20:33 +0600)
test/helper.py

index 0ce9a0fb3ce5edbee2fc290ef1fac46d7687afc6..28fd135b2b50d4c40a3e68acc7dfc2a2898f0ee8 100644 (file)
@@ -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)