mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
42877fec3a
commit
bd8f1458f8
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import time
|
|||
|
||||
class URLTimeoutTest(unittest.TestCase):
|
||||
|
||||
TIMEOUT = 10.0
|
||||
TIMEOUT = 30.0
|
||||
|
||||
def setUp(self):
|
||||
socket.setdefaulttimeout(self.TIMEOUT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue