You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/' #65138
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:
assignee='https://github.com/ned-deily'closed_at=<Date2014-06-23.00:55:16.948>created_at=<Date2014-03-15.19:41:17.137>labels= ['tests']
title="test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'"updated_at=<Date2014-09-30.14:22:56.499>user='https://github.com/ned-deily'
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.
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.
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.
Activity
ned-deily commentedon Mar 15, 2014
It looks like another change to the new python.org website is breaking another test:
======================================================================
FAIL: test_geturl (test.test_urllibnet.urlopenNetworkTests)
----------------------------------------------------------------------
python-dev commentedon Mar 15, 2014
New changeset 9b02f23bc129 by Ned Deily in branch '2.7':
Issue bpo-20939: Fix test_geturl failure in test_urllibnet due to
http://hg.python.org/cpython/rev/9b02f23bc129
New changeset 030efedd70ca by Ned Deily in branch '3.3':
Issue bpo-20939: Fix test_geturl failure in test_urllibnet due to
http://hg.python.org/cpython/rev/030efedd70ca
New changeset 9358a41b245b by Ned Deily in branch 'default':
Issue bpo-20939: merge from 3.3
http://hg.python.org/cpython/rev/9358a41b245b
ned-deily commentedon Mar 15, 2014
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.
python-dev commentedon Mar 17, 2014
New changeset 7f4fba171a40 by Ned Deily in branch '3.4':
Issue bpo-20939: merge from 3.3
http://hg.python.org/cpython/rev/7f4fba171a40
ned-deily commentedon Mar 17, 2014
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.
orsenthil commentedon Mar 20, 2014
The suggested patch(s) looks good to me.
python-dev commentedon Mar 27, 2014
New changeset 426a7046cdb0 by Ned Deily in branch '2.7':
Issue bpo-20939: Use www.example.com instead of www.python.org to avoid test
http://hg.python.org/cpython/rev/426a7046cdb0
New changeset 31e42208eb99 by Ned Deily in branch '3.4':
Issue bpo-20939: Backout test_urllib2.test_issue16464 disables:
http://hg.python.org/cpython/rev/31e42208eb99
New changeset 6134684ba222 by Ned Deily in branch '3.4':
Issue bpo-20939: Use www.example.com instead of www.python.org to avoid test
http://hg.python.org/cpython/rev/6134684ba222
New changeset 67dcb2d19dc4 by Ned Deily in branch 'default':
Issue bpo-20939: merge from 3.4
http://hg.python.org/cpython/rev/67dcb2d19dc4
python-dev commentedon Mar 27, 2014
New changeset b533cc11d114 by Ned Deily in branch '3.4':
Issue bpo-20939: remove stray character from comment
http://hg.python.org/cpython/rev/b533cc11d114
New changeset ff27cb871b16 by Ned Deily in branch 'default':
Issue bpo-20939: merge from 3.4
http://hg.python.org/cpython/rev/ff27cb871b16
ned-deily commentedon Mar 27, 2014
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.
ned-deily commentedon Jun 23, 2014
Since the original problems reported here have been fixed in current branches, I'm closing this issue.
python-dev commentedon Sep 30, 2014
New changeset 97c329849ef3 by Ned Deily in branch '3.2':
Issue bpo-20939: Use www.example.com instead of www.python.org to avoid test
https://hg.python.org/cpython/rev/97c329849ef3