summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ftplib.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_ftplib.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_ftplib.py')
-rw-r--r--Lib/test/test_ftplib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py
index a9bf30b..e043828 100644
--- a/Lib/test/test_ftplib.py
+++ b/Lib/test/test_ftplib.py
@@ -137,7 +137,7 @@ class DummyFTPHandler(asynchat.async_chat):
def cmd_pasv(self, arg):
with socket.socket() as sock:
sock.bind((self.socket.getsockname()[0], 0))
- sock.listen(5)
+ sock.listen()
sock.settimeout(TIMEOUT)
ip, port = sock.getsockname()[:2]
ip = ip.replace('.', ','); p1 = port / 256; p2 = port % 256
@@ -155,7 +155,7 @@ class DummyFTPHandler(asynchat.async_chat):
def cmd_epsv(self, arg):
with socket.socket(socket.AF_INET6) as sock:
sock.bind((self.socket.getsockname()[0], 0))
- sock.listen(5)
+ sock.listen()
sock.settimeout(TIMEOUT)
port = sock.getsockname()[1]
self.push('229 entering extended passive mode (|||%d|)' %port)
@@ -983,7 +983,7 @@ class TestTimeouts(TestCase):
# 1) when the connection is ready to be accepted.
# 2) when it is safe for the caller to close the connection
# 3) when we have closed the socket
- self.sock.listen(5)
+ self.sock.listen()
# (1) Signal the caller that we are ready to accept the connection.
self.evt.set()
try: