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.

Author shlomif
Recipients pitrou, r.david.murray, shlomif
Date 2013-06-11.13:07:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370956055.07.0.930976246482.issue18188@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I don't understand the issue in questioned - it's too wordy and unclear. I don't know how to do the debugging in question - please guide me. I should note that after I do «unset PYTHONDONTWRITEBYTECODE» then all tests pass except for test_ftp.py, which gives me this. However, I don't see the bdist_rpm anywhere in the output. Was it skipped? If so, how, where and why?

[QUOTE]

======================================================================
error: test_ftp (test.test_urllib2net.othernetworktests)
----------------------------------------------------------------------
traceback (most recent call last):
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/urllib/request.py", line 2307, in retrfile
    self.ftp.cwd(file)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/ftplib.py", line 591, in cwd
    return self.voidcmd(cmd)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/ftplib.py", line 264, in voidcmd
    return self.voidresp()
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/ftplib.py", line 238, in voidresp
    resp = self.getresp()
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/ftplib.py", line 233, in getresp
    raise error_perm(resp)
ftplib.error_perm: 550 failed to change directory.

during handling of the above exception, another exception occurred:

traceback (most recent call last):
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/test/test_urllib2net.py", line 112, in test_ftp
    self._test_urls(urls, self._extra_handlers())
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/test/test_urllib2net.py", line 218, in _test_urls
    f = urlopen(url, req, timeout)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/test/test_urllib2net.py", line 33, in wrapped
    return _retry_thrice(func, exc, *args, **kwargs)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/test/test_urllib2net.py", line 23, in _retry_thrice
    return func(*args, **kwargs)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/urllib/request.py", line 469, in open
    response = self._open(req, data)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/urllib/request.py", line 487, in _open
    '_open', req)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/urllib/request.py", line 447, in _call_chain
    result = func(*args)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/urllib/request.py", line 1464, in ftp_open
    fp, retrlen = fw.retrfile(file, type)
  file "/home/shlomif/download/unpack/prog/python/python-3.3.2/lib/urllib/request.py", line 2309, in retrfile
    raise urlerror('ftp error: %d' % reason) from reason
typeerror: %d format: a number is required, not error_perm

----------------------------------------------------------------------
ran 15 tests in 14.820s

[/QUOTE]

Also see:

https://bugs.mageia.org/show_bug.cgi?id=9395

Regards,

-- Shlomi Fish
History
Date User Action Args
2013-06-11 13:07:35shlomifsetrecipients: + shlomif, pitrou, r.david.murray
2013-06-11 13:07:35shlomifsetmessageid: <1370956055.07.0.930976246482.issue18188@psf.upfronthosting.co.za>
2013-06-11 13:07:35shlomiflinkissue18188 messages
2013-06-11 13:07:34shlomifcreate