[Python-modules-team] Bug#880838: python-restless FTBFS with python 3.6 as only supported version

Adrian Bunk bunk at debian.org
Sat Nov 4 23:29:18 UTC 2017


Source: python-restless
Version: 2.0.3-1
Severity: serious

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-restless.html

...
======================================================================
ERROR: test_as_detail (tests.test_pyr.PyramidResourceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/tests/test_pyr.py", line 81, in test_as_detail
    resp = detail_endpoint(req)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/pyr.py", line 27, in _wrapper
    return inst.handle('detail', name)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 290, in handle
    return self.build_response(serialized, status=status)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/pyr.py", line 37, in build_response
    resp = Response(data, status_code=status, content_type=content_type)
  File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
    "You cannot set the body to a text value without a "
TypeError: You cannot set the body to a text value without a charset

======================================================================
ERROR: test_as_list (tests.test_pyr.PyramidResourceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/tests/test_pyr.py", line 54, in test_as_list
    resp = list_endpoint(req)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 140, in _wrapper
    return inst.handle(view_type, *args, **kwargs)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 290, in handle
    return self.build_response(serialized, status=status)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/pyr.py", line 37, in build_response
    resp = Response(data, status_code=status, content_type=content_type)
  File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
    "You cannot set the body to a text value without a "
TypeError: You cannot set the body to a text value without a charset

======================================================================
ERROR: test_create (tests.test_pyr.PyramidResourceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/tests/test_pyr.py", line 109, in test_create
    resp = self.res.handle('list')
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 290, in handle
    return self.build_response(serialized, status=status)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/pyr.py", line 37, in build_response
    resp = Response(data, status_code=status, content_type=content_type)
  File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
    "You cannot set the body to a text value without a "
TypeError: You cannot set the body to a text value without a charset

======================================================================
ERROR: test_handle_not_authenticated (tests.test_pyr.PyramidResourceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 280, in handle
    raise Unauthorized()
restless.exceptions.Unauthorized: Unauthorized.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/tests/test_pyr.py", line 93, in test_handle_not_authenticated
    resp = self.res.handle('list')
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 287, in handle
    return self.handle_error(err)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 306, in handle_error
    return self.build_error(err)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/resources.py", line 211, in build_error
    return self.build_response(body, status=status)
  File "/build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build/restless/pyr.py", line 37, in build_response
    resp = Response(data, status_code=status, content_type=content_type)
  File "/usr/lib/python3/dist-packages/webob/response.py", line 310, in __init__
    "You cannot set the body to a text value without a "
TypeError: You cannot set the body to a text value without a charset

----------------------------------------------------------------------
Ran 87 tests in 0.588s

FAILED (errors=4, skipped=5)
sys:1: ResourceWarning: unclosed file <_io.FileIO name=5 mode='wb' closefd=True>
sys:1: ResourceWarning: unclosed file <_io.FileIO name=4 mode='rb' closefd=True>
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /build/1st/python-restless-2.0.3/.pybuild/pythonX.Y_3.6/build; python3.6 -m unittest discover -v 
dh_auto_test: pybuild --test -i python{version} -p 3.6 returned exit code 13
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 25



More information about the Python-modules-team mailing list