summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-03 19:17:47 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-03 19:17:47 (GMT)
commit6e813188dbda129efc75d16ce912293adc229576 (patch)
treebec3e80ddad3b6674de6f93bfba037435e6d3a74
parent83a072d953fbc314999a8fb198175ba762c99e2e (diff)
downloadcpython-6e813188dbda129efc75d16ce912293adc229576.zip
cpython-6e813188dbda129efc75d16ce912293adc229576.tar.gz
cpython-6e813188dbda129efc75d16ce912293adc229576.tar.bz2
testConnectTimeout(): set the timeout to a smaller value; 0.02
sometimes wasn't short enough.
-rw-r--r--Lib/test/test_timeout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_timeout.py b/Lib/test/test_timeout.py
index a8a935f..65470d7 100644
--- a/Lib/test/test_timeout.py
+++ b/Lib/test/test_timeout.py
@@ -99,7 +99,7 @@ class TimeoutTestCase(unittest.TestCase):
def testConnectTimeout(self):
# Test connect() timeout
- _timeout = 0.02
+ _timeout = 0.001
self.sock.settimeout(_timeout)
_t1 = time.time()