From: Senthil Kumaran Date: Wed, 15 Dec 2010 04:02:45 +0000 (+0000) Subject: TIMEOUT value change in URLTimeout Test. test.support.transient_internet has a X-Git-Tag: v3.2b2~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd8f1458f8c81ee7d9ff4748fa53eec1f096f7b6;p=thirdparty%2FPython%2Fcpython.git TIMEOUT value change in URLTimeout Test. test.support.transient_internet has a socket timeout of 30 when it checks for resource. Explicit overrding (like setting the 10) wont exhibit consistent behavior when tests are outside context manager. So, settting it 30. --- diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index 1d50207fd393..c8851031e894 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -13,7 +13,7 @@ import time class URLTimeoutTest(unittest.TestCase): - TIMEOUT = 10.0 + TIMEOUT = 30.0 def setUp(self): socket.setdefaulttimeout(self.TIMEOUT)