0s autopkgtest [10:56:27]: starting date and time: 2025-11-17 10:56:27+0000 0s autopkgtest [10:56:27]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [10:56:27]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.shqc49mb/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade aiotankerkoenig --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-6.secgroup --name adt-resolute-i386-aiotankerkoenig-20251117-105627-juju-7f2275-prod-proposed-migration-environment-2-5192edf8-5372-4397-9182-525bbe779540 --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 7s Creating nova instance adt-resolute-i386-aiotankerkoenig-20251117-105627-juju-7f2275-prod-proposed-migration-environment-2-5192edf8-5372-4397-9182-525bbe779540 from image adt/ubuntu-resolute-amd64-server-20251117.img (UUID 9762b0cc-7c5b-4854-acd5-cc74ad0de8c6)... 66s autopkgtest [10:57:33]: testbed dpkg architecture: amd64 66s autopkgtest [10:57:33]: testbed apt version: 3.1.11 66s autopkgtest [10:57:33]: @@@@@@@@@@@@@@@@@@@@ test bed setup 66s autopkgtest [10:57:33]: testbed release detected to be: None 67s autopkgtest [10:57:34]: updating testbed package index (apt update) 67s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 67s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 67s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 67s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 67s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [881 kB] 67s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [80.3 kB] 67s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 68s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 68s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [158 kB] 68s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [118 kB] 68s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [3128 B] 68s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [64.6 kB] 68s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3744 B] 68s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 68s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [282 kB] 68s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [614 kB] 68s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [22.2 kB] 68s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [13.4 kB] 68s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [6516 B] 68s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [680 B] 70s Fetched 2367 kB in 1s (2494 kB/s) 71s Reading package lists... 71s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 71s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 71s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 71s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 72s Reading package lists... 72s Reading package lists... 72s Building dependency tree... 72s Reading state information... 72s Calculating upgrade... 72s The following packages will be upgraded: 72s libpython3-stdlib python3 python3-minimal usbutils 72s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 72s Need to get 146 kB of archives. 72s After this operation, 0 B of additional disk space will be used. 72s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 72s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 72s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 72s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 usbutils amd64 1:019-1 [83.9 kB] 73s dpkg-preconfigure: unable to re-open stdin: No such file or directory 73s Fetched 146 kB in 0s (13.2 MB/s) 73s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 83372 files and directories currently installed.) 73s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 73s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 73s Setting up python3-minimal (3.13.7-2) ... 73s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 83372 files and directories currently installed.) 73s Preparing to unpack .../python3_3.13.7-2_amd64.deb ... 73s running python pre-rtupdate hooks for python3.13... 73s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 73s Preparing to unpack .../libpython3-stdlib_3.13.7-2_amd64.deb ... 73s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 73s Preparing to unpack .../usbutils_1%3a019-1_amd64.deb ... 73s Unpacking usbutils (1:019-1) over (1:018-2) ... 73s Setting up usbutils (1:019-1) ... 73s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 73s Setting up python3 (3.13.7-2) ... 73s running python rtupdate hooks for python3.13... 73s running python post-rtupdate hooks for python3.13... 73s Processing triggers for man-db (2.13.1-1) ... 74s autopkgtest [10:57:41]: upgrading testbed (apt dist-upgrade and autopurge) 74s Reading package lists... 74s Building dependency tree... 74s Reading state information... 74s Calculating upgrade... 75s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 75s Reading package lists... 75s Building dependency tree... 75s Reading state information... 75s Solving dependencies... 75s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 77s autopkgtest [10:57:44]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:00:33 UTC 2025 77s autopkgtest [10:57:44]: @@@@@@@@@@@@@@@@@@@@ apt-source aiotankerkoenig 79s Get:1 http://ftpmaster.internal/ubuntu resolute/universe aiotankerkoenig 0.5.0-1 (dsc) [2523 B] 79s Get:2 http://ftpmaster.internal/ubuntu resolute/universe aiotankerkoenig 0.5.0-1 (tar) [80.9 kB] 79s Get:3 http://ftpmaster.internal/ubuntu resolute/universe aiotankerkoenig 0.5.0-1 (diff) [2532 B] 79s gpgv: Signature made Sat Feb 8 07:29:43 2025 UTC 79s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 79s gpgv: Can't check signature: No public key 79s dpkg-source: warning: cannot verify inline signature for ./aiotankerkoenig_0.5.0-1.dsc: no acceptable signature found 79s autopkgtest [10:57:46]: testing package aiotankerkoenig version 0.5.0-1 79s autopkgtest [10:57:46]: build not needed 79s autopkgtest [10:57:46]: test run-tests: preparing testbed 79s Reading package lists... 79s Building dependency tree... 79s Reading state information... 80s Solving dependencies... 80s The following NEW packages will be installed: 80s libpython3.14-minimal libpython3.14-stdlib python3-aiohappyeyeballs 80s python3-aiohttp python3-aioresponses python3-aiosignal 80s python3-aiotankerkoenig python3-all python3-async-generator 80s python3-async-timeout python3-frozenlist python3-iniconfig python3-mashumaro 80s python3-msgpack python3-multidict python3-orjson python3-pluggy 80s python3-propcache python3-pytest python3-pytest-asyncio python3-syrupy 80s python3-tomli-w python3-yarl python3.14 python3.14-minimal 80s 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. 80s Need to get 8208 kB of archives. 80s After this operation, 31.6 MB of additional disk space will be used. 80s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.0-4 [906 kB] 80s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.0-4 [2559 kB] 80s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.0-4 [2397 kB] 80s Get:4 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-aiohappyeyeballs all 2.6.1-2 [11.1 kB] 80s Get:5 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-multidict amd64 6.4.3-1build1 [69.2 kB] 80s Get:6 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-propcache amd64 0.3.1-1build1 [54.5 kB] 80s Get:7 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-yarl amd64 1.22.0-1 [98.2 kB] 80s Get:8 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-async-timeout all 5.0.1-1 [6830 B] 80s Get:9 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-frozenlist amd64 1.8.0-1 [53.5 kB] 80s Get:10 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-aiosignal all 1.4.0-1 [5628 B] 80s Get:11 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-aiohttp amd64 3.11.16-1 [367 kB] 80s Get:12 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-aioresponses all 0.7.6-3 [11.0 kB] 80s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-msgpack amd64 1.0.3-3build5 [114 kB] 80s Get:14 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-orjson amd64 3.11.3-2 [279 kB] 81s Get:15 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-tomli-w all 1.2.0-1 [8120 B] 81s Get:16 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-mashumaro all 3.16-1 [89.7 kB] 81s Get:17 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-aiotankerkoenig all 0.5.0-1 [10.1 kB] 81s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.0-4 [805 kB] 81s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-all amd64 3.13.7-2 [890 B] 81s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-async-generator all 1.10-7 [18.1 kB] 81s Get:21 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-1 [6840 B] 81s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-1 [21.0 kB] 81s Get:23 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 8.3.5-2 [252 kB] 81s Get:24 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest-asyncio all 0.25.1-1 [17.0 kB] 81s Get:25 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-syrupy all 5.0.0-1 [47.9 kB] 81s Fetched 8208 kB in 1s (8165 kB/s) 81s Selecting previously unselected package libpython3.14-minimal:amd64. 81s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 83372 files and directories currently installed.) 81s Preparing to unpack .../00-libpython3.14-minimal_3.14.0-4_amd64.deb ... 81s Unpacking libpython3.14-minimal:amd64 (3.14.0-4) ... 81s Selecting previously unselected package python3.14-minimal. 81s Preparing to unpack .../01-python3.14-minimal_3.14.0-4_amd64.deb ... 81s Unpacking python3.14-minimal (3.14.0-4) ... 81s Selecting previously unselected package libpython3.14-stdlib:amd64. 81s Preparing to unpack .../02-libpython3.14-stdlib_3.14.0-4_amd64.deb ... 81s Unpacking libpython3.14-stdlib:amd64 (3.14.0-4) ... 81s Selecting previously unselected package python3-aiohappyeyeballs. 81s Preparing to unpack .../03-python3-aiohappyeyeballs_2.6.1-2_all.deb ... 81s Unpacking python3-aiohappyeyeballs (2.6.1-2) ... 81s Selecting previously unselected package python3-multidict. 81s Preparing to unpack .../04-python3-multidict_6.4.3-1build1_amd64.deb ... 81s Unpacking python3-multidict (6.4.3-1build1) ... 81s Selecting previously unselected package python3-propcache. 81s Preparing to unpack .../05-python3-propcache_0.3.1-1build1_amd64.deb ... 81s Unpacking python3-propcache (0.3.1-1build1) ... 81s Selecting previously unselected package python3-yarl. 81s Preparing to unpack .../06-python3-yarl_1.22.0-1_amd64.deb ... 81s Unpacking python3-yarl (1.22.0-1) ... 81s Selecting previously unselected package python3-async-timeout. 81s Preparing to unpack .../07-python3-async-timeout_5.0.1-1_all.deb ... 81s Unpacking python3-async-timeout (5.0.1-1) ... 81s Selecting previously unselected package python3-frozenlist. 81s Preparing to unpack .../08-python3-frozenlist_1.8.0-1_amd64.deb ... 81s Unpacking python3-frozenlist (1.8.0-1) ... 81s Selecting previously unselected package python3-aiosignal. 81s Preparing to unpack .../09-python3-aiosignal_1.4.0-1_all.deb ... 81s Unpacking python3-aiosignal (1.4.0-1) ... 81s Selecting previously unselected package python3-aiohttp. 81s Preparing to unpack .../10-python3-aiohttp_3.11.16-1_amd64.deb ... 81s Unpacking python3-aiohttp (3.11.16-1) ... 81s Selecting previously unselected package python3-aioresponses. 81s Preparing to unpack .../11-python3-aioresponses_0.7.6-3_all.deb ... 81s Unpacking python3-aioresponses (0.7.6-3) ... 81s Selecting previously unselected package python3-msgpack. 81s Preparing to unpack .../12-python3-msgpack_1.0.3-3build5_amd64.deb ... 81s Unpacking python3-msgpack (1.0.3-3build5) ... 81s Selecting previously unselected package python3-orjson. 81s Preparing to unpack .../13-python3-orjson_3.11.3-2_amd64.deb ... 81s Unpacking python3-orjson (3.11.3-2) ... 81s Selecting previously unselected package python3-tomli-w. 81s Preparing to unpack .../14-python3-tomli-w_1.2.0-1_all.deb ... 81s Unpacking python3-tomli-w (1.2.0-1) ... 81s Selecting previously unselected package python3-mashumaro. 81s Preparing to unpack .../15-python3-mashumaro_3.16-1_all.deb ... 81s Unpacking python3-mashumaro (3.16-1) ... 81s Selecting previously unselected package python3-aiotankerkoenig. 81s Preparing to unpack .../16-python3-aiotankerkoenig_0.5.0-1_all.deb ... 81s Unpacking python3-aiotankerkoenig (0.5.0-1) ... 81s Selecting previously unselected package python3.14. 81s Preparing to unpack .../17-python3.14_3.14.0-4_amd64.deb ... 81s Unpacking python3.14 (3.14.0-4) ... 81s Selecting previously unselected package python3-all. 81s Preparing to unpack .../18-python3-all_3.13.7-2_amd64.deb ... 81s Unpacking python3-all (3.13.7-2) ... 81s Selecting previously unselected package python3-async-generator. 81s Preparing to unpack .../19-python3-async-generator_1.10-7_all.deb ... 81s Unpacking python3-async-generator (1.10-7) ... 81s Selecting previously unselected package python3-iniconfig. 81s Preparing to unpack .../20-python3-iniconfig_2.1.0-1_all.deb ... 81s Unpacking python3-iniconfig (2.1.0-1) ... 81s Selecting previously unselected package python3-pluggy. 81s Preparing to unpack .../21-python3-pluggy_1.6.0-1_all.deb ... 81s Unpacking python3-pluggy (1.6.0-1) ... 81s Selecting previously unselected package python3-pytest. 81s Preparing to unpack .../22-python3-pytest_8.3.5-2_all.deb ... 81s Unpacking python3-pytest (8.3.5-2) ... 81s Selecting previously unselected package python3-pytest-asyncio. 81s Preparing to unpack .../23-python3-pytest-asyncio_0.25.1-1_all.deb ... 81s Unpacking python3-pytest-asyncio (0.25.1-1) ... 81s Selecting previously unselected package python3-syrupy. 81s Preparing to unpack .../24-python3-syrupy_5.0.0-1_all.deb ... 81s Unpacking python3-syrupy (5.0.0-1) ... 81s Setting up python3-iniconfig (2.1.0-1) ... 82s Setting up python3-orjson (3.11.3-2) ... 82s Setting up python3-async-generator (1.10-7) ... 82s Setting up libpython3.14-minimal:amd64 (3.14.0-4) ... 82s Setting up python3-multidict (6.4.3-1build1) ... 82s Setting up python3-frozenlist (1.8.0-1) ... 82s Setting up python3-aiosignal (1.4.0-1) ... 82s Setting up python3-async-timeout (5.0.1-1) ... 82s Setting up python3-aiohappyeyeballs (2.6.1-2) ... 82s Setting up python3-pluggy (1.6.0-1) ... 83s Setting up python3-propcache (0.3.1-1build1) ... 83s Setting up python3-msgpack (1.0.3-3build5) ... 83s Setting up python3-tomli-w (1.2.0-1) ... 83s Setting up python3-yarl (1.22.0-1) ... 83s Setting up python3.14-minimal (3.14.0-4) ... 84s Setting up python3-mashumaro (3.16-1) ... 84s Setting up libpython3.14-stdlib:amd64 (3.14.0-4) ... 84s Setting up python3-pytest (8.3.5-2) ... 84s Setting up python3-syrupy (5.0.0-1) ... 84s Setting up python3-aiohttp (3.11.16-1) ... 85s Setting up python3-aiotankerkoenig (0.5.0-1) ... 85s Setting up python3-pytest-asyncio (0.25.1-1) ... 85s Setting up python3.14 (3.14.0-4) ... 86s Setting up python3-aioresponses (0.7.6-3) ... 86s Setting up python3-all (3.13.7-2) ... 86s Processing triggers for man-db (2.13.1-1) ... 86s Processing triggers for systemd (257.9-0ubuntu2) ... 87s autopkgtest [10:57:54]: test environment configured for cross building 87s autopkgtest [10:57:54]: test run-tests: [----------------------- 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:13: DeprecationWarning: 'asyncio.AbstractEventLoopPolicy' is deprecated and slated for removal in Python 3.16 88s from asyncio import AbstractEventLoop, AbstractEventLoopPolicy 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. 88s The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" 88s 88s warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) 88s ============================= test session starts ============================== 88s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 -- /usr/bin/python3.14 88s cachedir: .pytest_cache 88s rootdir: /tmp/autopkgtest.iQYmEQ/autopkgtest_tmp 88s plugins: syrupy-5.0.0, asyncio-0.25.1, typeguard-4.4.2 88s asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None 88s collecting ... collected 12 items 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response PASSED [ 8%] 88s tests/test_aiotankerkoenig.py::test_non_200_response PASSED [ 16%] 88s tests/test_aiotankerkoenig.py::test_api_rate_limit PASSED [ 25%] 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] FAILED [ 33%] 88s 88s =================================== FAILURES =================================== 88s ____________ test_invalid_apikey_response[API-Key existiert nicht] _____________ 88s 88s responses = 88s tankerkoenig_client = Tankerkoenig(api_key='abc123', session=, _close_session=False) 88s message = 'API-Key existiert nicht' 88s 88s @pytest.mark.parametrize( 88s "message", 88s [ 88s "API-Key existiert nicht", 88s "APIKey existiert nicht.", 88s ], 88s ) 88s async def test_invalid_apikey_response( 88s responses: aioresponses, 88s tankerkoenig_client: Tankerkoenig, 88s message: str, 88s ) -> None: 88s """Test handling of invalid api key response.""" 88s responses.get( 88s f"{TANKERKOENIG_ENDPOINT}/json/detail.php?apikey=abc123&id=1", 88s status=200, 88s body='{"status": "error", "ok": false, "message": "' + message + '"}', 88s ) 88s with pytest.raises(TankerkoenigInvalidKeyError): 88s > await tankerkoenig_client.station_details(station_id="1") 88s 88s tests/test_aiotankerkoenig.py:87: 88s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 88s /usr/lib/python3/dist-packages/aiotankerkoenig/aiotankerkoenig.py:121: in station_details 88s return StationDetailResponse.from_json(result).station 88s :3: in __mashumaro_from_json__ 88s ??? 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:584: in add_unpack_method 88s self._add_unpack_method_lines(method_name) 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:489: in _add_unpack_method_lines 88s ).build( 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1330: in build 88s unpacked_value = UnpackerRegistry.get( 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get 88s expr = packer(spec) 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:731: in unpack_dataclass 88s builder.add_unpack_method() 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:584: in add_unpack_method 88s self._add_unpack_method_lines(method_name) 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:489: in _add_unpack_method_lines 88s ).build( 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1330: in build 88s unpacked_value = UnpackerRegistry.get( 88s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 88s 88s self = Registry(_registry=[, , , ]) 88s spec = ValueSpec(type=str | None, origin_type=, expression='value', builder= Expression: 88s if is_annotated(spec.type): 88s spec.annotated_type = spec.builder.get_real_type( 88s spec.field_ctx.name, spec.type 88s ) 88s spec.type = get_type_origin(spec.type) 88s spec.type = spec.builder.get_real_type(spec.field_ctx.name, spec.type) 88s spec.builder.add_type_modules(spec.type) 88s for packer in self._registry: 88s expr = packer(spec) 88s if expr is not None: 88s return expr 88s > raise UnserializableField( 88s spec.field_ctx.name, spec.type, spec.builder.cls 88s ) 88s E mashumaro.exceptions.UnserializableField: Field "brand" of type Optional[str] in Station is not serializable 88s 88s /usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:225: UnserializableField 88s =============================== warnings summary =============================== 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:1177: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s return asyncio.get_event_loop_policy() 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:856: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s _restore_event_loop_policy(asyncio.get_event_loop_policy()), 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:755: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s old_loop_policy = asyncio.get_event_loop_policy() 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:760: DeprecationWarning: 'asyncio.set_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s asyncio.set_event_loop_policy(policy) 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:1151: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s loop = asyncio.get_event_loop_policy().new_event_loop() 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:871: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s policy = asyncio.get_event_loop_policy() 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:777: DeprecationWarning: 'asyncio.set_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s asyncio.set_event_loop_policy(old_loop_policy) 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:924: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s policy = asyncio.get_event_loop_policy() 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:948: DeprecationWarning: 'asyncio.set_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s asyncio.set_event_loop_policy(previous_policy) 88s 88s tests/test_aiotankerkoenig.py::test_unexpected_server_response 88s tests/test_aiotankerkoenig.py::test_non_200_response 88s tests/test_aiotankerkoenig.py::test_api_rate_limit 88s tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:960: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 88s policy = asyncio.get_event_loop_policy() 88s 88s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 88s =========================== short test summary info ============================ 88s FAILED tests/test_aiotankerkoenig.py::test_invalid_apikey_response[API-Key existiert nicht] 88s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 88s =================== 1 failed, 3 passed, 37 warnings in 0.11s =================== 88s autopkgtest [10:57:55]: test run-tests: -----------------------] 89s autopkgtest [10:57:56]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 89s run-tests FAIL non-zero exit status 1 89s autopkgtest [10:57:56]: @@@@@@@@@@@@@@@@@@@@ summary 89s run-tests FAIL non-zero exit status 1