Commit 245ce4d7 authored by Sebastien Robin's avatar Sebastien Robin

increase for python 2.6 the timeout in case there is many

activities to run. there is not such option to urlopen for
python2.4

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35611 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96e9c5a3
......@@ -133,6 +133,11 @@ class FunctionalTestRunner:
# (imitating firefox 3.5.9 here)
headers = { 'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' }
request = urllib2.Request(url, headers=headers)
# Try to use long timeout, this is needed when there is many
# activities runing
try:
f = urllib2.urlopen(request, timeout=3600)
except TypeError:
f = urllib2.urlopen(request)
file_content = f.read()
f.close()
......
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