Test suite with Python 3.3 triggers 4 errors.
(All tests pass with Python 2.6, 2.7 and 3.2.)
$ nosetests-3.3
...
======================================================================
ERROR: test_expires_cookies (tests.test_app.TestCookies)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.3/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/tmp/WebTest-2.0.5/tests/test_app.py", line 241, in test_expires_cookies
app.get('/')
File "/tmp/WebTest-2.0.5/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "/tmp/WebTest-2.0.5/webtest/app.py", line 494, in do_request
utils._RequestCookieAdapter(req))
File "/usr/lib64/python3.3/http/cookiejar.py", line 1647, in extract_cookies
if self._policy.set_ok(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 931, in set_ok
if not fn(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 952, in set_ok_verifiability
if request.unverifiable and is_third_party(request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 707, in is_third_party
if not domain_match(req_host, reach(request.origin_req_host)):
AttributeError: '_RequestCookieAdapter' object has no attribute 'origin_req_host'
======================================================================
ERROR: test_preserves_cookies (tests.test_app.TestCookies)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/WebTest-2.0.5/tests/test_app.py", line 172, in test_preserves_cookies
res = app.get('/')
File "/tmp/WebTest-2.0.5/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "/tmp/WebTest-2.0.5/webtest/app.py", line 494, in do_request
utils._RequestCookieAdapter(req))
File "/usr/lib64/python3.3/http/cookiejar.py", line 1647, in extract_cookies
if self._policy.set_ok(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 931, in set_ok
if not fn(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 952, in set_ok_verifiability
if request.unverifiable and is_third_party(request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 707, in is_third_party
if not domain_match(req_host, reach(request.origin_req_host)):
AttributeError: '_RequestCookieAdapter' object has no attribute 'origin_req_host'
======================================================================
ERROR: test_secure_cookies (tests.test_app.TestCookies)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/WebTest-2.0.5/tests/test_app.py", line 207, in test_secure_cookies
res = app.get('https://localhost/')
File "/tmp/WebTest-2.0.5/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "/tmp/WebTest-2.0.5/webtest/app.py", line 494, in do_request
utils._RequestCookieAdapter(req))
File "/usr/lib64/python3.3/http/cookiejar.py", line 1647, in extract_cookies
if self._policy.set_ok(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 931, in set_ok
if not fn(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 952, in set_ok_verifiability
if request.unverifiable and is_third_party(request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 707, in is_third_party
if not domain_match(req_host, reach(request.origin_req_host)):
AttributeError: '_RequestCookieAdapter' object has no attribute 'origin_req_host'
======================================================================
ERROR: test_follow_with_cookie (tests.test_response.TestFollow)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/WebTest-2.0.5/tests/test_response.py", line 382, in test_follow_with_cookie
app.get('/?header-set-cookie=foo=bar')
File "/tmp/WebTest-2.0.5/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "/tmp/WebTest-2.0.5/webtest/app.py", line 494, in do_request
utils._RequestCookieAdapter(req))
File "/usr/lib64/python3.3/http/cookiejar.py", line 1647, in extract_cookies
if self._policy.set_ok(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 931, in set_ok
if not fn(cookie, request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 952, in set_ok_verifiability
if request.unverifiable and is_third_party(request):
File "/usr/lib64/python3.3/http/cookiejar.py", line 707, in is_third_party
if not domain_match(req_host, reach(request.origin_req_host)):
AttributeError: '_RequestCookieAdapter' object has no attribute 'origin_req_host'
Name Stmts Miss Cover Missing
------------------------------------------------
webtest 24 0 100%
webtest.app 263 1 99% 146
webtest.compat 18 2 89% 34-35
webtest.debugapp 63 1 98% 35
webtest.ext 3 0 100%
webtest.forms 288 0 100%
webtest.http 87 3 97% 89-91
webtest.lint 203 1 99% 251
webtest.response 256 14 95% 270-286, 382, 389, 539
webtest.sel 6 0 100%
webtest.utils 91 10 89% 88, 107, 118, 121, 124, 127, 130, 135, 138, 153
------------------------------------------------
TOTAL 1302 32 98%
----------------------------------------------------------------------
Ran 166 tests in 11.006s
FAILED (errors=4)