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_urllib2net fails on test_ftp #45498

Closed
gvanrossum opened this issue Sep 12, 2007 · 2 comments
Closed

test_urllib2net fails on test_ftp #45498

gvanrossum opened this issue Sep 12, 2007 · 2 comments
Labels
tests Tests in the Lib/test dir

Comments

@gvanrossum
Copy link
Member

BPO 1157
Nosy @gvanrossum, @tiran

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 2007-11-09.01:29:56.505>
created_at = <Date 2007-09-12.21:01:34.925>
labels = ['tests']
title = 'test_urllib2net fails on test_ftp'
updated_at = <Date 2008-01-06.22:29:45.195>
user = 'https://github.com/gvanrossum'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:45.195>
actor = 'admin'
assignee = 'nobody'
closed = True
closed_date = <Date 2007-11-09.01:29:56.505>
closer = 'christian.heimes'
components = ['Tests']
creation = <Date 2007-09-12.21:01:34.925>
creator = 'gvanrossum'
dependencies = []
files = []
hgrepos = []
issue_num = 1157
keywords = []
message_count = 2.0
messages = ['55873', '57292']
nosy_count = 4.0
nosy_names = ['gvanrossum', 'nobody', 'jafo', 'christian.heimes']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1157'
versions = ['Python 3.0']

@gvanrossum
Copy link
Member Author

======================================================================
ERROR: test_ftp (main.OtherNetworkTests)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "Lib/test/test_urllib2net.py", line 173, in test_ftp
    self._test_urls(urls, self._extra_handlers())
  File "Lib/test/test_urllib2net.py", line 242, in _test_urls
    f = urllib2.urlopen(url, req)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib2.py", line
122, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib2.py", line
378, in open
    response = self._open(req, data)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib2.py", line
396, in _open
    '_open', req)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib2.py", line
356, in _call_chain
    result = func(*args)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib2.py", line
1271, in ftp_open
    fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib2.py", line
1316, in connect_ftp
    self.cache[key] = ftpwrapper(user, passwd, host, port, dirs, timeout)
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib.py", line
783, in __init__
    self.init()
  File "/usr/local/google/home/guido/python/py3k/Lib/urllib.py", line
790, in init
    self.ftp.login(self.user, self.passwd)
  File "/usr/local/google/home/guido/python/py3k/Lib/ftplib.py", line
372, in login
    if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
  File "/usr/local/google/home/guido/python/py3k/Lib/ftplib.py", line
242, in sendcmd
    return self.getresp()
  File "/usr/local/google/home/guido/python/py3k/Lib/ftplib.py", line
208, in getresp
    resp = self.getmultiline()
  File "/usr/local/google/home/guido/python/py3k/Lib/ftplib.py", line
198, in getmultiline
    nextline = self.getline()
  File "/usr/local/google/home/guido/python/py3k/Lib/ftplib.py", line
181, in getline
    line = self.file.readline()
  File "/usr/local/google/home/guido/python/py3k/Lib/io.py", line 1319,
in readline
    readahead, pending = self._read_chunk()
  File "/usr/local/google/home/guido/python/py3k/Lib/io.py", line 1123,
in _read_chunk
    pending = self._decoder.decode(readahead, not readahead)
  File
"/usr/local/google/home/guido/python/py3k/Lib/encodings/ascii.py", line
26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 47:
ordinal not in range(128)

@jafo jafo mannequin added the tests Tests in the Lib/test dir label Sep 18, 2007
@jafo jafo mannequin assigned jafo and nobody and unassigned jafo Sep 18, 2007
@tiran
Copy link
Member

tiran commented Nov 9, 2007

The test is passing for me on Ubuntu and Windows.

@tiran tiran closed this as completed Nov 9, 2007
@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
Projects
None yet
Development

No branches or pull requests

2 participants