On 04/26/2012 11:09 AM, Ian Bicking wrote:
> What are the exceptions you are getting locally? The one that seems to
> fail consistently is where it requests
>
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu and this somehow
> succeeds. I can't imagine why it would though. Then there's one other
> failure on PyPy with timeouts, which might very well be a PyPy-specific
> problem.
>
Here's the output on my own system using a new 2.6 virtualenv:
"""
[chrism@thinko webob]$ env26/bin/python setup.py nosetests
running nosetests
running egg_info
writing requirements to WebOb.egg-info/requires.txt
writing WebOb.egg-info/PKG-INFO
writing top-level names to WebOb.egg-info/top_level.txt
writing dependency_links to WebOb.egg-info/dependency_links.txt
reading manifest file 'WebOb.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
writing manifest file 'WebOb.egg-info/SOURCES.txt'
running build_ext
.........................................................................................F.F...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: tests.test_client.test_client
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/chrism/projects/webob/env26/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File "/home/chrism/projects/webob/tests/test_client.py", line 35, in
test_client
assert resp.status_code == 502, resp.status
AssertionError: 200 OK
assert resp.status_code == 502, resp.status
<Request at 0x1b45b90 GET
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu> =
Request.blank('
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu')
resp = <Request at 0x1b45b90 GET
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu>.send(None)
>> assert resp.status_code == 502, resp.status
-------------------- >> begin captured logging << --------------------
tests.test_in_wsgiref: DEBUG: server started on
http://localhost:48375
tests.test_in_wsgiref: DEBUG: shutting server down
tests.test_in_wsgiref: DEBUG: server stopped
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: tests.test_client.test_client_slow
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/chrism/projects/webob/env26/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File "/home/chrism/projects/webob/tests/test_client.py", line 66, in
test_client_slow
assert resp.status_code == 504, resp.status
AssertionError: 200 OK
<Request at 0x1b458d0 GET
http://localhost:50949> =
Request.blank(<tests.test_in_wsgiref.QuietServer instance at 0x1b4b098>.url)
<Request at 0x1b458d0 GET
http://localhost:50949>.environ['webob.client.timeout'] = 0.1
resp = <Request at 0x1b458d0 GET
http://localhost:50949>.send(None)
>> assert resp.status_code == 504, resp.status
-------------------- >> begin captured logging << --------------------
tests.test_in_wsgiref: DEBUG: server started on
http://localhost:50949
tests.test_in_wsgiref: DEBUG: shutting server down
tests.test_in_wsgiref: DEBUG: server stopped
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 967 tests in 6.093s
FAILED (failures=2)
"""
I only get one of those failures with a new 2.7 virtualenv however:
"""
[chrism@thinko webob]$ env27/bin/python setup.py nosetests
running nosetests
running egg_info
writing requirements to WebOb.egg-info/requires.txt
writing WebOb.egg-info/PKG-INFO
writing top-level names to WebOb.egg-info/top_level.txt
writing dependency_links to WebOb.egg-info/dependency_links.txt
reading manifest file 'WebOb.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
writing manifest file 'WebOb.egg-info/SOURCES.txt'
running build_ext
.........................................................................................F.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: tests.test_client.test_client
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/chrism/projects/webob/env27/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File "/home/chrism/projects/webob/tests/test_client.py", line 35, in
test_client
assert resp.status_code == 502, resp.status
AssertionError: 200 OK
assert resp.status_code == 502, resp.status
<Request at 0x1c87f10 GET
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu> =
Request.blank('
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu')
resp = <Request at 0x1c87f10 GET
http://laksjdfkajwoeifknslkasdflkjasdflaksjdf.eu>.send(None)
>> assert resp.status_code == 502, resp.status
-------------------- >> begin captured logging << --------------------
tests.test_in_wsgiref: DEBUG: server started on
http://localhost:34794
tests.test_in_wsgiref: DEBUG: shutting server down
tests.test_in_wsgiref: DEBUG: server stopped
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 967 tests in 4.047s
FAILED (failures=1)
"""