浏览代码

Aggressive test timeout to catch hanging servers

Philipp Hagemeister 12 年之前
父节点
当前提交
d8bbf2018e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      test/test_download.py

+ 1 - 0
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 """