Package: src:cloudkitty
Version: 19.0.0-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

cloudkitty's autopkg tests fail with Python 3.12:

[...]
345s + PYTHON=python3.12 stestr run --parallel --subunit cloudkitty\.tests\.(?!(.*collectors\.test_prometheus.*|.*storage\.v1\.test_hybrid_storage.*|.*test_hacking\.HackingTestCase\.test_logging_with_tuple_argument.*|storage\.v2\.test_storage_unit\.StorageUnitTest\.test_get_total_one_scope_one_period.*|test_storage_state\.StateManagerTest\.test_get_state_does_update_columns|test_storage_state\.StateManagerTest\.test_get_state_no_column_update|.*storage\.v1\.test_storage\.StorageTotalTest\.test_get_total_without_filter_but_timestamp.*))
345s + subunit2pyunit
345s WARNING: --no-py2 is deprecated, and always on.
345s ===> Testing with python (python3)
346s /usr/lib/python3/dist-packages/pytz/__init__.py:30: SyntaxWarning: invalid escape sequence '\s'
346s   match = re.match("^#\s*version\s*([0-9a-z]*)\s*$", line)
347s
347s =========================
347s Failures during discovery
347s =========================
347s --- import errors ---
347s Failed to import test module: cloudkitty.tests
347s Traceback (most recent call last):
347s File "/usr/lib/python3.12/unittest/loader.py", line 427, in _find_test_path
347s     package = self._get_module_from_name(name)
347s               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
347s File "/usr/lib/python3.12/unittest/loader.py", line 337, in _get_module_from_name
347s     __import__(name)
347s File "/tmp/autopkgtest.6aTqLp/build.uWH/src/cloudkitty/tests/__init__.py", line 28, in <module>
347s     from cloudkitty import rating
347s   File "/tmp/autopkgtest.6aTqLp/build.
347s ----------------------------------------------------------------------
347s Ran 0 tests in 1.767s
347s
347s OK
347s uWH/src/cloudkitty/rating/__init__.py", line 23, in <module>
347s     from cloudkitty import messaging
347s File "/tmp/autopkgtest.6aTqLp/build.uWH/src/cloudkitty/messaging.py", line 17, in <module>
347s     import oslo_messaging
347s File "/usr/lib/python3/dist-packages/oslo_messaging/__init__.py", line 17, in <module>
347s     from .notify import *
347s File "/usr/lib/python3/dist-packages/oslo_messaging/notify/__init__.py", line 28, in <module>
347s     from .listener import *
347s File "/usr/lib/python3/dist-packages/oslo_messaging/notify/listener.py", line 140, in <module>
347s     from oslo_messaging import server as msg_server
347s File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 27, in <module>
347s     from oslo_service import service
347s File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 35, in <module>
347s     import eventlet
347s File "/usr/lib/python3/dist-packages/eventlet/__init__.py", line 17, in <module>
347s     from eventlet import convenience
347s File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
347s     from eventlet.green import socket
347s File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in <module>
347s     from eventlet.support import greendns
347s File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 45, in <module>
347s     from eventlet.green import ssl
347s File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 25, in <module>
347s     _original_wrap_socket = __ssl.wrap_socket
347s                             ^^^^^^^^^^^^^^^^^
347s AttributeError: module 'ssl' has no attribute 'wrap_socket'
347s
347s ================================================================================ 347s The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
347s + stestr slowest
348s autopkgtest [18:24:23]: test unittests: -----------------------]
348s autopkgtest [18:24:23]: test unittests: - - - - - - - - - - results - - - - - - - - - -
348s unittests            FAIL non-zero exit status 3

Reply via email to