diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-10-27 00:39:39 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-10-27 00:39:39 +0100 |
commit | f744c0f3984cb8bb09f16bc4ef1d3c9c356b1b33 (patch) | |
tree | 827843c211399b7dbc74d3266be7efb52621ca34 /test | |
parent | 249efaf44bbdedf24f7da7c9d27afc397251d106 (diff) |
[test_download] Improve error message
Diffstat (limited to 'test')
-rw-r--r-- | test/test_download.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py index 608e4528e..75e0bb289 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -185,7 +185,9 @@ def generator(test_case): md5_for_file = _file_md5(tc_filename) self.assertEqual(md5_for_file, tc['md5']) info_json_fn = os.path.splitext(tc_filename)[0] + '.info.json' - self.assertTrue(os.path.exists(info_json_fn)) + self.assertTrue( + os.path.exists(info_json_fn), + 'Missing info file %s' % info_json_fn) with io.open(info_json_fn, encoding='utf-8') as infof: info_dict = json.load(infof) |