From: Philipp Hagemeister Date: Sat, 12 Jan 2013 19:33:03 +0000 (+0100) Subject: Aggressive test timeout to catch hanging servers X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d8bbf2018effb0043dd418596ef1ab729239e129;p=youtube-dl Aggressive test timeout to catch hanging servers --- diff --git a/test/test_download.py b/test/test_download.py index 40d596fdf..e36774de9 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -26,6 +26,7 @@ cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar) proxy_handler = compat_urllib_request.ProxyHandler() opener = compat_urllib_request.build_opener(proxy_handler, cookie_processor, YoutubeDLHandler()) compat_urllib_request.install_opener(opener) +socket.setdefaulttimeout(10) def _try_rm(filename): """ Remove a file if it exists """