aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-12 20:33:03 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-12 20:33:03 +0100
commitd8bbf2018effb0043dd418596ef1ab729239e129 (patch)
treeae49eb7f6da339ccd64f61e44ac3cca04b1d2595
parent187f491ad21d369f34da9e4982ac4b106dfc89ca (diff)
Aggressive test timeout to catch hanging servers
-rw-r--r--test/test_download.py1
1 files changed, 1 insertions, 0 deletions
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 """