-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Fix test_http.request_callback #828
Conversation
f4bac24
to
a874df5
Compare
5671d0e
to
9e6f31c
Compare
with the new python versions in the test matrix, ssl in integration test started complaining about ftps server's self-signed cert
so i explicitly created a self-signed cert for localhost and passed it in the integration test. but now there's
and i'm not sure how to proceed. |
|
got it, we're green now:) rsa_cert_file=/etc/vsftpd.pem
+ rsa_private_key_file=/etc/vsftpd.key |
8bdd9d3
to
bfb9f93
Compare
@mpenkov please review |
from functools import partial | ||
|
||
# localhost has self-signed cert, see ci_helpers/helpers.sh:create_ftp_ftps_servers | ||
ssl.create_default_context = partial(ssl.create_default_context, cafile="/etc/vsftpd.pem") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably worth moving to transport_params
in a separate PR https://docs.python.org/3/library/ssl.html#ssl.create_default_context
LGTM, thank you! |
…open into zstd-ab-error * 'develop' of https://github.com/RaRe-Technologies/smart_open: Fix test_http.request_callback (piskvorky#828)
Title
Fix tests with urllib3 v2
Motivation
Fix #784, CI was running only 3.7 (hence urllib3 v1) due to a typo regarding
python-version
.Tests
Fix sftp tests now that CI is running python 3.8--3.12
Work in progress
Checklist
Before you create the PR, please make sure you have:
Workflow
Please avoid rebasing and force-pushing to the branch of the PR once a review is in progress.
Rebasing can make your commits look a bit cleaner, but it also makes life more difficult from the reviewer, because they are no longer able to distinguish between code that has already been reviewed, and unreviewed code.