-
Notifications
You must be signed in to change notification settings - Fork 1
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
CI: Add support for Python 3.12 and 3.13 #545
Conversation
03da8c5
to
068ddac
Compare
tests/util/fake_cloud.py
Outdated
here = pathlib.Path(__file__) | ||
self.ssl_cert = here.parent / "server.crt" | ||
ssl_key = here.parent / "server.key" | ||
self.socket = ssl.wrap_socket( # type: ignore[attr-defined] | ||
|
||
# Instances of SSLSocket must be created using the | ||
# `SSLContext.wrap_socket()` method. | ||
# https://docs.python.org/3.12/library/ssl.html#socket-creation | ||
context = ssl.create_default_context() | ||
context.check_hostname = False | ||
context.load_cert_chain(certfile=str(self.ssl_cert), keyfile=str(ssl_key)) | ||
|
||
self.socket = context.wrap_socket( # type: ignore[attr-defined] | ||
self.socket, | ||
keyfile=str(ssl_key), | ||
certfile=str(self.ssl_cert), | ||
server_side=True, | ||
) |
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.
The canonical rewrite of that spot failed.
More information:
Apparently, it doesn't work any longer without additional modifiations to the test suite, to make the FakeCrateDBCloudServer
work well again. See CI outcome.
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.
Fixed per 28d838c.
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.
👍
About
In
tests.util.fake_cloud.FakeCrateDBCloudServer
,ssl.wrap_socket()
is no longer supported.Stacking
That other PR needs to be merged first.