This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)
Type: behavior Stage:
Components: Tests Versions: Python 3.0, Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: MrJean1, jjlee, orsenthil, rpetrov
Priority: normal Keywords:

Created on 2008-07-18 18:47 by MrJean1, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg69971 - (view) Author: Jean Brouwers (MrJean1) Date: 2008-07-18 18:47
The test_urllib2_localnet fails on MacOS X 10.4.11 (Intel) with Python 2.6b2 (and 3.0b2), see 
below.

The same test also failed for Python 2.6b1 but was not reported as a test failure.


% ./python.exe 
Python 2.6b2 (r26b2:65082, Jul 18 2008, 09:00:40) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

% ./python.exe Lib/test/test_urllib2_localnet.py
test_proxy_qop_auth_int_works_or_throws_urlerror (__main__.ProxyAuthTests) ... ok
test_proxy_qop_auth_works (__main__.ProxyAuthTests) ... ok
test_proxy_with_bad_password_raises_httperror (__main__.ProxyAuthTests) ... ok
test_proxy_with_no_password_raises_httperror (__main__.ProxyAuthTests) ... ok

----------------------------------------------------------------------
Ran 4 tests in 4.233s

OK
test_200 (__main__.TestUrlopen) ... ok
test_200_with_parameters (__main__.TestUrlopen) ... ok
test_404 (__main__.TestUrlopen) ... ok
test_bad_address (__main__.TestUrlopen) ... FAIL
test_basic (__main__.TestUrlopen) ... ok
test_geturl (__main__.TestUrlopen) ... ok
test_info (__main__.TestUrlopen) ... ok
test_redirection (__main__.TestUrlopen) ... ok
test_sending_headers (__main__.TestUrlopen) ... ok

======================================================================
FAIL: test_bad_address (__main__.TestUrlopen)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_urllib2_localnet.py", line 477, in test_bad_address
    urllib2.urlopen, "http://www.python.invalid./")
AssertionError: IOError not raised

----------------------------------------------------------------------
Ran 9 tests in 9.486s

FAILED (failures=1)
Traceback (most recent call last):
  File "Lib/test/test_urllib2_localnet.py", line 491, in <module>
    test_main()
  File "Lib/test/test_urllib2_localnet.py", line 488, in test_main
    test_support.run_unittest(TestUrlopen)
  File ".../Python-2.6b2/Lib/test/test_support.py", line 731, in run_unittest
    _run_suite(suite)
  File ".../Python-2.6b2/Lib/test/test_support.py", line 714, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "Lib/test/test_urllib2_localnet.py", line 477, in test_bad_address
    urllib2.urlopen, "http://www.python.invalid./")
AssertionError: IOError not raised
msg81819 - (view) Author: Roumen Petrov (rpetrov) * Date: 2009-02-12 21:10
May be same as issue4666 ?
msg89364 - (view) Author: Jean Brouwers (MrJean1) Date: 2009-06-14 18:44
This test passes with Python 3.1rc2 on MacOS X 10.4.11 Tiger (Intel).

% ./python.exe
Python 3.1rc2 (r31rc2:73411, Jun 14 2009, 09:27:12) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D

% ./python.exe Lib/test/test_urllib2_localnet.py
test_proxy_qop_auth_int_works_or_throws_urlerror 
(__main__.ProxyAuthTests) ... ok
test_proxy_qop_auth_works (__main__.ProxyAuthTests) ... ok
test_proxy_with_bad_password_raises_httperror (__main__.ProxyAuthTests) 
... ok
test_proxy_with_no_password_raises_httperror (__main__.ProxyAuthTests) 
... ok
test_200 (__main__.TestUrlopen) ... ok
test_200_with_parameters (__main__.TestUrlopen) ... ok
test_404 (__main__.TestUrlopen) ... ok
test_bad_address (__main__.TestUrlopen) ... ok
test_basic (__main__.TestUrlopen) ... ok
test_chunked (__main__.TestUrlopen) ... ok
test_geturl (__main__.TestUrlopen) ... ok
test_info (__main__.TestUrlopen) ... ok
test_redirection (__main__.TestUrlopen) ... ok
test_sending_headers (__main__.TestUrlopen) ... ok

----------------------------------------------------------------------
Ran 14 tests in 10.202s

OK
msg89365 - (view) Author: Jean Brouwers (MrJean1) Date: 2009-06-14 18:47
The test also passes on Python 2.6.2 on MacOS X 10.4.11 Tiger (Intel):

% ./python.exe
Python 2.6.2 (r262:71600, Apr 15 2009, 21:47:16) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D

% ./python.exe Lib/test/test_urllib2_localnet.py
test_proxy_qop_auth_int_works_or_throws_urlerror (__main__.ProxyAuthTests) ... ok
test_proxy_qop_auth_works (__main__.ProxyAuthTests) ... ok
test_proxy_with_bad_password_raises_httperror (__main__.ProxyAuthTests) ... ok
test_proxy_with_no_password_raises_httperror (__main__.ProxyAuthTests) ... ok

----------------------------------------------------------------------
Ran 4 tests in 4.233s

OK
test_200 (__main__.TestUrlopen) ... ok
test_200_with_parameters (__main__.TestUrlopen) ... ok
test_404 (__main__.TestUrlopen) ... ok
test_bad_address (__main__.TestUrlopen) ... ok
test_basic (__main__.TestUrlopen) ... ok
test_geturl (__main__.TestUrlopen) ... ok
test_info (__main__.TestUrlopen) ... ok
test_redirection (__main__.TestUrlopen) ... ok
test_sending_headers (__main__.TestUrlopen) ... ok

----------------------------------------------------------------------
Ran 9 tests in 8.954s

OK
msg89422 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-06-16 03:19
Closing it based on the (test pass) comments.
Fix was applied in r67779, r67777.
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47657
2009-06-16 03:19:07orsenthilsetstatus: open -> closed

messages: + msg89422
2009-06-14 18:47:39MrJean1setmessages: + msg89365
2009-06-14 18:44:45MrJean1setmessages: + msg89364
2009-02-13 01:19:05ajaksu2setnosy: + jjlee
2009-02-12 21:10:22rpetrovsetnosy: + rpetrov
messages: + msg81819
2009-02-12 17:52:33ajaksu2setversions: + Python 3.0
2009-02-12 17:51:29ajaksu2setnosy: + orsenthil
2008-07-18 18:47:53MrJean1create