]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Improvge error reporting
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 23 Jun 2013 16:59:01 +0000 (18:59 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 23 Jun 2013 16:59:01 +0000 (18:59 +0200)
test/test_download.py

index 577bcdbf2d7eeac987aa2566cd4cda128d07a9ba..84b3204fe3d4439abaa98f39a00d30a402def274 100644 (file)
@@ -129,7 +129,7 @@ def generator(test_case):
                     if isinstance(value, compat_str) and value.startswith('md5:'):
                         self.assertEqual(value, 'md5:' + md5(info_dict.get(info_field)))
                     else:
-                        self.assertEqual(value, info_dict.get(info_field))
+                        self.assertEqual(value, info_dict.get(info_field), u'invalid value for field ' + info_field)
 
                 # If checkable fields are missing from the test case, print the info_dict
                 test_info_dict = dict((key, value if not isinstance(value, compat_str) or len(value) < 250 else 'md5:' + md5(value))