Skip to content

bpo-39259: ftplib.FTP/FTP_TLS now reject timeout = 0#17959

Merged
vstinner merged 1 commit intopython:masterfrom
corona10:bpo-39259-ftplib
Jan 13, 2020
Merged

bpo-39259: ftplib.FTP/FTP_TLS now reject timeout = 0#17959
vstinner merged 1 commit intopython:masterfrom
corona10:bpo-39259-ftplib

Conversation

@corona10
Copy link
Copy Markdown
Member

@corona10 corona10 commented Jan 12, 2020

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Comment thread Lib/test/test_ftplib.py

# bpo-39259
with self.assertRaises(ValueError):
ftplib.FTP(HOST, timeout=0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTP_TLS is not tested, but I don't think that its a big deal. FTP_TLS requires to check if ssl is available, and the current test suite isn't properly designed to test FTP and FTP_TLS at the same time.

@vstinner vstinner merged commit a190e2a into python:master Jan 13, 2020
sthagen added a commit to sthagen/python-cpython that referenced this pull request Jan 13, 2020
bpo-39259: ftplib.FTP/FTP_TLS now reject timeout = 0 (pythonGH-17959)
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants