-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-30594: Add a test for bad IDNA in ssl server_hostname #1997
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
Conversation
820c462
to
f3c34f1
Compare
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.
LGTM. Thank you for the test.
Lib/test/test_ssl.py
Outdated
ctx = ssl.create_default_context() | ||
# Do it a few times, because this used to cause memory corruption | ||
# https://bugs.python.org/issue30594 | ||
for _ in range(5): |
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.
I don't think that it's worth it to run it in a loop. Just run it once. It's only a regression test. We have enough buildbots to catch race conditions if there is a test ;-)
Lib/test/test_ssl.py
Outdated
# free to remove it. | ||
ctx = ssl.create_default_context() | ||
# Do it a few times, because this used to cause memory corruption | ||
# https://bugs.python.org/issue30594 |
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.
Usually, we just write "# bpo-30594: ..."
f3c34f1
to
93f1659
Compare
93f1659
to
a30411e
Compare
Comments addressed. |
Thanks @njsmith for the unit test! I merged it. |
See discussion:
#1992 (comment)