Hey guys,
I'm working on a Solaris build of Werkzeug. The test suite is failing, and
I'm interested to see if any of these are known problems:
test_shared_data_middleware (werkzeug.testsuite.wsgi.WSGIUtilsTestCase) ...
ERROR
test_shareddatamiddleware_get_file_loader
(werkzeug.testsuite.wsgi.WSGIUtilsTestCase) ... ok
======================================================================
ERROR: test_serving (werkzeug.testsuite.serving.ServingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/testsuite/serving.py",
line 43, in new_func
return f(*args, **kwargs)
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/testsuite/serving.py",
line 79, in test_serving
rv = urlopen('http://%s/?foo=bar&baz=blah' % addr).read()
File "/opt/csw/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/opt/csw/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/opt/csw/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/csw/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/opt/csw/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/opt/csw/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 503: Service Unavailable
======================================================================
ERROR: test_shared_data_middleware
(werkzeug.testsuite.wsgi.WSGIUtilsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/testsuite/wsgi.py",
line 47, in test_shared_data_middleware
app_iter, status, headers = run_wsgi_app(app, create_environ(p))
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/test.py",
line 854, in run_wsgi_app
app_iter = app(environ, start_response)
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/wsgi.py",
line 558, in __call__
cleaned_path = cleaned_path.encode(sys.getfilesystemencoding())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-7:
ordinal not in range(128)
======================================================================
FAIL: test_broken_app (werkzeug.testsuite.serving.ServingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/testsuite/serving.py",
line 43, in new_func
return f(*args, **kwargs)
File
"/home/maciej/src/opencsw/pkg/lang-python/werkzeug/trunk/work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/werkzeug/testsuite/serving.py",
line 94, in test_broken_app
assert b'Internal Server Error' in rv
AssertionError
----------------------------------------------------------------------
Ran 322 tests in 9.221s
FAILED (failures=1, errors=2)
gmake[1]: ***
[test-work/solaris9-sparc/build-isa-sparcv8-python_version-2_6/Werkzeug-0.9.4/setup.py]
Error 1
One problem is sys.getfilesystemencoding(), which on Solaris returns:
> python
Python 2.6.8 (unknown, Aug 8 2013, 09:50:35) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getfilesystemencoding()
'646'
...which refers to https://en.wikipedia.org/wiki/ISO/IEC_646. I think that
cleaned_path happens to be non-encodable to ASCII.
The other two problems I have no idea about. Have you seen this problem
before? Do you have any tips where I should look?
Maciej
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/groups/opt_out.