Commit 3912f2a7 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

ERP5Type/tests/coverage_report: make timeout error more informative

parent 4f29beeb
......@@ -25,6 +25,10 @@ from six.moves.urllib.parse import urlparse
from Products.ERP5Type.tests.runUnitTest import log_directory
if six.PY2:
TimeoutError = RuntimeError
def _get_auth_list_from_url(parsed_url):
if parsed_url.username:
# try Digest and Basic authentication
......@@ -154,7 +158,7 @@ class CoverageReport(unittest.TestCase):
)
time.sleep(60 if resp.status_code == 404 else 5)
if datetime.datetime.now() > deadline:
raise TimeoutError()
raise TimeoutError("Timeout downloading %s" % to_download)
return downloaded_coverage_path_set
def test_coverage_report(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment