summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2014-07-23 18:28:13 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2014-07-23 18:28:13 (GMT)
commit6e20460dc6356d213e816bbbd8dc6a336c83bbd0 (patch)
tree03871af1970c99a2ec09229730dac0cce4053586 /Lib/test/test_httplib.py
parent8518b79a8d13920c06a5cdccd255944f2187f62f (diff)
downloadcpython-6e20460dc6356d213e816bbbd8dc6a336c83bbd0.zip
cpython-6e20460dc6356d213e816bbbd8dc6a336c83bbd0.tar.gz
cpython-6e20460dc6356d213e816bbbd8dc6a336c83bbd0.tar.bz2
Issue #21566: Make use of socket.listen() default backlog.
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index 1a6d8d0..00c272c 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -919,7 +919,7 @@ class SourceAddressTest(TestCase):
self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.port = support.bind_port(self.serv)
self.source_port = support.find_unused_port()
- self.serv.listen(5)
+ self.serv.listen()
self.conn = None
def tearDown(self):
@@ -951,7 +951,7 @@ class TimeoutTest(TestCase):
def setUp(self):
self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
TimeoutTest.PORT = support.bind_port(self.serv)
- self.serv.listen(5)
+ self.serv.listen()
def tearDown(self):
self.serv.close()