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_urllibnet fails
Type: behavior Stage:
Components: Tests Versions: Python 3.0
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: donmez, orsenthil
Priority: normal Keywords:

Created on 2008-06-16 08:32 by donmez, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg68264 - (view) Author: Ismail Donmez (donmez) * Date: 2008-06-16 08:32
This is on Linux with latest py3k branch:

test test_urllibnet failed -- Traceback (most recent call last):
  File "/home/cartman/Sources/py3k/Lib/test/test_urllibnet.py", line
145, in test_bad_address
    urllib.urlopen, "http://www.python.invalid./")
AssertionError: IOError not raised by urlopen
msg68272 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2008-06-16 16:56
> This is on Linux with latest py3k branch:
> 
> test test_urllibnet failed -- Traceback (most recent call last):
>   File "/home/cartman/Sources/py3k/Lib/test/test_urllibnet.py", line
> 145, in test_bad_address
>     urllib.urlopen, "http://www.python.invalid./")
> AssertionError: IOError not raised by urlopen

Is this on the trunk?
For me, test_bad_address test passes for test_urllibnet.py
- This is on Fedora Core 2, with the just checkout trunk of py3k.

That said, there are problems with email package instances ( which was replaced for mimetools). Shall work out for patch.

======================================================================
FAIL: test_info (__main__.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_urllibnet.py", line 91, in test_info
    "object returned by 'info' is not an instance of "
AssertionError: object returned by 'info' is not an instance of
email.message.Message

======================================================================
FAIL: test_header (__main__.urlretrieveNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_urllibnet.py", line 184, in test_header
    "header is not an instance of email.message.Message")
AssertionError: header is not an instance of email.message.Message

----------------------------------------------------------------------
msg68301 - (view) Author: Ismail Donmez (donmez) * Date: 2008-06-17 04:57
Just confirmed with svn revision 64322 of py3k branch.
msg68395 - (view) Author: Ismail Donmez (donmez) * Date: 2008-06-19 09:23
Works fine in trunk now, can someone please close this bug? Thanks.
History
Date User Action Args
2022-04-11 14:56:35adminsetgithub: 47371
2008-06-19 09:37:02amaury.forgeotdarcsetstatus: open -> closed
resolution: out of date
2008-06-19 09:23:18donmezsetmessages: + msg68395
2008-06-17 04:57:48donmezsettype: behavior
messages: + msg68301
2008-06-16 17:00:05orsenthilsetnosy: + orsenthil
messages: + msg68272
2008-06-16 08:32:07donmezcreate