0s autopkgtest [17:13:04]: starting date and time: 2024-12-27 17:13:04+0000 0s autopkgtest [17:13:04]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [17:13:04]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.5774o_kg/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade python-foobot-async --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.12.8-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-s390x-19.secgroup --name adt-plucky-s390x-python-foobot-async-20241227-171304-juju-7f2275-prod-proposed-migration-environment-2-10eacf1b-a49f-4378-aec7-ebde90199eb4 --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 97s autopkgtest [17:14:41]: testbed dpkg architecture: s390x 97s autopkgtest [17:14:41]: testbed apt version: 2.9.18 97s autopkgtest [17:14:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup 98s autopkgtest [17:14:42]: testbed release detected to be: None 98s autopkgtest [17:14:42]: updating testbed package index (apt update) 99s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 99s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 99s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 99s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 99s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB] 99s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [620 kB] 99s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [56.0 kB] 99s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9708 B] 99s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [57.3 kB] 99s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted s390x Packages [756 B] 99s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [469 kB] 99s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [4260 B] 99s Fetched 1303 kB in 1s (1546 kB/s) 100s Reading package lists... 100s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s Calculating upgrade... 101s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 101s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 101s autopkgtest [17:14:45]: upgrading testbed (apt dist-upgrade and autopurge) 101s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 102s Starting 2 pkgProblemResolver with broken count: 0 102s Done 102s Entering ResolveByKeep 102s 102s The following packages will be upgraded: 102s libpython3-stdlib python3 python3-minimal 102s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 102s Need to get 61.5 kB of archives. 102s After this operation, 0 B of additional disk space will be used. 102s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-minimal s390x 3.12.8-1 [27.5 kB] 102s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3 s390x 3.12.8-1 [23.9 kB] 102s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libpython3-stdlib s390x 3.12.8-1 [10.1 kB] 102s Fetched 61.5 kB in 0s (232 kB/s) 103s (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 ... 55491 files and directories currently installed.) 103s Preparing to unpack .../python3-minimal_3.12.8-1_s390x.deb ... 103s Unpacking python3-minimal (3.12.8-1) over (3.12.7-1) ... 103s Setting up python3-minimal (3.12.8-1) ... 103s (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 ... 55491 files and directories currently installed.) 103s Preparing to unpack .../python3_3.12.8-1_s390x.deb ... 103s Unpacking python3 (3.12.8-1) over (3.12.7-1) ... 103s Preparing to unpack .../libpython3-stdlib_3.12.8-1_s390x.deb ... 103s Unpacking libpython3-stdlib:s390x (3.12.8-1) over (3.12.7-1) ... 103s Setting up libpython3-stdlib:s390x (3.12.8-1) ... 103s Setting up python3 (3.12.8-1) ... 103s Processing triggers for man-db (2.13.0-1) ... 104s Reading package lists... 104s Building dependency tree... 104s Reading state information... 104s Starting pkgProblemResolver with broken count: 0 104s Starting 2 pkgProblemResolver with broken count: 0 104s Done 104s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 106s autopkgtest [17:14:50]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 107s autopkgtest [17:14:51]: @@@@@@@@@@@@@@@@@@@@ apt-source python-foobot-async 108s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-foobot-async 1.0.1-2 (dsc) [2325 B] 108s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-foobot-async 1.0.1-2 (tar) [33.6 kB] 108s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-foobot-async 1.0.1-2 (diff) [2056 B] 108s gpgv: Signature made Mon Sep 9 12:25:32 2024 UTC 108s gpgv: using RSA key A0B1A9F3508956130E7A425CD416AD15AC6B43FE 108s gpgv: Can't check signature: No public key 108s dpkg-source: warning: cannot verify inline signature for ./python-foobot-async_1.0.1-2.dsc: no acceptable signature found 108s autopkgtest [17:14:52]: testing package python-foobot-async version 1.0.1-2 108s autopkgtest [17:14:52]: build not needed 109s autopkgtest [17:14:53]: test pybuild-autopkgtest: preparing testbed 109s Reading package lists... 109s Building dependency tree... 109s Reading state information... 109s Starting pkgProblemResolver with broken count: 0 109s Starting 2 pkgProblemResolver with broken count: 0 109s Done 109s The following NEW packages will be installed: 109s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 109s cpp-14-s390x-linux-gnu cpp-s390x-linux-gnu debhelper debugedit dh-autoreconf 109s dh-python dh-strip-nondeterminism dwz g++ g++-14 g++-14-s390x-linux-gnu 109s g++-s390x-linux-gnu gcc gcc-14 gcc-14-s390x-linux-gnu gcc-s390x-linux-gnu 109s gettext intltool-debian libarchive-zip-perl libasan8 libcc1-0 109s libdebhelper-perl libfile-stripnondeterminism-perl libgcc-14-dev libgomp1 109s libisl23 libitm1 libmpc3 libpython3.13-minimal libpython3.13-stdlib 109s libstdc++-14-dev libtool libubsan1 m4 openstack-pkg-tools po-debconf 109s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python3-aiohttp 109s python3-aioresponses python3-aiosignal python3-all python3-async-timeout 109s python3-build python3-foobot-async python3-frozenlist python3-iniconfig 109s python3-installer python3-multidict python3-packaging python3-pip 109s python3-pluggy python3-pyproject-hooks python3-pytest python3-toml 109s python3-wheel python3-yarl python3.13 python3.13-minimal 109s 0 upgraded, 66 newly installed, 0 to remove and 0 not upgraded. 109s Need to get 61.9 MB of archives. 109s After this operation, 206 MB of additional disk space will be used. 109s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-minimal s390x 3.13.1-2 [880 kB] 110s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-minimal s390x 3.13.1-2 [2364 kB] 110s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x m4 s390x 1.4.19-4build1 [256 kB] 110s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x autoconf all 2.72-3 [382 kB] 110s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x autotools-dev all 20220109.1 [44.9 kB] 110s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x automake all 1:1.16.5-1.3ubuntu1 [558 kB] 110s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x autopoint all 0.22.5-3 [616 kB] 110s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libisl23 s390x 0.27-1 [704 kB] 110s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libmpc3 s390x 1.3.1-1build2 [57.8 kB] 110s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-14-s390x-linux-gnu s390x 14.2.0-11ubuntu1 [9575 kB] 110s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-14 s390x 14.2.0-11ubuntu1 [1028 B] 110s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-s390x-linux-gnu s390x 4:14.1.0-2ubuntu1 [5452 B] 110s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x cpp s390x 4:14.1.0-2ubuntu1 [22.4 kB] 110s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x libcc1-0 s390x 14.2.0-11ubuntu1 [50.7 kB] 110s Get:15 http://ftpmaster.internal/ubuntu plucky/main s390x libgomp1 s390x 14.2.0-11ubuntu1 [151 kB] 110s Get:16 http://ftpmaster.internal/ubuntu plucky/main s390x libitm1 s390x 14.2.0-11ubuntu1 [30.9 kB] 110s Get:17 http://ftpmaster.internal/ubuntu plucky/main s390x libasan8 s390x 14.2.0-11ubuntu1 [2964 kB] 110s Get:18 http://ftpmaster.internal/ubuntu plucky/main s390x libubsan1 s390x 14.2.0-11ubuntu1 [1184 kB] 110s Get:19 http://ftpmaster.internal/ubuntu plucky/main s390x libgcc-14-dev s390x 14.2.0-11ubuntu1 [1036 kB] 110s Get:20 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-14-s390x-linux-gnu s390x 14.2.0-11ubuntu1 [18.7 MB] 111s Get:21 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-14 s390x 14.2.0-11ubuntu1 [521 kB] 111s Get:22 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-s390x-linux-gnu s390x 4:14.1.0-2ubuntu1 [1204 B] 111s Get:23 http://ftpmaster.internal/ubuntu plucky/main s390x gcc s390x 4:14.1.0-2ubuntu1 [4996 B] 111s Get:24 http://ftpmaster.internal/ubuntu plucky/main s390x libstdc++-14-dev s390x 14.2.0-11ubuntu1 [2610 kB] 111s Get:25 http://ftpmaster.internal/ubuntu plucky/main s390x g++-14-s390x-linux-gnu s390x 14.2.0-11ubuntu1 [11.0 MB] 111s Get:26 http://ftpmaster.internal/ubuntu plucky/main s390x g++-14 s390x 14.2.0-11ubuntu1 [20.1 kB] 111s Get:27 http://ftpmaster.internal/ubuntu plucky/main s390x g++-s390x-linux-gnu s390x 4:14.1.0-2ubuntu1 [956 B] 111s Get:28 http://ftpmaster.internal/ubuntu plucky/main s390x g++ s390x 4:14.1.0-2ubuntu1 [1076 B] 111s Get:29 http://ftpmaster.internal/ubuntu plucky/main s390x build-essential s390x 12.10ubuntu1 [4930 B] 111s Get:30 http://ftpmaster.internal/ubuntu plucky/main s390x libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 111s Get:31 http://ftpmaster.internal/ubuntu plucky/main s390x libtool all 2.4.7-8 [166 kB] 111s Get:32 http://ftpmaster.internal/ubuntu plucky/main s390x dh-autoreconf all 20 [16.1 kB] 111s Get:33 http://ftpmaster.internal/ubuntu plucky/main s390x libarchive-zip-perl all 1.68-1 [90.2 kB] 111s Get:34 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 111s Get:35 http://ftpmaster.internal/ubuntu plucky/main s390x dh-strip-nondeterminism all 1.14.0-1 [5058 B] 111s Get:36 http://ftpmaster.internal/ubuntu plucky/main s390x debugedit s390x 1:5.1-1 [49.9 kB] 111s Get:37 http://ftpmaster.internal/ubuntu plucky/main s390x dwz s390x 0.15-1build6 [122 kB] 111s Get:38 http://ftpmaster.internal/ubuntu plucky/main s390x gettext s390x 0.22.5-3 [997 kB] 111s Get:39 http://ftpmaster.internal/ubuntu plucky/main s390x intltool-debian all 0.35.0+20060710.6 [23.2 kB] 111s Get:40 http://ftpmaster.internal/ubuntu plucky/main s390x po-debconf all 1.0.21+nmu1 [233 kB] 111s Get:41 http://ftpmaster.internal/ubuntu plucky/main s390x debhelper all 13.20ubuntu1 [893 kB] 111s Get:42 http://ftpmaster.internal/ubuntu plucky/universe s390x dh-python all 6.20241217 [117 kB] 111s Get:43 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-stdlib s390x 3.13.1-2 [2074 kB] 112s Get:44 http://ftpmaster.internal/ubuntu plucky/universe s390x pybuild-plugin-autopkgtest all 6.20241217 [1746 B] 112s Get:45 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.2-1 [51.5 kB] 112s Get:46 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 112s Get:47 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-toml all 0.10.2-1 [16.5 kB] 112s Get:48 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-wheel all 0.45.1-1 [57.7 kB] 112s Get:49 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-build all 1.2.2-1 [31.0 kB] 112s Get:50 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 112s Get:51 http://ftpmaster.internal/ubuntu plucky/universe s390x pybuild-plugin-pyproject all 6.20241217 [1730 B] 112s Get:52 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-multidict s390x 6.1.0-1build1 [38.4 kB] 112s Get:53 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-yarl s390x 1.9.4-1 [72.8 kB] 112s Get:54 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-async-timeout all 5.0.1-1 [6830 B] 112s Get:55 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-frozenlist s390x 1.5.0-1build1 [64.2 kB] 112s Get:56 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-aiosignal all 1.3.1-1 [5172 B] 112s Get:57 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-aiohttp s390x 3.9.5-1 [294 kB] 112s Get:58 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-aioresponses all 0.7.6-2 [10.9 kB] 112s Get:59 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13 s390x 3.13.1-2 [729 kB] 112s Get:60 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-all s390x 3.12.8-1 [894 B] 112s Get:61 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-foobot-async all 1.0.1-2 [5386 B] 112s Get:62 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 112s Get:63 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pip all 24.3.1+dfsg-1 [1404 kB] 112s Get:64 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 112s Get:65 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.3-1 [251 kB] 112s Get:66 http://ftpmaster.internal/ubuntu plucky/universe s390x openstack-pkg-tools all 123ubuntu2 [94.5 kB] 112s Fetched 61.9 MB in 3s (23.8 MB/s) 112s Selecting previously unselected package libpython3.13-minimal:s390x. 112s (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 ... 55491 files and directories currently installed.) 112s Preparing to unpack .../00-libpython3.13-minimal_3.13.1-2_s390x.deb ... 112s Unpacking libpython3.13-minimal:s390x (3.13.1-2) ... 112s Selecting previously unselected package python3.13-minimal. 112s Preparing to unpack .../01-python3.13-minimal_3.13.1-2_s390x.deb ... 112s Unpacking python3.13-minimal (3.13.1-2) ... 112s Selecting previously unselected package m4. 112s Preparing to unpack .../02-m4_1.4.19-4build1_s390x.deb ... 112s Unpacking m4 (1.4.19-4build1) ... 112s Selecting previously unselected package autoconf. 112s Preparing to unpack .../03-autoconf_2.72-3_all.deb ... 112s Unpacking autoconf (2.72-3) ... 112s Selecting previously unselected package autotools-dev. 112s Preparing to unpack .../04-autotools-dev_20220109.1_all.deb ... 112s Unpacking autotools-dev (20220109.1) ... 112s Selecting previously unselected package automake. 112s Preparing to unpack .../05-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 112s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 112s Selecting previously unselected package autopoint. 112s Preparing to unpack .../06-autopoint_0.22.5-3_all.deb ... 112s Unpacking autopoint (0.22.5-3) ... 112s Selecting previously unselected package libisl23:s390x. 112s Preparing to unpack .../07-libisl23_0.27-1_s390x.deb ... 112s Unpacking libisl23:s390x (0.27-1) ... 112s Selecting previously unselected package libmpc3:s390x. 112s Preparing to unpack .../08-libmpc3_1.3.1-1build2_s390x.deb ... 112s Unpacking libmpc3:s390x (1.3.1-1build2) ... 112s Selecting previously unselected package cpp-14-s390x-linux-gnu. 112s Preparing to unpack .../09-cpp-14-s390x-linux-gnu_14.2.0-11ubuntu1_s390x.deb ... 112s Unpacking cpp-14-s390x-linux-gnu (14.2.0-11ubuntu1) ... 112s Selecting previously unselected package cpp-14. 112s Preparing to unpack .../10-cpp-14_14.2.0-11ubuntu1_s390x.deb ... 112s Unpacking cpp-14 (14.2.0-11ubuntu1) ... 112s Selecting previously unselected package cpp-s390x-linux-gnu. 112s Preparing to unpack .../11-cpp-s390x-linux-gnu_4%3a14.1.0-2ubuntu1_s390x.deb ... 112s Unpacking cpp-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 112s Selecting previously unselected package cpp. 112s Preparing to unpack .../12-cpp_4%3a14.1.0-2ubuntu1_s390x.deb ... 112s Unpacking cpp (4:14.1.0-2ubuntu1) ... 113s Selecting previously unselected package libcc1-0:s390x. 113s Preparing to unpack .../13-libcc1-0_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libcc1-0:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package libgomp1:s390x. 113s Preparing to unpack .../14-libgomp1_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libgomp1:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package libitm1:s390x. 113s Preparing to unpack .../15-libitm1_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libitm1:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package libasan8:s390x. 113s Preparing to unpack .../16-libasan8_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libasan8:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package libubsan1:s390x. 113s Preparing to unpack .../17-libubsan1_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libubsan1:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package libgcc-14-dev:s390x. 113s Preparing to unpack .../18-libgcc-14-dev_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libgcc-14-dev:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package gcc-14-s390x-linux-gnu. 113s Preparing to unpack .../19-gcc-14-s390x-linux-gnu_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking gcc-14-s390x-linux-gnu (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package gcc-14. 113s Preparing to unpack .../20-gcc-14_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking gcc-14 (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package gcc-s390x-linux-gnu. 113s Preparing to unpack .../21-gcc-s390x-linux-gnu_4%3a14.1.0-2ubuntu1_s390x.deb ... 113s Unpacking gcc-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 113s Selecting previously unselected package gcc. 113s Preparing to unpack .../22-gcc_4%3a14.1.0-2ubuntu1_s390x.deb ... 113s Unpacking gcc (4:14.1.0-2ubuntu1) ... 113s Selecting previously unselected package libstdc++-14-dev:s390x. 113s Preparing to unpack .../23-libstdc++-14-dev_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking libstdc++-14-dev:s390x (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package g++-14-s390x-linux-gnu. 113s Preparing to unpack .../24-g++-14-s390x-linux-gnu_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking g++-14-s390x-linux-gnu (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package g++-14. 113s Preparing to unpack .../25-g++-14_14.2.0-11ubuntu1_s390x.deb ... 113s Unpacking g++-14 (14.2.0-11ubuntu1) ... 113s Selecting previously unselected package g++-s390x-linux-gnu. 113s Preparing to unpack .../26-g++-s390x-linux-gnu_4%3a14.1.0-2ubuntu1_s390x.deb ... 113s Unpacking g++-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 113s Selecting previously unselected package g++. 113s Preparing to unpack .../27-g++_4%3a14.1.0-2ubuntu1_s390x.deb ... 113s Unpacking g++ (4:14.1.0-2ubuntu1) ... 113s Selecting previously unselected package build-essential. 113s Preparing to unpack .../28-build-essential_12.10ubuntu1_s390x.deb ... 113s Unpacking build-essential (12.10ubuntu1) ... 113s Selecting previously unselected package libdebhelper-perl. 113s Preparing to unpack .../29-libdebhelper-perl_13.20ubuntu1_all.deb ... 113s Unpacking libdebhelper-perl (13.20ubuntu1) ... 113s Selecting previously unselected package libtool. 113s Preparing to unpack .../30-libtool_2.4.7-8_all.deb ... 113s Unpacking libtool (2.4.7-8) ... 113s Selecting previously unselected package dh-autoreconf. 113s Preparing to unpack .../31-dh-autoreconf_20_all.deb ... 113s Unpacking dh-autoreconf (20) ... 113s Selecting previously unselected package libarchive-zip-perl. 113s Preparing to unpack .../32-libarchive-zip-perl_1.68-1_all.deb ... 113s Unpacking libarchive-zip-perl (1.68-1) ... 113s Selecting previously unselected package libfile-stripnondeterminism-perl. 113s Preparing to unpack .../33-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 113s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 113s Selecting previously unselected package dh-strip-nondeterminism. 113s Preparing to unpack .../34-dh-strip-nondeterminism_1.14.0-1_all.deb ... 113s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 113s Selecting previously unselected package debugedit. 113s Preparing to unpack .../35-debugedit_1%3a5.1-1_s390x.deb ... 113s Unpacking debugedit (1:5.1-1) ... 113s Selecting previously unselected package dwz. 113s Preparing to unpack .../36-dwz_0.15-1build6_s390x.deb ... 113s Unpacking dwz (0.15-1build6) ... 113s Selecting previously unselected package gettext. 113s Preparing to unpack .../37-gettext_0.22.5-3_s390x.deb ... 113s Unpacking gettext (0.22.5-3) ... 113s Selecting previously unselected package intltool-debian. 113s Preparing to unpack .../38-intltool-debian_0.35.0+20060710.6_all.deb ... 113s Unpacking intltool-debian (0.35.0+20060710.6) ... 113s Selecting previously unselected package po-debconf. 113s Preparing to unpack .../39-po-debconf_1.0.21+nmu1_all.deb ... 113s Unpacking po-debconf (1.0.21+nmu1) ... 113s Selecting previously unselected package debhelper. 113s Preparing to unpack .../40-debhelper_13.20ubuntu1_all.deb ... 113s Unpacking debhelper (13.20ubuntu1) ... 113s Selecting previously unselected package dh-python. 113s Preparing to unpack .../41-dh-python_6.20241217_all.deb ... 113s Unpacking dh-python (6.20241217) ... 113s Selecting previously unselected package libpython3.13-stdlib:s390x. 113s Preparing to unpack .../42-libpython3.13-stdlib_3.13.1-2_s390x.deb ... 113s Unpacking libpython3.13-stdlib:s390x (3.13.1-2) ... 114s Selecting previously unselected package pybuild-plugin-autopkgtest. 114s Preparing to unpack .../43-pybuild-plugin-autopkgtest_6.20241217_all.deb ... 114s Unpacking pybuild-plugin-autopkgtest (6.20241217) ... 114s Selecting previously unselected package python3-packaging. 114s Preparing to unpack .../44-python3-packaging_24.2-1_all.deb ... 114s Unpacking python3-packaging (24.2-1) ... 114s Selecting previously unselected package python3-pyproject-hooks. 114s Preparing to unpack .../45-python3-pyproject-hooks_1.2.0-1_all.deb ... 114s Unpacking python3-pyproject-hooks (1.2.0-1) ... 114s Selecting previously unselected package python3-toml. 114s Preparing to unpack .../46-python3-toml_0.10.2-1_all.deb ... 114s Unpacking python3-toml (0.10.2-1) ... 114s Selecting previously unselected package python3-wheel. 114s Preparing to unpack .../47-python3-wheel_0.45.1-1_all.deb ... 114s Unpacking python3-wheel (0.45.1-1) ... 114s Selecting previously unselected package python3-build. 114s Preparing to unpack .../48-python3-build_1.2.2-1_all.deb ... 114s Unpacking python3-build (1.2.2-1) ... 114s Selecting previously unselected package python3-installer. 114s Preparing to unpack .../49-python3-installer_0.7.0+dfsg1-3_all.deb ... 114s Unpacking python3-installer (0.7.0+dfsg1-3) ... 114s Selecting previously unselected package pybuild-plugin-pyproject. 114s Preparing to unpack .../50-pybuild-plugin-pyproject_6.20241217_all.deb ... 114s Unpacking pybuild-plugin-pyproject (6.20241217) ... 114s Selecting previously unselected package python3-multidict. 114s Preparing to unpack .../51-python3-multidict_6.1.0-1build1_s390x.deb ... 114s Unpacking python3-multidict (6.1.0-1build1) ... 114s Selecting previously unselected package python3-yarl. 114s Preparing to unpack .../52-python3-yarl_1.9.4-1_s390x.deb ... 114s Unpacking python3-yarl (1.9.4-1) ... 114s Selecting previously unselected package python3-async-timeout. 114s Preparing to unpack .../53-python3-async-timeout_5.0.1-1_all.deb ... 114s Unpacking python3-async-timeout (5.0.1-1) ... 114s Selecting previously unselected package python3-frozenlist. 114s Preparing to unpack .../54-python3-frozenlist_1.5.0-1build1_s390x.deb ... 114s Unpacking python3-frozenlist (1.5.0-1build1) ... 114s Selecting previously unselected package python3-aiosignal. 114s Preparing to unpack .../55-python3-aiosignal_1.3.1-1_all.deb ... 114s Unpacking python3-aiosignal (1.3.1-1) ... 114s Selecting previously unselected package python3-aiohttp. 114s Preparing to unpack .../56-python3-aiohttp_3.9.5-1_s390x.deb ... 114s Unpacking python3-aiohttp (3.9.5-1) ... 114s Selecting previously unselected package python3-aioresponses. 114s Preparing to unpack .../57-python3-aioresponses_0.7.6-2_all.deb ... 114s Unpacking python3-aioresponses (0.7.6-2) ... 114s Selecting previously unselected package python3.13. 114s Preparing to unpack .../58-python3.13_3.13.1-2_s390x.deb ... 114s Unpacking python3.13 (3.13.1-2) ... 114s Selecting previously unselected package python3-all. 114s Preparing to unpack .../59-python3-all_3.12.8-1_s390x.deb ... 114s Unpacking python3-all (3.12.8-1) ... 114s Selecting previously unselected package python3-foobot-async. 114s Preparing to unpack .../60-python3-foobot-async_1.0.1-2_all.deb ... 114s Unpacking python3-foobot-async (1.0.1-2) ... 114s Selecting previously unselected package python3-iniconfig. 114s Preparing to unpack .../61-python3-iniconfig_1.1.1-2_all.deb ... 114s Unpacking python3-iniconfig (1.1.1-2) ... 114s Selecting previously unselected package python3-pip. 114s Preparing to unpack .../62-python3-pip_24.3.1+dfsg-1_all.deb ... 114s Unpacking python3-pip (24.3.1+dfsg-1) ... 114s Selecting previously unselected package python3-pluggy. 114s Preparing to unpack .../63-python3-pluggy_1.5.0-1_all.deb ... 114s Unpacking python3-pluggy (1.5.0-1) ... 114s Selecting previously unselected package python3-pytest. 114s Preparing to unpack .../64-python3-pytest_8.3.3-1_all.deb ... 114s Unpacking python3-pytest (8.3.3-1) ... 114s Selecting previously unselected package openstack-pkg-tools. 114s Preparing to unpack .../65-openstack-pkg-tools_123ubuntu2_all.deb ... 114s Unpacking openstack-pkg-tools (123ubuntu2) ... 114s Setting up dh-python (6.20241217) ... 114s Setting up python3-iniconfig (1.1.1-2) ... 114s Setting up libarchive-zip-perl (1.68-1) ... 114s Setting up libdebhelper-perl (13.20ubuntu1) ... 114s Setting up m4 (1.4.19-4build1) ... 114s Setting up libgomp1:s390x (14.2.0-11ubuntu1) ... 114s Setting up python3-wheel (0.45.1-1) ... 114s Setting up python3-multidict (6.1.0-1build1) ... 114s Setting up python3-frozenlist (1.5.0-1build1) ... 115s Setting up python3-aiosignal (1.3.1-1) ... 115s Setting up python3-async-timeout (5.0.1-1) ... 115s Setting up libpython3.13-minimal:s390x (3.13.1-2) ... 115s Setting up autotools-dev (20220109.1) ... 115s Setting up python3-packaging (24.2-1) ... 115s Setting up python3-pyproject-hooks (1.2.0-1) ... 115s Setting up libmpc3:s390x (1.3.1-1build2) ... 115s Setting up autopoint (0.22.5-3) ... 115s Setting up python3-pip (24.3.1+dfsg-1) ... 117s Setting up python3-toml (0.10.2-1) ... 117s Setting up python3-installer (0.7.0+dfsg1-3) ... 117s Setting up autoconf (2.72-3) ... 117s Setting up python3-pluggy (1.5.0-1) ... 117s Setting up libubsan1:s390x (14.2.0-11ubuntu1) ... 117s Setting up dwz (0.15-1build6) ... 117s Setting up libasan8:s390x (14.2.0-11ubuntu1) ... 117s Setting up debugedit (1:5.1-1) ... 117s Setting up python3.13-minimal (3.13.1-2) ... 118s Setting up libisl23:s390x (0.27-1) ... 118s Setting up python3-build (1.2.2-1) ... 118s Setting up python3-yarl (1.9.4-1) ... 118s Setting up libpython3.13-stdlib:s390x (3.13.1-2) ... 118s Setting up libcc1-0:s390x (14.2.0-11ubuntu1) ... 118s Setting up libitm1:s390x (14.2.0-11ubuntu1) ... 118s Setting up automake (1:1.16.5-1.3ubuntu1) ... 118s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 118s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 118s Setting up gettext (0.22.5-3) ... 118s Setting up python3.13 (3.13.1-2) ... 119s Setting up pybuild-plugin-pyproject (6.20241217) ... 119s Setting up python3-pytest (8.3.3-1) ... 119s Setting up python3-aiohttp (3.9.5-1) ... 120s Setting up python3-all (3.12.8-1) ... 120s Setting up intltool-debian (0.35.0+20060710.6) ... 120s Setting up cpp-14-s390x-linux-gnu (14.2.0-11ubuntu1) ... 120s Setting up cpp-14 (14.2.0-11ubuntu1) ... 120s Setting up dh-strip-nondeterminism (1.14.0-1) ... 120s Setting up libgcc-14-dev:s390x (14.2.0-11ubuntu1) ... 120s Setting up libstdc++-14-dev:s390x (14.2.0-11ubuntu1) ... 120s Setting up python3-aioresponses (0.7.6-2) ... 120s Setting up python3-foobot-async (1.0.1-2) ... 120s Setting up cpp-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 120s Setting up po-debconf (1.0.21+nmu1) ... 120s Setting up openstack-pkg-tools (123ubuntu2) ... 120s Setting up gcc-14-s390x-linux-gnu (14.2.0-11ubuntu1) ... 120s Setting up gcc-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 120s Setting up g++-14-s390x-linux-gnu (14.2.0-11ubuntu1) ... 120s Setting up cpp (4:14.1.0-2ubuntu1) ... 120s Setting up g++-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 120s Setting up gcc-14 (14.2.0-11ubuntu1) ... 120s Setting up g++-14 (14.2.0-11ubuntu1) ... 120s Setting up libtool (2.4.7-8) ... 120s Setting up gcc (4:14.1.0-2ubuntu1) ... 120s Setting up dh-autoreconf (20) ... 120s Setting up g++ (4:14.1.0-2ubuntu1) ... 120s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 120s Setting up build-essential (12.10ubuntu1) ... 120s Setting up debhelper (13.20ubuntu1) ... 120s Setting up pybuild-plugin-autopkgtest (6.20241217) ... 120s Processing triggers for man-db (2.13.0-1) ... 120s Processing triggers for install-info (7.1.1-1) ... 120s Processing triggers for libc-bin (2.40-4ubuntu1) ... 120s Processing triggers for systemd (257-2ubuntu1) ... 121s autopkgtest [17:15:05]: test pybuild-autopkgtest: pybuild-autopkgtest 121s autopkgtest [17:15:05]: test pybuild-autopkgtest: [----------------------- 121s make: pyversions: No such file or directory 122s py3versions: no X-Python3-Version in control file, using supported versions 122s pybuild-autopkgtest 122s I: pybuild base:311: cd /tmp/autopkgtest.59zPYq/autopkgtest_tmp/build; python3.13 -m pytest -v /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests 122s ============================= test session starts ============================== 122s platform linux -- Python 3.13.1, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.13 122s cachedir: .pytest_cache 122s rootdir: /tmp/autopkgtest.59zPYq/build.rP9/src 122s plugins: typeguard-4.4.1 122s collecting ... collected 10 items 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request FAILED [ 10%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request FAILED [ 20%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request FAILED [ 30%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request FAILED [ 40%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_overquota_request FAILED [ 50%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request FAILED [ 60%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request FAILED [ 70%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request FAILED [ 80%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request FAILED [ 90%] 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request FAILED [100%] 122s 122s =================================== FAILURES =================================== 122s ___________________________ test_get_devices_request ___________________________ 122s 122s def test_get_devices_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=200, body='''[{"uuid": "1234127987696AB", 122s "userId": 2353, 122s "mac": "013843C3C20A", 122s "name": "FooBot"}]''') 122s > resp = loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:20: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s ___________________________ test_failed_auth_request ___________________________ 122s 122s def test_failed_auth_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=401, body='{"message": "invalid key provided"}') 122s 122s with pytest.raises(FoobotClient.AuthFailure): 122s > loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:51: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s ________________________ test_failed_bad_format_request ________________________ 122s 122s def test_failed_bad_format_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=400, body='''{"state": 400, 122s "message": "ParseException : Bad date format : bad date format [test]", 122s "requestedUri": "/v2/device/26025766336015C0/datapoint/test/last/test/", 122s "stack": "[obfuscated]", 122s "propagatedException": null}''') 122s 122s with pytest.raises(FoobotClient.BadFormat): 122s > loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:64: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s ________________________ test_forbidden_access_request _________________________ 122s 122s def test_forbidden_access_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=403, body='''{"{"state": 403, "message": null, 122s "stack": "403 - Forbidden", 122s "propagatedException": null }": 122s "invalid key provided"}''') 122s 122s with pytest.raises(FoobotClient.ForbiddenAccess): 122s > loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:76: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s ____________________________ test_overquota_request ____________________________ 122s 122s def test_overquota_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=429, body='') 122s 122s with pytest.raises(FoobotClient.TooManyRequests): 122s > loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:85: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s _________________________ test_internal_error_request __________________________ 122s 122s def test_internal_error_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=500, body='') 122s 122s with pytest.raises(FoobotClient.InternalError): 122s > loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:94: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s _________________________ test_unhandled_error_request _________________________ 122s 122s def test_unhandled_error_request(): 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 122s status=404, body='') 122s 122s with pytest.raises(FoobotClient.ClientError): 122s > loop.run_until_complete(client.get_devices()) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:103: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 122s return (await self._get(DEVICE_URL.format( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s __________________________ test_get_last_data_request __________________________ 122s 122s def test_get_last_data_request(): 122s body = '''{"uuid": "1234127987696AB", 122s "start": 1518131274, 122s "end": 1518131874, 122s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 122s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 122s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 122s 325.5, 131.19643 ] ] }''' 122s 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/', 122s status=200, body=body) 122s 122s > resp = loop.run_until_complete(client.get_last_data("1234127987696AB", 122s 600, 601)) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:118: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:86: in get_last_data 122s return self.parse_data((await self._get( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/' 122s kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s _______________________ test_get_historical_data_request _______________________ 122s 122s def test_get_historical_data_request(): 122s body = '''{"uuid": "1234127987696AB", 122s "start": 1518131274, 122s "end": 1518131874, 122s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 122s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 122s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 122s 325.5, 131.19643 ] ] }''' 122s 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 122s status=200, body=body) 122s 122s > resp = loop.run_until_complete(client.get_historical_data("1234127987696AB", 122s datetime.utcfromtimestamp(1518121274), 122s datetime.utcfromtimestamp(1518131274), 122s 3600)) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:142: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:117: in get_historical_data 122s return self.parse_data((await self._get( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 122s kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s __________________________ test_get_bad_data_request ___________________________ 122s 122s def test_get_bad_data_request(): 122s body = '''{"uuid": "1234127987696AB", 122s "start": 1518131274, 122s "end": 1518131874}''' 122s 122s with aioresponses() as mocked: 122s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 122s status=200, body=body) 122s 122s with pytest.raises(FoobotClient.InvalidData): 122s > loop.run_until_complete(client.get_historical_data("1234127987696AB", 122s datetime.utcfromtimestamp(1518121274), 122s datetime.utcfromtimestamp(1518131274), 122s 3600)) 122s 122s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:165: 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 122s return future.result() 122s ../../build.rP9/src/foobot_async/__init__.py:117: in get_historical_data 122s return self.parse_data((await self._get( 122s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 122s 122s self = 122s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 122s kwargs = {} 122s 122s async def _get(self, path, **kwargs): 122s if not hasattr(self, '_session'): 122s self._session = aiohttp.ClientSession() 122s > with async_timeout.timeout(self._timeout): 122s E TypeError: 'Timeout' object does not support the context manager protocol 122s 122s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 122s =============================== warnings summary =============================== 122s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 122s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:143: 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). 122s datetime.utcfromtimestamp(1518121274), 122s 122s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 122s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:144: 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). 122s datetime.utcfromtimestamp(1518131274), 122s 122s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 122s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:166: 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). 122s datetime.utcfromtimestamp(1518121274), 122s 122s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 122s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:167: 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). 122s datetime.utcfromtimestamp(1518131274), 122s 122s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 122s =========================== short test summary info ============================ 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_overquota_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 122s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 122s ======================== 10 failed, 4 warnings in 0.33s ======================== 122s Unclosed client session 122s client_session: 122s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.59zPYq/autopkgtest_tmp/build; python3.13 -m pytest -v /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests 122s I: pybuild base:311: cd /tmp/autopkgtest.59zPYq/autopkgtest_tmp/build; python3.12 -m pytest -v /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests 122s ============================= test session starts ============================== 122s platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.12 122s cachedir: .pytest_cache 122s rootdir: /tmp/autopkgtest.59zPYq/build.rP9/src 122s plugins: typeguard-4.4.1 123s collecting ... collected 10 items 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request FAILED [ 10%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request FAILED [ 20%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request FAILED [ 30%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request FAILED [ 40%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_overquota_request FAILED [ 50%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request FAILED [ 60%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request FAILED [ 70%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request FAILED [ 80%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request FAILED [ 90%] 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request FAILED [100%] 123s 123s =================================== FAILURES =================================== 123s ___________________________ test_get_devices_request ___________________________ 123s 123s def test_get_devices_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=200, body='''[{"uuid": "1234127987696AB", 123s "userId": 2353, 123s "mac": "013843C3C20A", 123s "name": "FooBot"}]''') 123s > resp = loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:20: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s ___________________________ test_failed_auth_request ___________________________ 123s 123s def test_failed_auth_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=401, body='{"message": "invalid key provided"}') 123s 123s with pytest.raises(FoobotClient.AuthFailure): 123s > loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:51: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s ________________________ test_failed_bad_format_request ________________________ 123s 123s def test_failed_bad_format_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=400, body='''{"state": 400, 123s "message": "ParseException : Bad date format : bad date format [test]", 123s "requestedUri": "/v2/device/26025766336015C0/datapoint/test/last/test/", 123s "stack": "[obfuscated]", 123s "propagatedException": null}''') 123s 123s with pytest.raises(FoobotClient.BadFormat): 123s > loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:64: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s ________________________ test_forbidden_access_request _________________________ 123s 123s def test_forbidden_access_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=403, body='''{"{"state": 403, "message": null, 123s "stack": "403 - Forbidden", 123s "propagatedException": null }": 123s "invalid key provided"}''') 123s 123s with pytest.raises(FoobotClient.ForbiddenAccess): 123s > loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:76: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s ____________________________ test_overquota_request ____________________________ 123s 123s def test_overquota_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=429, body='') 123s 123s with pytest.raises(FoobotClient.TooManyRequests): 123s > loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:85: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s _________________________ test_internal_error_request __________________________ 123s 123s def test_internal_error_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=500, body='') 123s 123s with pytest.raises(FoobotClient.InternalError): 123s > loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:94: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s _________________________ test_unhandled_error_request _________________________ 123s 123s def test_unhandled_error_request(): 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 123s status=404, body='') 123s 123s with pytest.raises(FoobotClient.ClientError): 123s > loop.run_until_complete(client.get_devices()) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:103: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:59: in get_devices 123s return (await self._get(DEVICE_URL.format( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s __________________________ test_get_last_data_request __________________________ 123s 123s def test_get_last_data_request(): 123s body = '''{"uuid": "1234127987696AB", 123s "start": 1518131274, 123s "end": 1518131874, 123s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 123s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 123s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 123s 325.5, 131.19643 ] ] }''' 123s 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/', 123s status=200, body=body) 123s 123s > resp = loop.run_until_complete(client.get_last_data("1234127987696AB", 123s 600, 601)) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:118: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:86: in get_last_data 123s return self.parse_data((await self._get( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/' 123s kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s _______________________ test_get_historical_data_request _______________________ 123s 123s def test_get_historical_data_request(): 123s body = '''{"uuid": "1234127987696AB", 123s "start": 1518131274, 123s "end": 1518131874, 123s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 123s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 123s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 123s 325.5, 131.19643 ] ] }''' 123s 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 123s status=200, body=body) 123s 123s > resp = loop.run_until_complete(client.get_historical_data("1234127987696AB", 123s datetime.utcfromtimestamp(1518121274), 123s datetime.utcfromtimestamp(1518131274), 123s 3600)) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:142: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:117: in get_historical_data 123s return self.parse_data((await self._get( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 123s kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s __________________________ test_get_bad_data_request ___________________________ 123s 123s def test_get_bad_data_request(): 123s body = '''{"uuid": "1234127987696AB", 123s "start": 1518131274, 123s "end": 1518131874}''' 123s 123s with aioresponses() as mocked: 123s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 123s status=200, body=body) 123s 123s with pytest.raises(FoobotClient.InvalidData): 123s > loop.run_until_complete(client.get_historical_data("1234127987696AB", 123s datetime.utcfromtimestamp(1518121274), 123s datetime.utcfromtimestamp(1518131274), 123s 3600)) 123s 123s ../../build.rP9/src/foobot_async/tests/test_foobot_async.py:165: 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 123s return future.result() 123s ../../build.rP9/src/foobot_async/__init__.py:117: in get_historical_data 123s return self.parse_data((await self._get( 123s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 123s 123s self = 123s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 123s kwargs = {} 123s 123s async def _get(self, path, **kwargs): 123s if not hasattr(self, '_session'): 123s self._session = aiohttp.ClientSession() 123s > with async_timeout.timeout(self._timeout): 123s E TypeError: 'Timeout' object does not support the context manager protocol 123s 123s ../../build.rP9/src/foobot_async/__init__.py:158: TypeError 123s =============================== warnings summary =============================== 123s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 123s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:143: 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). 123s datetime.utcfromtimestamp(1518121274), 123s 123s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 123s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:144: 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). 123s datetime.utcfromtimestamp(1518131274), 123s 123s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 123s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:166: 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). 123s datetime.utcfromtimestamp(1518121274), 123s 123s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 123s /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests/test_foobot_async.py:167: 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). 123s datetime.utcfromtimestamp(1518131274), 123s 123s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 123s =========================== short test summary info ============================ 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_overquota_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 123s FAILED ../../build.rP9/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 123s ======================== 10 failed, 4 warnings in 0.37s ======================== 123s Unclosed client session 123s client_session: 123s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.59zPYq/autopkgtest_tmp/build; python3.12 -m pytest -v /tmp/autopkgtest.59zPYq/build.rP9/src/foobot_async/tests 123s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 123s make: *** [/tmp/SXLgGvcafz/run:4: pybuild-autopkgtest] Error 25 123s pybuild-autopkgtest: error: /tmp/SXLgGvcafz/run pybuild-autopkgtest returned exit code 2 123s autopkgtest [17:15:07]: test pybuild-autopkgtest: -----------------------] 124s pybuild-autopkgtest FAIL non-zero exit status 25 124s autopkgtest [17:15:08]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 124s autopkgtest [17:15:08]: @@@@@@@@@@@@@@@@@@@@ summary 124s pybuild-autopkgtest FAIL non-zero exit status 25 141s nova [W] Using flock in prodstack6-s390x 141s Creating nova instance adt-plucky-s390x-python-foobot-async-20241227-171304-juju-7f2275-prod-proposed-migration-environment-2-10eacf1b-a49f-4378-aec7-ebde90199eb4 from image adt/ubuntu-plucky-s390x-server-20241227.img (UUID d15d5a0a-5e13-427a-80a7-01b67a54bf40)... 141s nova [W] Timed out waiting for 930cb628-b9a6-40ee-98df-2896681af46f to get deleted.