On 11/12/2014 10:42 AM, Andrey Rahmatullin wrote:
> On Wed, Nov 12, 2014 at 11:22:55AM +0100, Lucas Nussbaum wrote:
>>> =================================== FAILURES 
>>> ===================================
>>> _________________________________ test_httpcat 
>>> _________________________________
>>> Traceback (most recent call last):
>>>   File "/«BUILDDIR»/python-dugong-3.3+dfsg/test/test_examples.py", line 53, 
>>> in test_httpcat
>>>     subprocess.check_call(cmdline, stdout=devnull)
>>>   File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
>>>     raise CalledProcessError(retcode, cmd)
>>> subprocess.CalledProcessError: Command '['/usr/bin/python3.4', 
>>> '/«BUILDDIR»/python-dugong-3.3+dfsg/test/../examples/httpcat.py', 
>>> 'http://docs.oracle.com/javaee/7/firstcup/doc/creating-example.htm']' 
>>> returned non-zero exit status 1
>>> ----------------------------- Captured stderr call 
>>> -----------------------------
>>> 301 Moved Permanently
> If it accesses the network it's wrong anyway.

It tries to access the network, and if it fails, the test is skipped.

In this case, it seems that the first attempt to connect succeeded with
status 200, so the test was run. Maybe urllib.request implicitly follows
the 301, I'll look into that.


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to