[Erp5-report] r35611 seb - /erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 25 10:47:11 CEST 2010


Author: seb
Date: Tue May 25 10:47:04 2010
New Revision: 35611

URL: http://svn.erp5.org?rev=35611&view=rev
Log:
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

Modified:
    erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py?rev=35611&r1=35610&r2=35611&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py [utf8] Tue May 25 10:47:04 2010
@@ -133,7 +133,12 @@
     # (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)
-    f = urllib2.urlopen(request)
+    # 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()
     return file_content




More information about the Erp5-report mailing list