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-33354 Fix test_ssl.py without skipping. #7697

Closed
wants to merge 3 commits into from
Closed

bpo-33354 Fix test_ssl.py without skipping. #7697

wants to merge 3 commits into from

Conversation

mattpallissard
Copy link

@mattpallissard mattpallissard commented Jun 14, 2018

This Is a small PR addressing an issue that was already closed. Rather than simply skipping the test this change allows the test to complete.

https://bugs.python.org/issue33354

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

When your account is ready, please add a comment in this pull request
and a Python core developer will remove the CLA not signed label
to make the bot check again.

Thanks again for your contribution, we look forward to reviewing it!

@@ -989,7 +989,7 @@ def test_load_verify_cadata(self):


def test_load_dh_params(self):
filename = u'dhpäräm.pem'
filename = 'dhparam.pem'
Copy link
Member

Choose a reason for hiding this comment

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

You misunderstood the purpose of the test: the test checks that non-ASCII characters are encoded properly.

Copy link
Author

Choose a reason for hiding this comment

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

Forgive me, as I haven't read over everything extensively. But it fails every time, resulting in that test being skipped. Wouldn't it be better if lines 1003-1006 in commit 6e8f395 were removed altogether? Or am I missing something bigger?

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be put in the comfy chair!

I'm still not sure test_non_ascii_path() should exist or not.
@mattpallissard
Copy link
Author

mattpallissard commented Jun 14, 2018

I have made the requested changes; please review again.
If this doesn't pass muster I'm obviously missing something. If it does, I've signed the CLA. Thanks.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@vstinner: please review the changes made to this pull request.

Copy link
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.

The test is called "test_load_dh_params(self):" and you remove the call to ctx.load_dh_params(fname)... You don't understand the purpose of test.

When you want to change code, you have to explain why. You didn't explain why you want to modify or remove the test.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@mattpallissard
Copy link
Author

"You don't understand the purpose of test."
Evidently not.

@tiran
Copy link
Member

tiran commented Jun 15, 2018

Hi @mattpallissard,

I'm the author of the test. The non-ASCII file name in the test serves an important purpose. It verifies that the API can deal with non-ASCII characters in file names. @vstinner rejected your PR, because you removed the check.

@mattpallissard
Copy link
Author

Thanks for the follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants