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

test_urllibnet fails #47371

Closed
donmez mannequin opened this issue Jun 16, 2008 · 4 comments
Closed

test_urllibnet fails #47371

donmez mannequin opened this issue Jun 16, 2008 · 4 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@donmez
Copy link
Mannequin

donmez mannequin commented Jun 16, 2008

BPO 3121
Nosy @orsenthil

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 = None
closed_at = <Date 2008-06-19.09:37:02.360>
created_at = <Date 2008-06-16.08:32:07.654>
labels = ['type-bug', 'tests']
title = 'test_urllibnet fails'
updated_at = <Date 2008-06-19.09:37:02.359>
user = 'https://bugs.python.org/donmez'

bugs.python.org fields:

activity = <Date 2008-06-19.09:37:02.359>
actor = 'amaury.forgeotdarc'
assignee = 'none'
closed = True
closed_date = <Date 2008-06-19.09:37:02.360>
closer = 'amaury.forgeotdarc'
components = ['Tests']
creation = <Date 2008-06-16.08:32:07.654>
creator = 'donmez'
dependencies = []
files = []
hgrepos = []
issue_num = 3121
keywords = []
message_count = 4.0
messages = ['68264', '68272', '68301', '68395']
nosy_count = 2.0
nosy_names = ['orsenthil', 'donmez']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3121'
versions = ['Python 3.0']

@donmez
Copy link
Mannequin Author

donmez mannequin commented Jun 16, 2008

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

@donmez donmez mannequin added the tests Tests in the Lib/test dir label Jun 16, 2008
@orsenthil
Copy link
Member

> 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

@donmez
Copy link
Mannequin Author

donmez mannequin commented Jun 17, 2008

Just confirmed with svn revision 64322 of py3k branch.

@donmez donmez mannequin added the type-bug An unexpected behavior, bug, or error label Jun 17, 2008
@donmez
Copy link
Mannequin Author

donmez mannequin commented Jun 19, 2008

Works fine in trunk now, can someone please close this bug? Thanks.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants