X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_download.py;h=3eca333f269748cabb1f09b62a11f70ace25b3ac;hb=36ed7177f01d278935ab5eac3d44fcea421c5325;hp=e29092c456b3d08c7e96c7cf35aae858118fd325;hpb=f375d4b7de17b1ac3d8fda9d4f071e1e55be1963;p=youtube-dl diff --git a/test/test_download.py b/test/test_download.py index e29092c45..3eca333f2 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -58,6 +58,7 @@ with io.open(PARAMETERS_FILE, encoding='utf-8') as pf: class TestDownload(unittest.TestCase): + maxDiff = None def setUp(self): self.parameters = parameters self.defs = defs @@ -66,7 +67,7 @@ class TestDownload(unittest.TestCase): def generator(test_case): def test_template(self): - ie = getattr(youtube_dl.InfoExtractors, test_case['name'] + 'IE') + ie = youtube_dl.InfoExtractors.get_info_extractor(test_case['name']) if not ie._WORKING: print('Skipping: IE marked as not _WORKING') return @@ -102,7 +103,7 @@ def generator(test_case): if retry == RETRIES: raise # Check if the exception is not a network related one - if not err.exc_info[0] in (ZeroDivisionError, compat_urllib_error.URLError, socket.timeout): + if not err.exc_info[0] in (compat_urllib_error.URLError, socket.timeout, UnavailableVideoError): raise print('Retrying: {0} failed tries\n\n##########\n\n'.format(retry))