Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jan 13, 2020

Conversation

@corona10
Copy link
Member

corona10 commented Jan 12, 2020

@corona10 corona10 requested a review from vstinner Jan 12, 2020
@corona10 corona10 force-pushed the corona10:bpo-39259-ftplib branch from 0e9e0ae to 7fa1935 Jan 12, 2020
@corona10 corona10 force-pushed the corona10:bpo-39259-ftplib branch from 7fa1935 to abda7c4 Jan 12, 2020
Copy link
Member

vstinner left a comment

LGTM.

@@ -1045,6 +1045,10 @@ def testTimeoutValue(self):
self.evt.wait()
ftp.close()

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

This comment has been minimized.

Copy link
@vstinner

vstinner Jan 13, 2020

Member

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
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20200112.19 succeeded
Details
bedevere/issue-number Issue number 39259 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
sthagen added a commit to sthagen/cpython that referenced this pull request Jan 13, 2020
bpo-39259: ftplib.FTP/FTP_TLS now reject timeout = 0 (pythonGH-17959)
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
petdance added a commit to petdance/cpython that referenced this pull request Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.