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.
This commit is contained in:
Senthil Kumaran 2010-12-15 04:02:45 +00:00
parent 42877fec3a
commit bd8f1458f8
1 changed files with 1 additions and 1 deletions

View File

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