Package: src:python-ibm-cloud-sdk-core
Version: 3.16.7-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
python-ibm-cloud-sdk-core's autopkg tests fail with Python 3.12:
[...]
304s autopkgtest [18:43:06]: test upstream: [-----------------------
305s ============================= test session starts
==============================
305s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
305s rootdir: /tmp/autopkgtest.ySmGIq/autopkgtest_tmp
305s collected 140 items / 41 deselected / 99 selected
305s
305s test/test_api_exception.py .
[ 1%]
305s test/test_authenticator.py .
[ 2%]
305s test/test_base_service.py ......................................
[ 40%]
305s test/test_basic_authenticator.py ..
[ 42%]
305s test/test_bearer_authenticator.py ..
[ 44%]
305s test/test_container_authenticator.py .....
[ 49%]
305s test/test_container_token_manager.py ..
[ 51%]
305s test/test_cp4d_authenticator.py .....
[ 56%]
305s test/test_cp4d_token_manager.py .
[ 57%]
305s test/test_detailed_response.py ..
[ 59%]
306s test/test_jwt_token_manager.py ...F.
[ 64%]
306s test/test_no_auth_authenticator.py .
[ 65%]
306s test/test_token_manager.py F....
[ 70%]
306s test/test_utils.py ................
[ 86%]
306s test/test_vpc_instance_authenticator.py ....
[ 90%]
306s test/test_vpc_instance_token_manager.py .........
[100%]
306s
306s =================================== FAILURES
===================================
306s ______________________ test_abstract_class_instantiation
_______________________
306s
306s def test_abstract_class_instantiation():
306s with pytest.raises(TypeError) as err:
306s JWTTokenManager(None)
306s > assert str(err.value).startswith("Can't instantiate
abstract class JWTTokenManager with abstract")
306s E assert False
306s E + where False = <built-in method startswith of str object
at 0x7f6be09cc2b0>("Can't instantiate abstract class JWTTokenManager
with abstract")
306s E + where <built-in method startswith of str object at
0x7f6be09cc2b0> = "Can't instantiate abstract class JWTTokenManager
without an implementation for abstract method 'request_token'".startswith
306s E + where "Can't instantiate abstract class
JWTTokenManager without an implementation for abstract method
'request_token'" = str(TypeError("Can't instantiate abstract class
JWTTokenManager without an implementation for abstract method
'request_token'"))
306s E + where TypeError("Can't instantiate abstract class
JWTTokenManager without an implementation for abstract method
'request_token'") = <ExceptionInfo TypeError("Can't instantiate abstract
class JWTTokenManager without an implementation for abstract method
'request_token'") tblen=1>.value
306s
306s test/test_jwt_token_manager.py:102: AssertionError
306s ______________________ test_abstract_class_instantiation
_______________________
306s
306s def test_abstract_class_instantiation():
306s with pytest.raises(TypeError) as err:
306s TokenManager(None)
306s > assert (
306s str(err.value) == "Can't instantiate abstract class "
306s "TokenManager with abstract methods "
306s "_save_token_info, "
306s "request_token"
306s )
306s E assert "Can't instan...equest_token'" == "Can't
instan...request_token"
306s E Skipping 40 identical leading characters in diff, use -v
to show
306s E - nager with abstract methods _save_token_info, request_token
306s E + nager without an implementation for abstract methods
'_save_token_info', 'request_token'
306s E ? +++++++++++++++++++++++++ +
+ + +
306s
306s test/test_token_manager.py:39: AssertionError
306s =============================== warnings summary
===============================
306s ../../../usr/lib/python3/dist-packages/dateutil/tz/tz.py:37
306s /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated
and scheduled for removal in a future version. Use timezone-aware
objects to represent datetimes in UTC:
datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
306s EPOCH = datetime.datetime.utcfromtimestamp(0)
306s
306s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
306s =========================== short test summary info
============================
306s FAILED
test/test_jwt_token_manager.py::test_abstract_class_instantiation - as...
306s FAILED
test/test_token_manager.py::test_abstract_class_instantiation - assert...
306s ============ 2 failed, 97 passed, 41 deselected, 1 warning in 2.45s
============