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
test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/' #65138
Comments
It looks like another change to the new python.org website is breaking another test: ====================================================================== Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_urllibnet.py", line 86, in test_geturl
self.assertEqual(gotten_url, URL)
AssertionError: 'https://www.python.org/' != 'http://www.python.org/'
- https://www.python.org/
? -
+ http://www.python.org/ |
New changeset 9b02f23bc129 by Ned Deily in branch '2.7': New changeset 030efedd70ca by Ned Deily in branch '3.3': New changeset 9358a41b245b by Ned Deily in branch 'default': |
The above changes temporarily fix the problem as long as the build include ssl support. We should probably change all of the tests to use some other domain that does not redirect to https: www.example.com has been suggested. |
New changeset 7f4fba171a40 by Ned Deily in branch '3.4': |
Here are patches to change network use of www.python.org to www.example.com so that the tests should pass even if the interpreter is built without SSL support. It turns out that there are references to www.python.org in unexpected places (like test_site) so, while I ran all tests and tested the changes both with and without SSL availability, it wouldn't surprise me if I missed a few spots. Also, as requested by Benjamin, I produced patches for and tested on 3.1 and 3.2. I'm +0 on applying the changes there as there are other, unrelated test failures with those releases on some platforms, but with the patches no one can blame the new python.org website for them. |
The suggested patch(s) looks good to me. |
New changeset 426a7046cdb0 by Ned Deily in branch '2.7': New changeset 31e42208eb99 by Ned Deily in branch '3.4': New changeset 6134684ba222 by Ned Deily in branch '3.4': New changeset 67dcb2d19dc4 by Ned Deily in branch 'default': |
New changeset b533cc11d114 by Ned Deily in branch '3.4': New changeset ff27cb871b16 by Ned Deily in branch 'default': |
I've pushed the changes to 2.7, 3.4, and default. That has exposed a new intermittent failure of test_fileno in test.test_urllibnet (see bpo-21069). I'll leave this issue open until that is resolved. And I'll leave it up to the respective release managers to decide whether they want to backport to their security-fix-only branches. |
Since the original problems reported here have been fixed in current branches, I'm closing this issue. |
New changeset 97c329849ef3 by Ned Deily in branch '3.2': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: