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-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.yefs8dle/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-11.secgroup --name adt-plucky-ppc64el-python-foobot-async-20241227-171303-juju-7f2275-prod-proposed-migration-environment-15-d725e14b-e418-4ee3-ac58-087fd8db1e90 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -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/ 106s autopkgtest [17:14:50]: testbed dpkg architecture: ppc64el 106s autopkgtest [17:14:50]: testbed apt version: 2.9.18 107s autopkgtest [17:14:51]: @@@@@@@@@@@@@@@@@@@@ test bed setup 107s autopkgtest [17:14:51]: testbed release detected to be: None 108s autopkgtest [17:14:52]: updating testbed package index (apt update) 108s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 108s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 108s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 109s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 109s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9708 B] 109s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [620 kB] 109s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB] 109s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [56.0 kB] 109s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [57.9 kB] 109s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [756 B] 109s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [488 kB] 109s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [4256 B] 109s Fetched 1322 kB in 1s (1404 kB/s) 110s Reading package lists... 110s Reading package lists... 111s Building dependency tree... 111s Reading state information... 111s Calculating upgrade... 111s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 111s Reading package lists... 112s Building dependency tree... 112s Reading state information... 112s 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 112s autopkgtest [17:14:56]: upgrading testbed (apt dist-upgrade and autopurge) 112s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 113s Starting 2 pkgProblemResolver with broken count: 0 113s Done 114s Entering ResolveByKeep 114s 114s The following packages will be upgraded: 114s libpython3-stdlib python3 python3-minimal 114s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 114s Need to get 61.5 kB of archives. 114s After this operation, 0 B of additional disk space will be used. 114s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.12.8-1 [27.5 kB] 115s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.12.8-1 [23.9 kB] 115s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.12.8-1 [10.1 kB] 115s Fetched 61.5 kB in 0s (227 kB/s) 115s (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 ... 73900 files and directories currently installed.) 115s Preparing to unpack .../python3-minimal_3.12.8-1_ppc64el.deb ... 115s Unpacking python3-minimal (3.12.8-1) over (3.12.7-1) ... 115s Setting up python3-minimal (3.12.8-1) ... 116s (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 ... 73900 files and directories currently installed.) 116s Preparing to unpack .../python3_3.12.8-1_ppc64el.deb ... 116s Unpacking python3 (3.12.8-1) over (3.12.7-1) ... 116s Preparing to unpack .../libpython3-stdlib_3.12.8-1_ppc64el.deb ... 116s Unpacking libpython3-stdlib:ppc64el (3.12.8-1) over (3.12.7-1) ... 116s Setting up libpython3-stdlib:ppc64el (3.12.8-1) ... 116s Setting up python3 (3.12.8-1) ... 116s Processing triggers for man-db (2.13.0-1) ... 117s Reading package lists... 117s Building dependency tree... 117s Reading state information... 118s Starting pkgProblemResolver with broken count: 0 118s Starting 2 pkgProblemResolver with broken count: 0 118s Done 118s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 121s autopkgtest [17:15:05]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 121s autopkgtest [17:15:05]: @@@@@@@@@@@@@@@@@@@@ apt-source python-foobot-async 122s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-foobot-async 1.0.1-2 (dsc) [2325 B] 122s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-foobot-async 1.0.1-2 (tar) [33.6 kB] 122s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-foobot-async 1.0.1-2 (diff) [2056 B] 123s gpgv: Signature made Mon Sep 9 12:25:32 2024 UTC 123s gpgv: using RSA key A0B1A9F3508956130E7A425CD416AD15AC6B43FE 123s gpgv: Can't check signature: No public key 123s dpkg-source: warning: cannot verify inline signature for ./python-foobot-async_1.0.1-2.dsc: no acceptable signature found 123s autopkgtest [17:15:07]: testing package python-foobot-async version 1.0.1-2 123s autopkgtest [17:15:07]: build not needed 123s autopkgtest [17:15:07]: test pybuild-autopkgtest: preparing testbed 123s Reading package lists... 124s Building dependency tree... 124s Reading state information... 124s Starting pkgProblemResolver with broken count: 0 124s Starting 2 pkgProblemResolver with broken count: 0 124s Done 124s The following NEW packages will be installed: 124s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 124s cpp-14-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu debhelper debugedit 124s dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-14 124s g++-14-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu gcc gcc-14 124s gcc-14-powerpc64le-linux-gnu gcc-powerpc64le-linux-gnu gettext 124s intltool-debian libarchive-zip-perl libasan8 libcc1-0 libdebhelper-perl 124s libfile-stripnondeterminism-perl libgcc-14-dev libgomp1 libisl23 libitm1 124s liblsan0 libmpc3 libpython3.13-minimal libpython3.13-stdlib libquadmath0 124s libstdc++-14-dev libtool libtsan2 libubsan1 m4 openstack-pkg-tools 124s po-debconf pybuild-plugin-autopkgtest pybuild-plugin-pyproject 124s python3-aiohttp python3-aioresponses python3-aiosignal python3-all 124s python3-async-timeout python3-build python3-foobot-async python3-frozenlist 124s python3-iniconfig python3-installer python3-multidict python3-packaging 124s python3-pip python3-pluggy python3-pyproject-hooks python3-pytest 124s python3-toml python3-wheel python3-yarl python3.13 python3.13-minimal 125s 0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded. 125s Need to get 71.0 MB of archives. 125s After this operation, 265 MB of additional disk space will be used. 125s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.1-2 [883 kB] 125s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.1-2 [2496 kB] 126s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el m4 ppc64el 1.4.19-4build1 [278 kB] 126s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el autoconf all 2.72-3 [382 kB] 126s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el autotools-dev all 20220109.1 [44.9 kB] 126s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el automake all 1:1.16.5-1.3ubuntu1 [558 kB] 126s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el autopoint all 0.22.5-3 [616 kB] 127s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 127s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el libmpc3 ppc64el 1.3.1-1build2 [62.1 kB] 127s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14-powerpc64le-linux-gnu ppc64el 14.2.0-11ubuntu1 [10.5 MB] 128s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14 ppc64el 14.2.0-11ubuntu1 [1040 B] 128s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [5456 B] 128s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp ppc64el 4:14.1.0-2ubuntu1 [22.5 kB] 128s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el libcc1-0 ppc64el 14.2.0-11ubuntu1 [48.1 kB] 128s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgomp1 ppc64el 14.2.0-11ubuntu1 [161 kB] 128s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el libitm1 ppc64el 14.2.0-11ubuntu1 [32.1 kB] 128s Get:17 http://ftpmaster.internal/ubuntu plucky/main ppc64el libasan8 ppc64el 14.2.0-11ubuntu1 [2945 kB] 128s Get:18 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblsan0 ppc64el 14.2.0-11ubuntu1 [1322 kB] 128s Get:19 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtsan2 ppc64el 14.2.0-11ubuntu1 [2696 kB] 128s Get:20 http://ftpmaster.internal/ubuntu plucky/main ppc64el libubsan1 ppc64el 14.2.0-11ubuntu1 [1191 kB] 128s Get:21 http://ftpmaster.internal/ubuntu plucky/main ppc64el libquadmath0 ppc64el 14.2.0-11ubuntu1 [158 kB] 128s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgcc-14-dev ppc64el 14.2.0-11ubuntu1 [1620 kB] 129s Get:23 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14-powerpc64le-linux-gnu ppc64el 14.2.0-11ubuntu1 [20.6 MB] 130s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14 ppc64el 14.2.0-11ubuntu1 [532 kB] 130s Get:25 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [1222 B] 130s Get:26 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc ppc64el 4:14.1.0-2ubuntu1 [5006 B] 130s Get:27 http://ftpmaster.internal/ubuntu plucky/main ppc64el libstdc++-14-dev ppc64el 14.2.0-11ubuntu1 [2675 kB] 130s Get:28 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14-powerpc64le-linux-gnu ppc64el 14.2.0-11ubuntu1 [12.0 MB] 132s Get:29 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14 ppc64el 14.2.0-11ubuntu1 [20.1 kB] 132s Get:30 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [968 B] 132s Get:31 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++ ppc64el 4:14.1.0-2ubuntu1 [1090 B] 132s Get:32 http://ftpmaster.internal/ubuntu plucky/main ppc64el build-essential ppc64el 12.10ubuntu1 [4936 B] 132s Get:33 http://ftpmaster.internal/ubuntu plucky/main ppc64el libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 132s Get:34 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtool all 2.4.7-8 [166 kB] 132s Get:35 http://ftpmaster.internal/ubuntu plucky/main ppc64el dh-autoreconf all 20 [16.1 kB] 132s Get:36 http://ftpmaster.internal/ubuntu plucky/main ppc64el libarchive-zip-perl all 1.68-1 [90.2 kB] 132s Get:37 http://ftpmaster.internal/ubuntu plucky/main ppc64el libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 132s Get:38 http://ftpmaster.internal/ubuntu plucky/main ppc64el dh-strip-nondeterminism all 1.14.0-1 [5058 B] 132s Get:39 http://ftpmaster.internal/ubuntu plucky/main ppc64el debugedit ppc64el 1:5.1-1 [52.1 kB] 132s Get:40 http://ftpmaster.internal/ubuntu plucky/main ppc64el dwz ppc64el 0.15-1build6 [142 kB] 132s Get:41 http://ftpmaster.internal/ubuntu plucky/main ppc64el gettext ppc64el 0.22.5-3 [1083 kB] 132s Get:42 http://ftpmaster.internal/ubuntu plucky/main ppc64el intltool-debian all 0.35.0+20060710.6 [23.2 kB] 132s Get:43 http://ftpmaster.internal/ubuntu plucky/main ppc64el po-debconf all 1.0.21+nmu1 [233 kB] 132s Get:44 http://ftpmaster.internal/ubuntu plucky/main ppc64el debhelper all 13.20ubuntu1 [893 kB] 132s Get:45 http://ftpmaster.internal/ubuntu plucky/universe ppc64el dh-python all 6.20241217 [117 kB] 132s Get:46 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.1-2 [2131 kB] 132s Get:47 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pybuild-plugin-autopkgtest all 6.20241217 [1746 B] 132s Get:48 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 132s Get:49 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 132s Get:50 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-toml all 0.10.2-1 [16.5 kB] 132s Get:51 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-wheel all 0.45.1-1 [57.7 kB] 132s Get:52 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-build all 1.2.2-1 [31.0 kB] 132s Get:53 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 132s Get:54 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pybuild-plugin-pyproject all 6.20241217 [1730 B] 132s Get:55 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-multidict ppc64el 6.1.0-1build1 [40.2 kB] 132s Get:56 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-yarl ppc64el 1.9.4-1 [76.4 kB] 132s Get:57 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-async-timeout all 5.0.1-1 [6830 B] 132s Get:58 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-frozenlist ppc64el 1.5.0-1build1 [68.2 kB] 132s Get:59 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-aiosignal all 1.3.1-1 [5172 B] 132s Get:60 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-aiohttp ppc64el 3.9.5-1 [307 kB] 132s Get:61 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-aioresponses all 0.7.6-2 [10.9 kB] 132s Get:62 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.1-2 [729 kB] 132s Get:63 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-all ppc64el 3.12.8-1 [892 B] 132s Get:64 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-foobot-async all 1.0.1-2 [5386 B] 132s Get:65 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 132s Get:66 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pip all 24.3.1+dfsg-1 [1404 kB] 132s Get:67 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 132s Get:68 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 133s Get:69 http://ftpmaster.internal/ubuntu plucky/universe ppc64el openstack-pkg-tools all 123ubuntu2 [94.5 kB] 133s Fetched 71.0 MB in 8s (8838 kB/s) 133s Selecting previously unselected package libpython3.13-minimal:ppc64el. 133s (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 ... 73900 files and directories currently installed.) 133s Preparing to unpack .../00-libpython3.13-minimal_3.13.1-2_ppc64el.deb ... 133s Unpacking libpython3.13-minimal:ppc64el (3.13.1-2) ... 133s Selecting previously unselected package python3.13-minimal. 133s Preparing to unpack .../01-python3.13-minimal_3.13.1-2_ppc64el.deb ... 133s Unpacking python3.13-minimal (3.13.1-2) ... 133s Selecting previously unselected package m4. 133s Preparing to unpack .../02-m4_1.4.19-4build1_ppc64el.deb ... 133s Unpacking m4 (1.4.19-4build1) ... 133s Selecting previously unselected package autoconf. 133s Preparing to unpack .../03-autoconf_2.72-3_all.deb ... 133s Unpacking autoconf (2.72-3) ... 133s Selecting previously unselected package autotools-dev. 133s Preparing to unpack .../04-autotools-dev_20220109.1_all.deb ... 133s Unpacking autotools-dev (20220109.1) ... 133s Selecting previously unselected package automake. 133s Preparing to unpack .../05-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 133s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 133s Selecting previously unselected package autopoint. 133s Preparing to unpack .../06-autopoint_0.22.5-3_all.deb ... 133s Unpacking autopoint (0.22.5-3) ... 133s Selecting previously unselected package libisl23:ppc64el. 133s Preparing to unpack .../07-libisl23_0.27-1_ppc64el.deb ... 133s Unpacking libisl23:ppc64el (0.27-1) ... 133s Selecting previously unselected package libmpc3:ppc64el. 133s Preparing to unpack .../08-libmpc3_1.3.1-1build2_ppc64el.deb ... 133s Unpacking libmpc3:ppc64el (1.3.1-1build2) ... 133s Selecting previously unselected package cpp-14-powerpc64le-linux-gnu. 133s Preparing to unpack .../09-cpp-14-powerpc64le-linux-gnu_14.2.0-11ubuntu1_ppc64el.deb ... 133s Unpacking cpp-14-powerpc64le-linux-gnu (14.2.0-11ubuntu1) ... 133s Selecting previously unselected package cpp-14. 133s Preparing to unpack .../10-cpp-14_14.2.0-11ubuntu1_ppc64el.deb ... 133s Unpacking cpp-14 (14.2.0-11ubuntu1) ... 133s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 133s Preparing to unpack .../11-cpp-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 133s Unpacking cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 133s Selecting previously unselected package cpp. 133s Preparing to unpack .../12-cpp_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 134s Unpacking cpp (4:14.1.0-2ubuntu1) ... 134s Selecting previously unselected package libcc1-0:ppc64el. 134s Preparing to unpack .../13-libcc1-0_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libcc1-0:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libgomp1:ppc64el. 134s Preparing to unpack .../14-libgomp1_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libgomp1:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libitm1:ppc64el. 134s Preparing to unpack .../15-libitm1_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libitm1:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libasan8:ppc64el. 134s Preparing to unpack .../16-libasan8_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libasan8:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package liblsan0:ppc64el. 134s Preparing to unpack .../17-liblsan0_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking liblsan0:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libtsan2:ppc64el. 134s Preparing to unpack .../18-libtsan2_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libtsan2:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libubsan1:ppc64el. 134s Preparing to unpack .../19-libubsan1_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libubsan1:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libquadmath0:ppc64el. 134s Preparing to unpack .../20-libquadmath0_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libquadmath0:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package libgcc-14-dev:ppc64el. 134s Preparing to unpack .../21-libgcc-14-dev_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libgcc-14-dev:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package gcc-14-powerpc64le-linux-gnu. 134s Preparing to unpack .../22-gcc-14-powerpc64le-linux-gnu_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking gcc-14-powerpc64le-linux-gnu (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package gcc-14. 134s Preparing to unpack .../23-gcc-14_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking gcc-14 (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 134s Preparing to unpack .../24-gcc-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 134s Unpacking gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 134s Selecting previously unselected package gcc. 134s Preparing to unpack .../25-gcc_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 134s Unpacking gcc (4:14.1.0-2ubuntu1) ... 134s Selecting previously unselected package libstdc++-14-dev:ppc64el. 134s Preparing to unpack .../26-libstdc++-14-dev_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking libstdc++-14-dev:ppc64el (14.2.0-11ubuntu1) ... 134s Selecting previously unselected package g++-14-powerpc64le-linux-gnu. 134s Preparing to unpack .../27-g++-14-powerpc64le-linux-gnu_14.2.0-11ubuntu1_ppc64el.deb ... 134s Unpacking g++-14-powerpc64le-linux-gnu (14.2.0-11ubuntu1) ... 135s Selecting previously unselected package g++-14. 135s Preparing to unpack .../28-g++-14_14.2.0-11ubuntu1_ppc64el.deb ... 135s Unpacking g++-14 (14.2.0-11ubuntu1) ... 135s Selecting previously unselected package g++-powerpc64le-linux-gnu. 135s Preparing to unpack .../29-g++-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 135s Unpacking g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 135s Selecting previously unselected package g++. 135s Preparing to unpack .../30-g++_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 135s Unpacking g++ (4:14.1.0-2ubuntu1) ... 135s Selecting previously unselected package build-essential. 135s Preparing to unpack .../31-build-essential_12.10ubuntu1_ppc64el.deb ... 135s Unpacking build-essential (12.10ubuntu1) ... 135s Selecting previously unselected package libdebhelper-perl. 135s Preparing to unpack .../32-libdebhelper-perl_13.20ubuntu1_all.deb ... 135s Unpacking libdebhelper-perl (13.20ubuntu1) ... 135s Selecting previously unselected package libtool. 135s Preparing to unpack .../33-libtool_2.4.7-8_all.deb ... 135s Unpacking libtool (2.4.7-8) ... 135s Selecting previously unselected package dh-autoreconf. 135s Preparing to unpack .../34-dh-autoreconf_20_all.deb ... 135s Unpacking dh-autoreconf (20) ... 135s Selecting previously unselected package libarchive-zip-perl. 135s Preparing to unpack .../35-libarchive-zip-perl_1.68-1_all.deb ... 135s Unpacking libarchive-zip-perl (1.68-1) ... 135s Selecting previously unselected package libfile-stripnondeterminism-perl. 135s Preparing to unpack .../36-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 135s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 135s Selecting previously unselected package dh-strip-nondeterminism. 135s Preparing to unpack .../37-dh-strip-nondeterminism_1.14.0-1_all.deb ... 135s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 135s Selecting previously unselected package debugedit. 135s Preparing to unpack .../38-debugedit_1%3a5.1-1_ppc64el.deb ... 135s Unpacking debugedit (1:5.1-1) ... 135s Selecting previously unselected package dwz. 135s Preparing to unpack .../39-dwz_0.15-1build6_ppc64el.deb ... 135s Unpacking dwz (0.15-1build6) ... 135s Selecting previously unselected package gettext. 135s Preparing to unpack .../40-gettext_0.22.5-3_ppc64el.deb ... 135s Unpacking gettext (0.22.5-3) ... 135s Selecting previously unselected package intltool-debian. 135s Preparing to unpack .../41-intltool-debian_0.35.0+20060710.6_all.deb ... 135s Unpacking intltool-debian (0.35.0+20060710.6) ... 135s Selecting previously unselected package po-debconf. 135s Preparing to unpack .../42-po-debconf_1.0.21+nmu1_all.deb ... 135s Unpacking po-debconf (1.0.21+nmu1) ... 135s Selecting previously unselected package debhelper. 135s Preparing to unpack .../43-debhelper_13.20ubuntu1_all.deb ... 135s Unpacking debhelper (13.20ubuntu1) ... 135s Selecting previously unselected package dh-python. 135s Preparing to unpack .../44-dh-python_6.20241217_all.deb ... 135s Unpacking dh-python (6.20241217) ... 135s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 135s Preparing to unpack .../45-libpython3.13-stdlib_3.13.1-2_ppc64el.deb ... 135s Unpacking libpython3.13-stdlib:ppc64el (3.13.1-2) ... 135s Selecting previously unselected package pybuild-plugin-autopkgtest. 135s Preparing to unpack .../46-pybuild-plugin-autopkgtest_6.20241217_all.deb ... 135s Unpacking pybuild-plugin-autopkgtest (6.20241217) ... 135s Selecting previously unselected package python3-packaging. 135s Preparing to unpack .../47-python3-packaging_24.2-1_all.deb ... 135s Unpacking python3-packaging (24.2-1) ... 135s Selecting previously unselected package python3-pyproject-hooks. 135s Preparing to unpack .../48-python3-pyproject-hooks_1.2.0-1_all.deb ... 135s Unpacking python3-pyproject-hooks (1.2.0-1) ... 135s Selecting previously unselected package python3-toml. 135s Preparing to unpack .../49-python3-toml_0.10.2-1_all.deb ... 135s Unpacking python3-toml (0.10.2-1) ... 135s Selecting previously unselected package python3-wheel. 135s Preparing to unpack .../50-python3-wheel_0.45.1-1_all.deb ... 135s Unpacking python3-wheel (0.45.1-1) ... 135s Selecting previously unselected package python3-build. 135s Preparing to unpack .../51-python3-build_1.2.2-1_all.deb ... 135s Unpacking python3-build (1.2.2-1) ... 135s Selecting previously unselected package python3-installer. 135s Preparing to unpack .../52-python3-installer_0.7.0+dfsg1-3_all.deb ... 135s Unpacking python3-installer (0.7.0+dfsg1-3) ... 135s Selecting previously unselected package pybuild-plugin-pyproject. 135s Preparing to unpack .../53-pybuild-plugin-pyproject_6.20241217_all.deb ... 135s Unpacking pybuild-plugin-pyproject (6.20241217) ... 135s Selecting previously unselected package python3-multidict. 135s Preparing to unpack .../54-python3-multidict_6.1.0-1build1_ppc64el.deb ... 135s Unpacking python3-multidict (6.1.0-1build1) ... 135s Selecting previously unselected package python3-yarl. 135s Preparing to unpack .../55-python3-yarl_1.9.4-1_ppc64el.deb ... 135s Unpacking python3-yarl (1.9.4-1) ... 135s Selecting previously unselected package python3-async-timeout. 135s Preparing to unpack .../56-python3-async-timeout_5.0.1-1_all.deb ... 135s Unpacking python3-async-timeout (5.0.1-1) ... 135s Selecting previously unselected package python3-frozenlist. 135s Preparing to unpack .../57-python3-frozenlist_1.5.0-1build1_ppc64el.deb ... 135s Unpacking python3-frozenlist (1.5.0-1build1) ... 135s Selecting previously unselected package python3-aiosignal. 135s Preparing to unpack .../58-python3-aiosignal_1.3.1-1_all.deb ... 135s Unpacking python3-aiosignal (1.3.1-1) ... 135s Selecting previously unselected package python3-aiohttp. 136s Preparing to unpack .../59-python3-aiohttp_3.9.5-1_ppc64el.deb ... 136s Unpacking python3-aiohttp (3.9.5-1) ... 136s Selecting previously unselected package python3-aioresponses. 136s Preparing to unpack .../60-python3-aioresponses_0.7.6-2_all.deb ... 136s Unpacking python3-aioresponses (0.7.6-2) ... 136s Selecting previously unselected package python3.13. 136s Preparing to unpack .../61-python3.13_3.13.1-2_ppc64el.deb ... 136s Unpacking python3.13 (3.13.1-2) ... 136s Selecting previously unselected package python3-all. 136s Preparing to unpack .../62-python3-all_3.12.8-1_ppc64el.deb ... 136s Unpacking python3-all (3.12.8-1) ... 136s Selecting previously unselected package python3-foobot-async. 136s Preparing to unpack .../63-python3-foobot-async_1.0.1-2_all.deb ... 136s Unpacking python3-foobot-async (1.0.1-2) ... 136s Selecting previously unselected package python3-iniconfig. 136s Preparing to unpack .../64-python3-iniconfig_1.1.1-2_all.deb ... 136s Unpacking python3-iniconfig (1.1.1-2) ... 136s Selecting previously unselected package python3-pip. 136s Preparing to unpack .../65-python3-pip_24.3.1+dfsg-1_all.deb ... 136s Unpacking python3-pip (24.3.1+dfsg-1) ... 136s Selecting previously unselected package python3-pluggy. 136s Preparing to unpack .../66-python3-pluggy_1.5.0-1_all.deb ... 136s Unpacking python3-pluggy (1.5.0-1) ... 136s Selecting previously unselected package python3-pytest. 136s Preparing to unpack .../67-python3-pytest_8.3.3-1_all.deb ... 136s Unpacking python3-pytest (8.3.3-1) ... 136s Selecting previously unselected package openstack-pkg-tools. 136s Preparing to unpack .../68-openstack-pkg-tools_123ubuntu2_all.deb ... 136s Unpacking openstack-pkg-tools (123ubuntu2) ... 136s Setting up dh-python (6.20241217) ... 136s Setting up python3-iniconfig (1.1.1-2) ... 136s Setting up libarchive-zip-perl (1.68-1) ... 136s Setting up libdebhelper-perl (13.20ubuntu1) ... 136s Setting up m4 (1.4.19-4build1) ... 136s Setting up libgomp1:ppc64el (14.2.0-11ubuntu1) ... 136s Setting up python3-wheel (0.45.1-1) ... 137s Setting up python3-multidict (6.1.0-1build1) ... 137s Setting up python3-frozenlist (1.5.0-1build1) ... 137s Setting up python3-aiosignal (1.3.1-1) ... 137s Setting up python3-async-timeout (5.0.1-1) ... 137s Setting up libpython3.13-minimal:ppc64el (3.13.1-2) ... 137s Setting up autotools-dev (20220109.1) ... 137s Setting up python3-packaging (24.2-1) ... 137s Setting up python3-pyproject-hooks (1.2.0-1) ... 138s Setting up libquadmath0:ppc64el (14.2.0-11ubuntu1) ... 138s Setting up libmpc3:ppc64el (1.3.1-1build2) ... 138s Setting up autopoint (0.22.5-3) ... 138s Setting up python3-pip (24.3.1+dfsg-1) ... 140s Setting up python3-toml (0.10.2-1) ... 140s Setting up python3-installer (0.7.0+dfsg1-3) ... 140s Setting up autoconf (2.72-3) ... 140s Setting up python3-pluggy (1.5.0-1) ... 140s Setting up libubsan1:ppc64el (14.2.0-11ubuntu1) ... 140s Setting up dwz (0.15-1build6) ... 140s Setting up libasan8:ppc64el (14.2.0-11ubuntu1) ... 140s Setting up debugedit (1:5.1-1) ... 140s Setting up python3.13-minimal (3.13.1-2) ... 141s Setting up libtsan2:ppc64el (14.2.0-11ubuntu1) ... 141s Setting up libisl23:ppc64el (0.27-1) ... 141s Setting up python3-build (1.2.2-1) ... 141s Setting up python3-yarl (1.9.4-1) ... 142s Setting up libpython3.13-stdlib:ppc64el (3.13.1-2) ... 142s Setting up libcc1-0:ppc64el (14.2.0-11ubuntu1) ... 142s Setting up liblsan0:ppc64el (14.2.0-11ubuntu1) ... 142s Setting up libitm1:ppc64el (14.2.0-11ubuntu1) ... 142s Setting up automake (1:1.16.5-1.3ubuntu1) ... 142s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 142s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 142s Setting up gettext (0.22.5-3) ... 142s Setting up python3.13 (3.13.1-2) ... 143s Setting up pybuild-plugin-pyproject (6.20241217) ... 143s Setting up python3-pytest (8.3.3-1) ... 143s Setting up python3-aiohttp (3.9.5-1) ... 144s Setting up python3-all (3.12.8-1) ... 144s Setting up intltool-debian (0.35.0+20060710.6) ... 144s Setting up cpp-14-powerpc64le-linux-gnu (14.2.0-11ubuntu1) ... 144s Setting up cpp-14 (14.2.0-11ubuntu1) ... 144s Setting up dh-strip-nondeterminism (1.14.0-1) ... 144s Setting up libgcc-14-dev:ppc64el (14.2.0-11ubuntu1) ... 144s Setting up libstdc++-14-dev:ppc64el (14.2.0-11ubuntu1) ... 144s Setting up cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 144s Setting up gcc-14-powerpc64le-linux-gnu (14.2.0-11ubuntu1) ... 144s Setting up python3-aioresponses (0.7.6-2) ... 144s Setting up python3-foobot-async (1.0.1-2) ... 144s Setting up g++-14-powerpc64le-linux-gnu (14.2.0-11ubuntu1) ... 144s Setting up po-debconf (1.0.21+nmu1) ... 144s Setting up openstack-pkg-tools (123ubuntu2) ... 144s Setting up gcc-14 (14.2.0-11ubuntu1) ... 144s Setting up gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 144s Setting up cpp (4:14.1.0-2ubuntu1) ... 144s Setting up g++-14 (14.2.0-11ubuntu1) ... 144s Setting up g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 144s Setting up libtool (2.4.7-8) ... 144s Setting up gcc (4:14.1.0-2ubuntu1) ... 144s Setting up dh-autoreconf (20) ... 144s Setting up g++ (4:14.1.0-2ubuntu1) ... 144s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 144s Setting up build-essential (12.10ubuntu1) ... 144s Setting up debhelper (13.20ubuntu1) ... 144s Setting up pybuild-plugin-autopkgtest (6.20241217) ... 144s Processing triggers for man-db (2.13.0-1) ... 146s Processing triggers for install-info (7.1.1-1) ... 146s Processing triggers for libc-bin (2.40-4ubuntu1) ... 146s Processing triggers for systemd (257-2ubuntu1) ... 147s autopkgtest [17:15:31]: test pybuild-autopkgtest: pybuild-autopkgtest 147s autopkgtest [17:15:31]: test pybuild-autopkgtest: [----------------------- 147s make: pyversions: No such file or directory 147s py3versions: no X-Python3-Version in control file, using supported versions 147s pybuild-autopkgtest 147s I: pybuild base:311: cd /tmp/autopkgtest.NnPzVZ/autopkgtest_tmp/build; python3.13 -m pytest -v /tmp/autopkgtest.NnPzVZ/build.zx0/src/foobot_async/tests 148s ============================= test session starts ============================== 148s platform linux -- Python 3.13.1, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.13 148s cachedir: .pytest_cache 148s rootdir: /tmp/autopkgtest.NnPzVZ/build.zx0/src 148s plugins: typeguard-4.4.1 148s collecting ... collected 10 items 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request FAILED [ 10%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request FAILED [ 20%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request FAILED [ 30%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request FAILED [ 40%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_overquota_request FAILED [ 50%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request FAILED [ 60%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request FAILED [ 70%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request FAILED [ 80%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request FAILED [ 90%] 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request FAILED [100%] 148s 148s =================================== FAILURES =================================== 148s ___________________________ test_get_devices_request ___________________________ 148s 148s def test_get_devices_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=200, body='''[{"uuid": "1234127987696AB", 148s "userId": 2353, 148s "mac": "013843C3C20A", 148s "name": "FooBot"}]''') 148s > resp = loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:20: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s ___________________________ test_failed_auth_request ___________________________ 148s 148s def test_failed_auth_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=401, body='{"message": "invalid key provided"}') 148s 148s with pytest.raises(FoobotClient.AuthFailure): 148s > loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:51: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s ________________________ test_failed_bad_format_request ________________________ 148s 148s def test_failed_bad_format_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=400, body='''{"state": 400, 148s "message": "ParseException : Bad date format : bad date format [test]", 148s "requestedUri": "/v2/device/26025766336015C0/datapoint/test/last/test/", 148s "stack": "[obfuscated]", 148s "propagatedException": null}''') 148s 148s with pytest.raises(FoobotClient.BadFormat): 148s > loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:64: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s ________________________ test_forbidden_access_request _________________________ 148s 148s def test_forbidden_access_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=403, body='''{"{"state": 403, "message": null, 148s "stack": "403 - Forbidden", 148s "propagatedException": null }": 148s "invalid key provided"}''') 148s 148s with pytest.raises(FoobotClient.ForbiddenAccess): 148s > loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:76: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s ____________________________ test_overquota_request ____________________________ 148s 148s def test_overquota_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=429, body='') 148s 148s with pytest.raises(FoobotClient.TooManyRequests): 148s > loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:85: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s _________________________ test_internal_error_request __________________________ 148s 148s def test_internal_error_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=500, body='') 148s 148s with pytest.raises(FoobotClient.InternalError): 148s > loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:94: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s _________________________ test_unhandled_error_request _________________________ 148s 148s def test_unhandled_error_request(): 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 148s status=404, body='') 148s 148s with pytest.raises(FoobotClient.ClientError): 148s > loop.run_until_complete(client.get_devices()) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:103: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 148s return (await self._get(DEVICE_URL.format( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s __________________________ test_get_last_data_request __________________________ 148s 148s def test_get_last_data_request(): 148s body = '''{"uuid": "1234127987696AB", 148s "start": 1518131274, 148s "end": 1518131874, 148s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 148s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 148s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 148s 325.5, 131.19643 ] ] }''' 148s 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/', 148s status=200, body=body) 148s 148s > resp = loop.run_until_complete(client.get_last_data("1234127987696AB", 148s 600, 601)) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:118: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:86: in get_last_data 148s return self.parse_data((await self._get( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/' 148s kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s _______________________ test_get_historical_data_request _______________________ 148s 148s def test_get_historical_data_request(): 148s body = '''{"uuid": "1234127987696AB", 148s "start": 1518131274, 148s "end": 1518131874, 148s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 148s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 148s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 148s 325.5, 131.19643 ] ] }''' 148s 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 148s status=200, body=body) 148s 148s > resp = loop.run_until_complete(client.get_historical_data("1234127987696AB", 148s datetime.utcfromtimestamp(1518121274), 148s datetime.utcfromtimestamp(1518131274), 148s 3600)) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:142: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:117: in get_historical_data 148s return self.parse_data((await self._get( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 148s kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s __________________________ test_get_bad_data_request ___________________________ 148s 148s def test_get_bad_data_request(): 148s body = '''{"uuid": "1234127987696AB", 148s "start": 1518131274, 148s "end": 1518131874}''' 148s 148s with aioresponses() as mocked: 148s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 148s status=200, body=body) 148s 148s with pytest.raises(FoobotClient.InvalidData): 148s > loop.run_until_complete(client.get_historical_data("1234127987696AB", 148s datetime.utcfromtimestamp(1518121274), 148s datetime.utcfromtimestamp(1518131274), 148s 3600)) 148s 148s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:165: 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s /usr/lib/python3.13/asyncio/base_events.py:720: in run_until_complete 148s return future.result() 148s ../../build.zx0/src/foobot_async/__init__.py:117: in get_historical_data 148s return self.parse_data((await self._get( 148s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 148s 148s self = 148s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 148s kwargs = {} 148s 148s async def _get(self, path, **kwargs): 148s if not hasattr(self, '_session'): 148s self._session = aiohttp.ClientSession() 148s > with async_timeout.timeout(self._timeout): 148s E TypeError: 'Timeout' object does not support the context manager protocol 148s 148s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 148s =============================== warnings summary =============================== 148s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 148s /tmp/autopkgtest.NnPzVZ/build.zx0/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(timestUnclosed client session 148s client_session: 148s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.NnPzVZ/autopkgtest_tmp/build; python3.13 -m pytest -v /tmp/autopkgtest.NnPzVZ/build.zx0/src/foobot_async/tests 148s I: pybuild base:311: cd /tmp/autopkgtest.NnPzVZ/autopkgtest_tmp/build; python3.12 -m pytest -v /tmp/autopkgtest.NnPzVZ/build.zx0/src/foobot_async/tests 148s amp, datetime.UTC). 148s datetime.utcfromtimestamp(1518121274), 148s 148s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 148s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 148s datetime.utcfromtimestamp(1518131274), 148s 148s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 148s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 148s datetime.utcfromtimestamp(1518121274), 148s 148s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 148s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 148s datetime.utcfromtimestamp(1518131274), 148s 148s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 148s =========================== short test summary info ============================ 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_overquota_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 148s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 148s ======================== 10 failed, 4 warnings in 0.51s ======================== 149s ============================= test session starts ============================== 149s platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.12 149s cachedir: .pytest_cache 149s rootdir: /tmp/autopkgtest.NnPzVZ/build.zx0/src 149s plugins: typeguard-4.4.1 149s collecting ... collected 10 items 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request FAILED [ 10%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request FAILED [ 20%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request FAILED [ 30%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request FAILED [ 40%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_overquota_request FAILED [ 50%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request FAILED [ 60%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request FAILED [ 70%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request FAILED [ 80%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request FAILED [ 90%] 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request FAILED [100%] 149s 149s =================================== FAILURES =================================== 149s ___________________________ test_get_devices_request ___________________________ 149s 149s def test_get_devices_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=200, body='''[{"uuid": "1234127987696AB", 149s "userId": 2353, 149s "mac": "013843C3C20A", 149s "name": "FooBot"}]''') 149s > resp = loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:20: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s ___________________________ test_failed_auth_request ___________________________ 149s 149s def test_failed_auth_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=401, body='{"message": "invalid key provided"}') 149s 149s with pytest.raises(FoobotClient.AuthFailure): 149s > loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:51: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s ________________________ test_failed_bad_format_request ________________________ 149s 149s def test_failed_bad_format_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=400, body='''{"state": 400, 149s "message": "ParseException : Bad date format : bad date format [test]", 149s "requestedUri": "/v2/device/26025766336015C0/datapoint/test/last/test/", 149s "stack": "[obfuscated]", 149s "propagatedException": null}''') 149s 149s with pytest.raises(FoobotClient.BadFormat): 149s > loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:64: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s ________________________ test_forbidden_access_request _________________________ 149s 149s def test_forbidden_access_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=403, body='''{"{"state": 403, "message": null, 149s "stack": "403 - Forbidden", 149s "propagatedException": null }": 149s "invalid key provided"}''') 149s 149s with pytest.raises(FoobotClient.ForbiddenAccess): 149s > loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:76: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s ____________________________ test_overquota_request ____________________________ 149s 149s def test_overquota_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=429, body='') 149s 149s with pytest.raises(FoobotClient.TooManyRequests): 149s > loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:85: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s _________________________ test_internal_error_request __________________________ 149s 149s def test_internal_error_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=500, body='') 149s 149s with pytest.raises(FoobotClient.InternalError): 149s > loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:94: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s _________________________ test_unhandled_error_request _________________________ 149s 149s def test_unhandled_error_request(): 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/owner/example@example.com/device/', 149s status=404, body='') 149s 149s with pytest.raises(FoobotClient.ClientError): 149s > loop.run_until_complete(client.get_devices()) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:103: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:59: in get_devices 149s return (await self._get(DEVICE_URL.format( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/owner/example@example.com/device/', kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s __________________________ test_get_last_data_request __________________________ 149s 149s def test_get_last_data_request(): 149s body = '''{"uuid": "1234127987696AB", 149s "start": 1518131274, 149s "end": 1518131874, 149s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 149s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 149s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 149s 325.5, 131.19643 ] ] }''' 149s 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/', 149s status=200, body=body) 149s 149s > resp = loop.run_until_complete(client.get_last_data("1234127987696AB", 149s 600, 601)) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:118: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:86: in get_last_data 149s return self.parse_data((await self._get( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/' 149s kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s _______________________ test_get_historical_data_request _______________________ 149s 149s def test_get_historical_data_request(): 149s body = '''{"uuid": "1234127987696AB", 149s "start": 1518131274, 149s "end": 1518131874, 149s "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], 149s "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], 149s "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 149s 325.5, 131.19643 ] ] }''' 149s 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 149s status=200, body=body) 149s 149s > resp = loop.run_until_complete(client.get_historical_data("1234127987696AB", 149s datetime.utcfromtimestamp(1518121274), 149s datetime.utcfromtimestamp(1518131274), 149s 3600)) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:142: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:117: in get_historical_data 149s return self.parse_data((await self._get( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 149s kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s __________________________ test_get_bad_data_request ___________________________ 149s 149s def test_get_bad_data_request(): 149s body = '''{"uuid": "1234127987696AB", 149s "start": 1518131274, 149s "end": 1518131874}''' 149s 149s with aioresponses() as mocked: 149s mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', 149s status=200, body=body) 149s 149s with pytest.raises(FoobotClient.InvalidData): 149s > loop.run_until_complete(client.get_historical_data("1234127987696AB", 149s datetime.utcfromtimestamp(1518121274), 149s datetime.utcfromtimestamp(1518131274), 149s 3600)) 149s 149s ../../build.zx0/src/foobot_async/tests/test_foobot_async.py:165: 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s /usr/lib/python3.12/asyncio/base_events.py:686: in run_until_complete 149s return future.result() 149s ../../build.zx0/src/foobot_async/__init__.py:117: in get_historical_data 149s return self.parse_data((await self._get( 149s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149s 149s self = 149s path = 'https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/' 149s kwargs = {} 149s 149s async def _get(self, path, **kwargs): 149s if not hasattr(self, '_session'): 149s self._session = aiohttp.ClientSession() 149s > with async_timeout.timeout(self._timeout): 149s E TypeError: 'Timeout' object does not support the context manager protocol 149s 149s ../../build.zx0/src/foobot_async/__init__.py:158: TypeError 149s =============================== warnings summary =============================== 149s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 149s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 149s datetime.utcfromtimestamp(1518121274), 149s 149s foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 149s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 149s datetime.utcfromtimestamp(1518131274), 149s 149s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 149s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 149s datetime.utcfromtimestamp(1518121274), 149s 149s foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 149s /tmp/autopkgtest.NnPzVZ/build.zx0/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). 149s datetime.utcfromtimestamp(1518131274), 149s 149s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 149s =========================== short test summary info ============================ 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_devices_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_auth_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_forbidden_access_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_overquota_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_internal_error_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_unhandled_error_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_last_data_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_historical_data_request 149s FAILED ../../build.zx0/src/foobot_async/tests/test_foobot_async.py::test_get_bad_data_request 149s ======================== 10 failed, 4 warnings in 0.53s ======================== 149s Unclosed client session 149s client_session: 149s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.NnPzVZ/autopkgtest_tmp/build; python3.12 -m pytest -v /tmp/autopkgtest.NnPzVZ/build.zx0/src/foobot_async/tests 149s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 149s make: *** [/tmp/_vFQWFmdc9/run:4: pybuild-autopkgtest] Error 25 149s pybuild-autopkgtest: error: /tmp/_vFQWFmdc9/run pybuild-autopkgtest returned exit code 2 149s autopkgtest [17:15:33]: test pybuild-autopkgtest: -----------------------] 150s autopkgtest [17:15:34]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 150s pybuild-autopkgtest FAIL non-zero exit status 25 150s autopkgtest [17:15:34]: @@@@@@@@@@@@@@@@@@@@ summary 150s pybuild-autopkgtest FAIL non-zero exit status 25 155s nova [W] Using flock in prodstack6-ppc64el 155s Creating nova instance adt-plucky-ppc64el-python-foobot-async-20241227-171303-juju-7f2275-prod-proposed-migration-environment-15-d725e14b-e418-4ee3-ac58-087fd8db1e90 from image adt/ubuntu-plucky-ppc64el-server-20241227.img (UUID d18a0f1f-b400-4884-a0ad-b86f0829d4e5)... 155s nova [W] Timed out waiting for aec22447-0c9a-4c6b-a3a8-cf00a2e40191 to get deleted.