Bug#739077: python-werkzeug: FTBFS: testsuite failure with UnicodeEncodeError
On Sat, Feb 15, 2014 at 09:37:18AM -0800, Daniel Schepler wrote: > == > ERROR: test_shared_data_middleware (werkzeug.testsuite.wsgi.WSGIUtilsTestCase) > -- > Traceback (most recent call last): > File "/tmp/buildd/python-werkzeug-0.9.4+dfsg/werkzeug/testsuite/wsgi.py", > line 47, in test_shared_data_middleware > app_iter, status, headers = run_wsgi_app(app, create_environ(p)) > File "/tmp/buildd/python-werkzeug-0.9.4+dfsg/werkzeug/test.py", line 854, > in run_wsgi_app > app_iter = app(environ, start_response) > File "/tmp/buildd/python-werkzeug-0.9.4+dfsg/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) Here cleaned_path == '/foo/äöü' and sys.getfilesystemencoding() in the C locale returns 'ANSI_X3.4-1968'. Tests work in C.UTF-8 or other locales. -- WBR, wRAR signature.asc Description: Digital signature
Bug#739077: python-werkzeug: FTBFS: testsuite failure with UnicodeEncodeError
Source: python-werkzeug Version: 0.9.4+dfsg-1.1 Severity: serious >From my pbuilder build log: ... test_responder (werkzeug.testsuite.wsgi.WSGIUtilsTestCase) ... ok test_shared_data_middleware (werkzeug.testsuite.wsgi.WSGIUtilsTestCase) ... ERROR test_shareddatamiddleware_get_file_loader (werkzeug.testsuite.wsgi.WSGIUtilsTestCase) ... ok == ERROR: test_shared_data_middleware (werkzeug.testsuite.wsgi.WSGIUtilsTestCase) -- Traceback (most recent call last): File "/tmp/buildd/python-werkzeug-0.9.4+dfsg/werkzeug/testsuite/wsgi.py", line 47, in test_shared_data_middleware app_iter, status, headers = run_wsgi_app(app, create_environ(p)) File "/tmp/buildd/python-werkzeug-0.9.4+dfsg/werkzeug/test.py", line 854, in run_wsgi_app app_iter = app(environ, start_response) File "/tmp/buildd/python-werkzeug-0.9.4+dfsg/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) -- Ran 332 tests in 3.351s FAILED (errors=1) E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1: python2.7 setup.py test dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit code 13 + kill 7736 make[1]: *** [override_dh_auto_test] Error 13 make[1]: Leaving directory `/tmp/buildd/python-werkzeug-0.9.4+dfsg' make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 -- Daniel Schepler -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org