TIMEOUT value change in URLTimeout Test. test.support.transient_internet has a
authorSenthil Kumaran <orsenthil@gmail.com>
Wed, 15 Dec 2010 04:02:45 +0000 (04:02 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Wed, 15 Dec 2010 04:02:45 +0000 (04:02 +0000)
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.

Lib/test/test_urllibnet.py

index 1d50207fd3930aaec07673744720effdf1090056..c8851031e894b30f316cbfccd317a92ba13b402c 100644 (file)
@@ -13,7 +13,7 @@ import time
 
 class URLTimeoutTest(unittest.TestCase):
 
-    TIMEOUT = 10.0
+    TIMEOUT = 30.0
 
     def setUp(self):
         socket.setdefaulttimeout(self.TIMEOUT)