diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2014-07-23 18:28:13 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2014-07-23 18:28:13 (GMT) |
commit | 6e20460dc6356d213e816bbbd8dc6a336c83bbd0 (patch) | |
tree | 03871af1970c99a2ec09229730dac0cce4053586 /Lib/test/test_httplib.py | |
parent | 8518b79a8d13920c06a5cdccd255944f2187f62f (diff) | |
download | cpython-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.py | 4 |
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() |