[Debian-med-packaging] Bug#972332: falcon fails it's tests with python3.9
Matthias Klose
doko at debian.org
Fri Oct 16 10:04:58 BST 2020
Package: src:falcon
Version: 1.4.1-2
Severity: serious
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.9
falcon fails it's tests with python3.9:
[...]
=================================== FAILURES ===================================
______________________ test_msgpack[application/msgpack] _______________________
media_type = 'application/msgpack'
@pytest.mark.parametrize('media_type', [
('application/msgpack'),
('application/msgpack; charset=utf-8'),
('application/x-msgpack'),
])
def test_msgpack(media_type):
client = create_client({
> 'application/msgpack': media.MessagePackHandler(),
'application/x-msgpack': media.MessagePackHandler(),
})
tests/test_request_media.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
_______________ test_msgpack[application/msgpack; charset=utf-8] _______________
media_type = 'application/msgpack; charset=utf-8'
@pytest.mark.parametrize('media_type', [
('application/msgpack'),
('application/msgpack; charset=utf-8'),
('application/x-msgpack'),
])
def test_msgpack(media_type):
client = create_client({
> 'application/msgpack': media.MessagePackHandler(),
'application/x-msgpack': media.MessagePackHandler(),
})
tests/test_request_media.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
_____________________ test_msgpack[application/x-msgpack] ______________________
media_type = 'application/x-msgpack'
@pytest.mark.parametrize('media_type', [
('application/msgpack'),
('application/msgpack; charset=utf-8'),
('application/x-msgpack'),
])
def test_msgpack(media_type):
client = create_client({
> 'application/msgpack': media.MessagePackHandler(),
'application/x-msgpack': media.MessagePackHandler(),
})
tests/test_request_media.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
_____________________________ test_invalid_msgpack _____________________________
def test_invalid_msgpack():
> client = create_client({'application/msgpack': media.MessagePackHandler()})
tests/test_request_media.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
______________________ test_msgpack[application/msgpack] _______________________
media_type = 'application/msgpack'
@pytest.mark.parametrize('media_type', [
(falcon.MEDIA_MSGPACK),
('application/msgpack; charset=utf-8'),
('application/x-msgpack'),
])
def test_msgpack(media_type):
client = create_client({
> 'application/msgpack': media.MessagePackHandler(),
'application/x-msgpack': media.MessagePackHandler(),
})
tests/test_response_media.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
_______________ test_msgpack[application/msgpack; charset=utf-8] _______________
media_type = 'application/msgpack; charset=utf-8'
@pytest.mark.parametrize('media_type', [
(falcon.MEDIA_MSGPACK),
('application/msgpack; charset=utf-8'),
('application/x-msgpack'),
])
def test_msgpack(media_type):
client = create_client({
> 'application/msgpack': media.MessagePackHandler(),
'application/x-msgpack': media.MessagePackHandler(),
})
tests/test_response_media.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
_____________________ test_msgpack[application/x-msgpack] ______________________
media_type = 'application/x-msgpack'
@pytest.mark.parametrize('media_type', [
(falcon.MEDIA_MSGPACK),
('application/msgpack; charset=utf-8'),
('application/x-msgpack'),
])
def test_msgpack(media_type):
client = create_client({
> 'application/msgpack': media.MessagePackHandler(),
'application/x-msgpack': media.MessagePackHandler(),
})
tests/test_response_media.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
falcon/media/msgpack.py:31: in __init__
self.packer = msgpack.Packer(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: __init__() got an unexpected keyword argument 'encoding'
msgpack/_packer.pyx:118: TypeError
=============================== warnings summary ===============================
tests/test_sinks.py:126
/<<PKGBUILDDIR>>/tests/test_sinks.py:126: DeprecationWarning: invalid escape
sequence \d
client.app.add_sink(sink, '/books/\d+')
tests/test_http_method_routing.py::TestHttpMethodRouting::test_report
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'REPORT'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_methods_not_allowed_complex
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'CONNECT'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_methods_not_allowed_complex
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'CHECKIN'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_methods_not_allowed_complex
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'CHECKOUT'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_methods_not_allowed_complex
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'UNCHECKIN'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_methods_not_allowed_complex
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'UPDATE'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_methods_not_allowed_complex
tests/test_http_method_routing.py::TestHttpMethodRouting::test_method_not_allowed_with_param
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'VERSION-CONTROL'
warnings.warn(
tests/test_http_method_routing.py::TestHttpMethodRouting::test_bogus_method
/usr/lib/python3.8/wsgiref/validate.py:341: WSGIWarning: Unknown
REQUEST_METHOD: 'l0P'
warnings.warn(
tests/test_httperror.py::TestHTTPError::test_custom_old_error_serializer
/<<PKGBUILDDIR>>/tests/test_httperror.py:355: YAMLLoadWarning: calling
yaml.load() without Loader=... is deprecated, as the default Loader is unsafe.
Please read https://msg.pyyaml.org/load for full details.
actual_doc = deserializer(response.content.decode('utf-8'))
tests/test_httperror.py::TestHTTPError::test_custom_new_error_serializer
/<<PKGBUILDDIR>>/tests/test_httperror.py:411: YAMLLoadWarning: calling
yaml.load() without Loader=... is deprecated, as the default Loader is unsafe.
Please read https://msg.pyyaml.org/load for full details.
actual_doc = deserializer(response.content.decode('utf-8'))
-- Docs: https://docs.pytest.org/en/latest/warnings.html
========= 7 failed, 884 passed, 4 skipped, 18 warnings in 7.83 seconds =========
More information about the Debian-med-packaging
mailing list