0s autopkgtest [01:49:31]: starting date and time: 2026-01-24 01:49:31+0000 0s autopkgtest [01:49:31]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [01:49:31]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.qrzzvg_1/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade sphinx-theme-builder --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-s390x-5.secgroup --name adt-resolute-s390x-sphinx-theme-builder-20260124-014930-juju-7f2275-prod-proposed-migration-environment-2-1e145c3a-ba4e-4c57-84a7-7bb32cd5df80 --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-sphinx-theme-builder-20260124-014930-juju-7f2275-prod-proposed-migration-environment-2-1e145c3a-ba4e-4c57-84a7-7bb32cd5df80 from image adt/ubuntu-resolute-s390x-server-20260124.img (UUID cb5f7561-b2f6-4cdf-8333-83c53514cd6a)... 107s autopkgtest [01:51:18]: testbed dpkg architecture: s390x 107s autopkgtest [01:51:18]: testbed apt version: 3.1.13 107s autopkgtest [01:51:18]: @@@@@@@@@@@@@@@@@@@@ test bed setup 108s autopkgtest [01:51:19]: testbed release detected to be: None 108s autopkgtest [01:51:19]: updating testbed package index (apt update) 108s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 109s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 109s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 109s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 109s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1019 kB] 109s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [24.3 kB] 109s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 109s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [93.3 kB] 109s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [103 kB] 109s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [838 kB] 109s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [9916 B] 110s Fetched 2214 kB in 1s (1696 kB/s) 114s Reading package lists... 115s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 115s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 115s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 115s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 119s Reading package lists... 119s Reading package lists... 121s Building dependency tree... 121s Reading state information... 121s Calculating upgrade... 121s The following packages were automatically installed and are no longer required: 121s python3.13 python3.13-minimal 121s Use 'sudo apt autoremove' to remove them. 121s The following NEW packages will be installed: 121s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 121s The following packages will be upgraded: 121s libpython3-stdlib python3 python3-gdbm python3-minimal 121s 4 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 121s Need to get 6689 kB of archives. 121s After this operation, 24.3 MB of additional disk space will be used. 121s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-minimal s390x 3.14.2-1 [917 kB] 122s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14-minimal s390x 3.14.2-1 [2510 kB] 122s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3-minimal s390x 3.14.2-1 [28.2 kB] 122s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3 s390x 3.14.2-1 [22.9 kB] 122s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-stdlib s390x 3.14.2-1 [2373 kB] 122s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14 s390x 3.14.2-1 [816 kB] 122s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpython3-stdlib s390x 3.14.2-1 [10.9 kB] 122s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3-gdbm s390x 3.14.2-1 [11.1 kB] 123s dpkg-preconfigure: unable to re-open stdin: No such file or directory 123s Fetched 6689 kB in 1s (4986 kB/s) 123s Selecting previously unselected package libpython3.14-minimal:s390x. 123s (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 ... 87682 files and directories currently installed.) 123s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_s390x.deb ... 123s Unpacking libpython3.14-minimal:s390x (3.14.2-1) ... 123s Selecting previously unselected package python3.14-minimal. 123s Preparing to unpack .../python3.14-minimal_3.14.2-1_s390x.deb ... 123s Unpacking python3.14-minimal (3.14.2-1) ... 124s Setting up libpython3.14-minimal:s390x (3.14.2-1) ... 124s Setting up python3.14-minimal (3.14.2-1) ... 128s (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 ... 88024 files and directories currently installed.) 128s Preparing to unpack .../python3-minimal_3.14.2-1_s390x.deb ... 128s Unpacking python3-minimal (3.14.2-1) over (3.13.9-3) ... 129s Setting up python3-minimal (3.14.2-1) ... 129s (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 ... 88024 files and directories currently installed.) 129s Preparing to unpack .../python3_3.14.2-1_s390x.deb ... 130s running python pre-rtupdate hooks for python3.14... 130s Unpacking python3 (3.14.2-1) over (3.13.9-3) ... 130s Selecting previously unselected package libpython3.14-stdlib:s390x. 130s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_s390x.deb ... 130s Unpacking libpython3.14-stdlib:s390x (3.14.2-1) ... 130s Selecting previously unselected package python3.14. 130s Preparing to unpack .../python3.14_3.14.2-1_s390x.deb ... 130s Unpacking python3.14 (3.14.2-1) ... 130s Preparing to unpack .../libpython3-stdlib_3.14.2-1_s390x.deb ... 130s Unpacking libpython3-stdlib:s390x (3.14.2-1) over (3.13.9-3) ... 130s Preparing to unpack .../python3-gdbm_3.14.2-1_s390x.deb ... 130s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-3) ... 131s Setting up libpython3.14-stdlib:s390x (3.14.2-1) ... 131s Setting up python3.14 (3.14.2-1) ... 135s Setting up libpython3-stdlib:s390x (3.14.2-1) ... 135s Setting up python3-gdbm (3.14.2-1) ... 135s Setting up python3 (3.14.2-1) ... 135s running python rtupdate hooks for python3.14... 135s running python post-rtupdate hooks for python3.14... 135s Processing triggers for man-db (2.13.1-1) ... 136s Processing triggers for systemd (259-1ubuntu2) ... 137s autopkgtest [01:51:48]: upgrading testbed (apt dist-upgrade and autopurge) 138s Reading package lists... 139s Building dependency tree... 139s Reading state information... 139s Calculating upgrade... 140s The following packages were automatically installed and are no longer required: 140s python3.13 python3.13-minimal 140s Use 'sudo apt autoremove' to remove them. 140s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 140s Reading package lists... 141s Building dependency tree... 142s Reading state information... 142s Solving dependencies... 142s The following packages will be REMOVED: 142s python3.13* python3.13-minimal* 144s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 144s After this operation, 8012 kB disk space will be freed. 144s (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 ... 88454 files and directories currently installed.) 144s Removing python3.13 (3.13.11-1) ... 144s Removing python3.13-minimal (3.13.11-1) ... 147s Processing triggers for man-db (2.13.1-1) ... 148s Processing triggers for systemd (259-1ubuntu2) ... 149s (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 ... 88427 files and directories currently installed.) 149s Purging configuration files for python3.13-minimal (3.13.11-1) ... 154s autopkgtest [01:52:05]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP Mon Jan 12 15:39:23 UTC 2026 154s autopkgtest [01:52:05]: @@@@@@@@@@@@@@@@@@@@ apt-source sphinx-theme-builder 158s Get:1 http://ftpmaster.internal/ubuntu resolute/universe sphinx-theme-builder 0.2.0b2-5 (dsc) [2556 B] 158s Get:2 http://ftpmaster.internal/ubuntu resolute/universe sphinx-theme-builder 0.2.0b2-5 (tar) [40.8 kB] 158s Get:3 http://ftpmaster.internal/ubuntu resolute/universe sphinx-theme-builder 0.2.0b2-5 (diff) [5508 B] 158s gpgv: Signature made Sat Feb 22 18:29:32 2025 UTC 158s gpgv: using RSA key 2EE7A7A517FC124CF115C354651EEFB02527DF13 158s gpgv: issuer "roam@debian.org" 158s gpgv: Can't check signature: No public key 158s dpkg-source: warning: cannot verify inline signature for ./sphinx-theme-builder_0.2.0b2-5.dsc: no acceptable signature found 158s autopkgtest [01:52:09]: testing package sphinx-theme-builder version 0.2.0b2-5 158s autopkgtest [01:52:09]: build not needed 159s autopkgtest [01:52:10]: test pytest: preparing testbed 159s Reading package lists... 160s Building dependency tree... 160s Reading state information... 161s Solving dependencies... 161s The following NEW packages will be installed: 161s cpp cpp-15 cpp-15-s390x-linux-gnu cpp-s390x-linux-gnu docutils-common g++ 161s g++-15 g++-15-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-15 161s gcc-15-s390x-linux-gnu gcc-s390x-linux-gnu libasan8 libcc1-0 libgcc-15-dev 161s libgomp1 libisl23 libitm1 libjson-perl libmpc3 libssl-dev libstdc++-15-dev 161s libubsan1 nodeenv python3-alabaster python3-all python3-anyio python3-build 161s python3-click python3-colorama python3-defusedxml python3-docutils 161s python3-h11 python3-imagesize python3-iniconfig python3-livereload 161s python3-pluggy python3-pyproject-hooks python3-pyproject-metadata 161s python3-pytest python3-roman-numerals python3-sniffio 161s python3-snowballstemmer python3-sphinx python3-sphinx-autobuild 161s python3-sphinx-theme-builder python3-starlette python3-tornado 161s python3-uvicorn python3-uvloop python3-watchfiles python3-websockets 161s python3-wheel python3-wsproto python3.13 python3.13-minimal sgml-base 161s sphinx-common xml-core 161s 0 upgraded, 60 newly installed, 0 to remove and 0 not upgraded. 161s Need to get 61.5 MB of archives. 161s After this operation, 210 MB of additional disk space will be used. 161s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x python3.13-minimal s390x 3.13.11-1 [2405 kB] 162s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x python3.13 s390x 3.13.11-1 [758 kB] 163s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x libisl23 s390x 0.27-1build1 [702 kB] 163s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x libmpc3 s390x 1.3.1-2 [57.4 kB] 163s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15-s390x-linux-gnu s390x 15.2.0-11ubuntu1 [10.2 MB] 164s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15 s390x 15.2.0-11ubuntu1 [1028 B] 164s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [5746 B] 164s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x cpp s390x 4:15.2.0-4ubuntu1 [22.4 kB] 164s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x sgml-base all 1.31+nmu1 [11.0 kB] 164s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x xml-core all 0.19build1 [20.3 kB] 164s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x docutils-common all 0.22.4+dfsg-1 [130 kB] 164s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x libcc1-0 s390x 15.2.0-11ubuntu1 [50.0 kB] 164s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x libgomp1 s390x 15.2.0-11ubuntu1 [154 kB] 164s Get:14 http://ftpmaster.internal/ubuntu resolute/main s390x libitm1 s390x 15.2.0-11ubuntu1 [30.9 kB] 164s Get:15 http://ftpmaster.internal/ubuntu resolute/main s390x libasan8 s390x 15.2.0-11ubuntu1 [2968 kB] 164s Get:16 http://ftpmaster.internal/ubuntu resolute/main s390x libubsan1 s390x 15.2.0-11ubuntu1 [1211 kB] 164s Get:17 http://ftpmaster.internal/ubuntu resolute/main s390x libgcc-15-dev s390x 15.2.0-11ubuntu1 [1045 kB] 165s Get:18 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15-s390x-linux-gnu s390x 15.2.0-11ubuntu1 [19.9 MB] 166s Get:19 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15 s390x 15.2.0-11ubuntu1 [517 kB] 166s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [1208 B] 166s Get:21 http://ftpmaster.internal/ubuntu resolute/main s390x gcc s390x 4:15.2.0-4ubuntu1 [5018 B] 166s Get:22 http://ftpmaster.internal/ubuntu resolute/main s390x libstdc++-15-dev s390x 15.2.0-11ubuntu1 [2660 kB] 166s Get:23 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15-s390x-linux-gnu s390x 15.2.0-11ubuntu1 [11.7 MB] 168s Get:24 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15 s390x 15.2.0-11ubuntu1 [24.6 kB] 168s Get:25 http://ftpmaster.internal/ubuntu resolute/main s390x g++-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [956 B] 168s Get:26 http://ftpmaster.internal/ubuntu resolute/main s390x g++ s390x 4:15.2.0-4ubuntu1 [1078 B] 168s Get:27 http://ftpmaster.internal/ubuntu resolute/main s390x libjson-perl all 4.10000-1 [81.9 kB] 168s Get:28 http://ftpmaster.internal/ubuntu resolute/main s390x libssl-dev s390x 3.5.3-1ubuntu2 [2601 kB] 168s Get:29 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3-all s390x 3.14.2-1 [890 B] 168s Get:30 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-sniffio all 1.3.1-1 [7262 B] 168s Get:31 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-anyio all 4.11.0-3 [72.6 kB] 168s Get:32 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 168s Get:33 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-wheel all 0.46.1-2 [22.1 kB] 168s Get:34 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-build all 1.2.2-5 [30.9 kB] 168s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x python3-click all 8.2.0+0.really.8.1.8-1build1 [80.2 kB] 168s Get:36 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-colorama all 0.4.6-4build1 [32.2 kB] 168s Get:37 http://ftpmaster.internal/ubuntu resolute/main s390x python3-defusedxml all 0.7.1-3build1 [42.4 kB] 168s Get:38 http://ftpmaster.internal/ubuntu resolute/main s390x python3-roman-numerals all 4.1.0-1 [8660 B] 168s Get:39 http://ftpmaster.internal/ubuntu resolute/main s390x python3-docutils all 0.22.4+dfsg-1 [439 kB] 168s Get:40 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-h11 all 0.14.0-1.1 [51.6 kB] 168s Get:41 http://ftpmaster.internal/ubuntu resolute/main s390x python3-imagesize all 1.4.1-1build1 [6900 B] 168s Get:42 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-iniconfig all 2.1.0-2 [6962 B] 168s Get:43 http://ftpmaster.internal/ubuntu resolute/main s390x python3-tornado s390x 6.5.4-0.1 [306 kB] 168s Get:44 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-livereload all 2.7.1-0.1 [22.7 kB] 168s Get:45 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pluggy all 1.6.0-2 [21.1 kB] 168s Get:46 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pyproject-metadata all 0.10.0-1 [20.4 kB] 168s Get:47 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest all 9.0.2-2 [277 kB] 168s Get:48 http://ftpmaster.internal/ubuntu resolute/main s390x python3-snowballstemmer all 3.0.1-1 [65.9 kB] 168s Get:49 http://ftpmaster.internal/ubuntu resolute/main s390x sphinx-common all 8.2.3-12 [657 kB] 168s Get:50 http://ftpmaster.internal/ubuntu resolute/main s390x python3-alabaster all 0.7.16-0.1build1 [18.6 kB] 168s Get:51 http://ftpmaster.internal/ubuntu resolute/main s390x python3-sphinx all 8.2.3-12 [483 kB] 168s Get:52 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-starlette all 0.50.0-1 [53.0 kB] 168s Get:53 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-uvloop s390x 0.22.1+ds1-2 [942 kB] 168s Get:54 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-wsproto all 1.3.2-1 [21.8 kB] 168s Get:55 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-uvicorn all 0.38.0-1 [45.9 kB] 168s Get:56 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-watchfiles s390x 1.1.1-2 [399 kB] 168s Get:57 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-websockets s390x 15.0.1-1build1 [98.5 kB] 168s Get:58 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-sphinx-autobuild all 2025.08.25-1 [12.0 kB] 168s Get:59 http://ftpmaster.internal/ubuntu resolute/universe s390x nodeenv all 1.9.1-3 [22.7 kB] 168s Get:60 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-sphinx-theme-builder all 0.2.0b2-5 [22.7 kB] 169s Fetched 61.5 MB in 7s (9131 kB/s) 169s Selecting previously unselected package python3.13-minimal. 169s (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 ... 88429 files and directories currently installed.) 170s Preparing to unpack .../00-python3.13-minimal_3.13.11-1_s390x.deb ... 170s Unpacking python3.13-minimal (3.13.11-1) ... 170s Selecting previously unselected package python3.13. 170s Preparing to unpack .../01-python3.13_3.13.11-1_s390x.deb ... 170s Unpacking python3.13 (3.13.11-1) ... 170s Selecting previously unselected package libisl23:s390x. 170s Preparing to unpack .../02-libisl23_0.27-1build1_s390x.deb ... 170s Unpacking libisl23:s390x (0.27-1build1) ... 170s Selecting previously unselected package libmpc3:s390x. 170s Preparing to unpack .../03-libmpc3_1.3.1-2_s390x.deb ... 170s Unpacking libmpc3:s390x (1.3.1-2) ... 170s Selecting previously unselected package cpp-15-s390x-linux-gnu. 170s Preparing to unpack .../04-cpp-15-s390x-linux-gnu_15.2.0-11ubuntu1_s390x.deb ... 170s Unpacking cpp-15-s390x-linux-gnu (15.2.0-11ubuntu1) ... 171s Selecting previously unselected package cpp-15. 171s Preparing to unpack .../05-cpp-15_15.2.0-11ubuntu1_s390x.deb ... 171s Unpacking cpp-15 (15.2.0-11ubuntu1) ... 171s Selecting previously unselected package cpp-s390x-linux-gnu. 171s Preparing to unpack .../06-cpp-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 171s Unpacking cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 171s Selecting previously unselected package cpp. 171s Preparing to unpack .../07-cpp_4%3a15.2.0-4ubuntu1_s390x.deb ... 171s Unpacking cpp (4:15.2.0-4ubuntu1) ... 171s Selecting previously unselected package sgml-base. 171s Preparing to unpack .../08-sgml-base_1.31+nmu1_all.deb ... 171s Unpacking sgml-base (1.31+nmu1) ... 171s Selecting previously unselected package xml-core. 171s Preparing to unpack .../09-xml-core_0.19build1_all.deb ... 171s Unpacking xml-core (0.19build1) ... 171s Selecting previously unselected package docutils-common. 171s Preparing to unpack .../10-docutils-common_0.22.4+dfsg-1_all.deb ... 171s Unpacking docutils-common (0.22.4+dfsg-1) ... 171s Selecting previously unselected package libcc1-0:s390x. 171s Preparing to unpack .../11-libcc1-0_15.2.0-11ubuntu1_s390x.deb ... 171s Unpacking libcc1-0:s390x (15.2.0-11ubuntu1) ... 171s Selecting previously unselected package libgomp1:s390x. 171s Preparing to unpack .../12-libgomp1_15.2.0-11ubuntu1_s390x.deb ... 171s Unpacking libgomp1:s390x (15.2.0-11ubuntu1) ... 172s Selecting previously unselected package libitm1:s390x. 172s Preparing to unpack .../13-libitm1_15.2.0-11ubuntu1_s390x.deb ... 172s Unpacking libitm1:s390x (15.2.0-11ubuntu1) ... 172s Selecting previously unselected package libasan8:s390x. 172s Preparing to unpack .../14-libasan8_15.2.0-11ubuntu1_s390x.deb ... 172s Unpacking libasan8:s390x (15.2.0-11ubuntu1) ... 172s Selecting previously unselected package libubsan1:s390x. 172s Preparing to unpack .../15-libubsan1_15.2.0-11ubuntu1_s390x.deb ... 172s Unpacking libubsan1:s390x (15.2.0-11ubuntu1) ... 172s Selecting previously unselected package libgcc-15-dev:s390x. 172s Preparing to unpack .../16-libgcc-15-dev_15.2.0-11ubuntu1_s390x.deb ... 172s Unpacking libgcc-15-dev:s390x (15.2.0-11ubuntu1) ... 172s Selecting previously unselected package gcc-15-s390x-linux-gnu. 173s Preparing to unpack .../17-gcc-15-s390x-linux-gnu_15.2.0-11ubuntu1_s390x.deb ... 173s Unpacking gcc-15-s390x-linux-gnu (15.2.0-11ubuntu1) ... 174s Selecting previously unselected package gcc-15. 174s Preparing to unpack .../18-gcc-15_15.2.0-11ubuntu1_s390x.deb ... 174s Unpacking gcc-15 (15.2.0-11ubuntu1) ... 174s Selecting previously unselected package gcc-s390x-linux-gnu. 174s Preparing to unpack .../19-gcc-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 174s Unpacking gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 174s Selecting previously unselected package gcc. 174s Preparing to unpack .../20-gcc_4%3a15.2.0-4ubuntu1_s390x.deb ... 174s Unpacking gcc (4:15.2.0-4ubuntu1) ... 174s Selecting previously unselected package libstdc++-15-dev:s390x. 174s Preparing to unpack .../21-libstdc++-15-dev_15.2.0-11ubuntu1_s390x.deb ... 174s Unpacking libstdc++-15-dev:s390x (15.2.0-11ubuntu1) ... 175s Selecting previously unselected package g++-15-s390x-linux-gnu. 175s Preparing to unpack .../22-g++-15-s390x-linux-gnu_15.2.0-11ubuntu1_s390x.deb ... 175s Unpacking g++-15-s390x-linux-gnu (15.2.0-11ubuntu1) ... 176s Selecting previously unselected package g++-15. 176s Preparing to unpack .../23-g++-15_15.2.0-11ubuntu1_s390x.deb ... 176s Unpacking g++-15 (15.2.0-11ubuntu1) ... 176s Selecting previously unselected package g++-s390x-linux-gnu. 176s Preparing to unpack .../24-g++-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 176s Unpacking g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 176s Selecting previously unselected package g++. 176s Preparing to unpack .../25-g++_4%3a15.2.0-4ubuntu1_s390x.deb ... 176s Unpacking g++ (4:15.2.0-4ubuntu1) ... 176s Selecting previously unselected package libjson-perl. 176s Preparing to unpack .../26-libjson-perl_4.10000-1_all.deb ... 176s Unpacking libjson-perl (4.10000-1) ... 176s Selecting previously unselected package libssl-dev:s390x. 176s Preparing to unpack .../27-libssl-dev_3.5.3-1ubuntu2_s390x.deb ... 176s Unpacking libssl-dev:s390x (3.5.3-1ubuntu2) ... 177s Selecting previously unselected package python3-all. 177s Preparing to unpack .../28-python3-all_3.14.2-1_s390x.deb ... 177s Unpacking python3-all (3.14.2-1) ... 177s Selecting previously unselected package python3-sniffio. 177s Preparing to unpack .../29-python3-sniffio_1.3.1-1_all.deb ... 177s Unpacking python3-sniffio (1.3.1-1) ... 177s Selecting previously unselected package python3-anyio. 177s Preparing to unpack .../30-python3-anyio_4.11.0-3_all.deb ... 177s Unpacking python3-anyio (4.11.0-3) ... 177s Selecting previously unselected package python3-pyproject-hooks. 177s Preparing to unpack .../31-python3-pyproject-hooks_1.2.0-1_all.deb ... 177s Unpacking python3-pyproject-hooks (1.2.0-1) ... 177s Selecting previously unselected package python3-wheel. 177s Preparing to unpack .../32-python3-wheel_0.46.1-2_all.deb ... 177s Unpacking python3-wheel (0.46.1-2) ... 177s Selecting previously unselected package python3-build. 177s Preparing to unpack .../33-python3-build_1.2.2-5_all.deb ... 177s Unpacking python3-build (1.2.2-5) ... 177s Selecting previously unselected package python3-click. 177s Preparing to unpack .../34-python3-click_8.2.0+0.really.8.1.8-1build1_all.deb ... 177s Unpacking python3-click (8.2.0+0.really.8.1.8-1build1) ... 177s Selecting previously unselected package python3-colorama. 177s Preparing to unpack .../35-python3-colorama_0.4.6-4build1_all.deb ... 177s Unpacking python3-colorama (0.4.6-4build1) ... 177s Selecting previously unselected package python3-defusedxml. 177s Preparing to unpack .../36-python3-defusedxml_0.7.1-3build1_all.deb ... 177s Unpacking python3-defusedxml (0.7.1-3build1) ... 177s Selecting previously unselected package python3-roman-numerals. 177s Preparing to unpack .../37-python3-roman-numerals_4.1.0-1_all.deb ... 177s Unpacking python3-roman-numerals (4.1.0-1) ... 178s Selecting previously unselected package python3-docutils. 178s Preparing to unpack .../38-python3-docutils_0.22.4+dfsg-1_all.deb ... 178s Unpacking python3-docutils (0.22.4+dfsg-1) ... 178s Selecting previously unselected package python3-h11. 178s Preparing to unpack .../39-python3-h11_0.14.0-1.1_all.deb ... 178s Unpacking python3-h11 (0.14.0-1.1) ... 178s Selecting previously unselected package python3-imagesize. 178s Preparing to unpack .../40-python3-imagesize_1.4.1-1build1_all.deb ... 178s Unpacking python3-imagesize (1.4.1-1build1) ... 178s Selecting previously unselected package python3-iniconfig. 178s Preparing to unpack .../41-python3-iniconfig_2.1.0-2_all.deb ... 178s Unpacking python3-iniconfig (2.1.0-2) ... 178s Selecting previously unselected package python3-tornado. 178s Preparing to unpack .../42-python3-tornado_6.5.4-0.1_s390x.deb ... 178s Unpacking python3-tornado (6.5.4-0.1) ... 178s Selecting previously unselected package python3-livereload. 178s Preparing to unpack .../43-python3-livereload_2.7.1-0.1_all.deb ... 178s Unpacking python3-livereload (2.7.1-0.1) ... 178s Selecting previously unselected package python3-pluggy. 178s Preparing to unpack .../44-python3-pluggy_1.6.0-2_all.deb ... 178s Unpacking python3-pluggy (1.6.0-2) ... 178s Selecting previously unselected package python3-pyproject-metadata. 178s Preparing to unpack .../45-python3-pyproject-metadata_0.10.0-1_all.deb ... 178s Unpacking python3-pyproject-metadata (0.10.0-1) ... 178s Selecting previously unselected package python3-pytest. 178s Preparing to unpack .../46-python3-pytest_9.0.2-2_all.deb ... 178s Unpacking python3-pytest (9.0.2-2) ... 179s Selecting previously unselected package python3-snowballstemmer. 179s Preparing to unpack .../47-python3-snowballstemmer_3.0.1-1_all.deb ... 179s Unpacking python3-snowballstemmer (3.0.1-1) ... 179s Selecting previously unselected package sphinx-common. 179s Preparing to unpack .../48-sphinx-common_8.2.3-12_all.deb ... 179s Unpacking sphinx-common (8.2.3-12) ... 179s Selecting previously unselected package python3-alabaster. 179s Preparing to unpack .../49-python3-alabaster_0.7.16-0.1build1_all.deb ... 179s Unpacking python3-alabaster (0.7.16-0.1build1) ... 179s Selecting previously unselected package python3-sphinx. 179s Preparing to unpack .../50-python3-sphinx_8.2.3-12_all.deb ... 179s Unpacking python3-sphinx (8.2.3-12) ... 180s Selecting previously unselected package python3-starlette. 180s Preparing to unpack .../51-python3-starlette_0.50.0-1_all.deb ... 180s Unpacking python3-starlette (0.50.0-1) ... 180s Selecting previously unselected package python3-uvloop. 180s Preparing to unpack .../52-python3-uvloop_0.22.1+ds1-2_s390x.deb ... 180s Unpacking python3-uvloop (0.22.1+ds1-2) ... 180s Selecting previously unselected package python3-wsproto. 180s Preparing to unpack .../53-python3-wsproto_1.3.2-1_all.deb ... 180s Unpacking python3-wsproto (1.3.2-1) ... 180s Selecting previously unselected package python3-uvicorn. 180s Preparing to unpack .../54-python3-uvicorn_0.38.0-1_all.deb ... 180s Unpacking python3-uvicorn (0.38.0-1) ... 180s Selecting previously unselected package python3-watchfiles. 180s Preparing to unpack .../55-python3-watchfiles_1.1.1-2_s390x.deb ... 180s Unpacking python3-watchfiles (1.1.1-2) ... 180s Selecting previously unselected package python3-websockets. 180s Preparing to unpack .../56-python3-websockets_15.0.1-1build1_s390x.deb ... 180s Unpacking python3-websockets (15.0.1-1build1) ... 180s Selecting previously unselected package python3-sphinx-autobuild. 180s Preparing to unpack .../57-python3-sphinx-autobuild_2025.08.25-1_all.deb ... 180s Unpacking python3-sphinx-autobuild (2025.08.25-1) ... 180s Selecting previously unselected package nodeenv. 180s Preparing to unpack .../58-nodeenv_1.9.1-3_all.deb ... 180s Unpacking nodeenv (1.9.1-3) ... 180s Selecting previously unselected package python3-sphinx-theme-builder. 180s Preparing to unpack .../59-python3-sphinx-theme-builder_0.2.0b2-5_all.deb ... 180s Unpacking python3-sphinx-theme-builder (0.2.0b2-5) ... 180s Setting up python3-iniconfig (2.1.0-2) ... 181s Setting up python3-sniffio (1.3.1-1) ... 182s Setting up python3-tornado (6.5.4-0.1) ... 184s Setting up python3-anyio (4.11.0-3) ... 186s Setting up python3-pyproject-metadata (0.10.0-1) ... 186s Setting up python3-colorama (0.4.6-4build1) ... 186s Setting up python3-defusedxml (0.7.1-3build1) ... 187s Setting up python3-alabaster (0.7.16-0.1build1) ... 188s Setting up python3-watchfiles (1.1.1-2) ... 189s Setting up python3-starlette (0.50.0-1) ... 191s Setting up libgomp1:s390x (15.2.0-11ubuntu1) ... 191s Setting up python3-click (8.2.0+0.really.8.1.8-1build1) ... 192s Setting up python3-wheel (0.46.1-2) ... 193s Setting up python3-pyproject-hooks (1.2.0-1) ... 194s Setting up python3-snowballstemmer (3.0.1-1) ... 197s Setting up libssl-dev:s390x (3.5.3-1ubuntu2) ... 197s Setting up libmpc3:s390x (1.3.1-2) ... 197s Setting up python3-h11 (0.14.0-1.1) ... 198s Setting up python3-uvloop (0.22.1+ds1-2) ... 199s Setting up python3-pluggy (1.6.0-2) ... 199s Setting up libubsan1:s390x (15.2.0-11ubuntu1) ... 199s Setting up python3-livereload (2.7.1-0.1) ... 200s Setting up libasan8:s390x (15.2.0-11ubuntu1) ... 200s Setting up libjson-perl (4.10000-1) ... 200s Setting up python3-roman-numerals (4.1.0-1) ... 200s Setting up python3.13-minimal (3.13.11-1) ... 202s Setting up sgml-base (1.31+nmu1) ... 202s Setting up libisl23:s390x (0.27-1build1) ... 202s Setting up python3-build (1.2.2-5) ... 202s Setting up libcc1-0:s390x (15.2.0-11ubuntu1) ... 202s Setting up libitm1:s390x (15.2.0-11ubuntu1) ... 202s Setting up python3-imagesize (1.4.1-1build1) ... 203s Setting up python3-websockets (15.0.1-1build1) ... 204s Setting up libgcc-15-dev:s390x (15.2.0-11ubuntu1) ... 204s Setting up python3-wsproto (1.3.2-1) ... 204s Setting up python3.13 (3.13.11-1) ... 207s Setting up python3-pytest (9.0.2-2) ... 210s Setting up python3-all (3.14.2-1) ... 210s Setting up libstdc++-15-dev:s390x (15.2.0-11ubuntu1) ... 210s Setting up sphinx-common (8.2.3-12) ... 210s Setting up xml-core (0.19build1) ... 210s Setting up cpp-15-s390x-linux-gnu (15.2.0-11ubuntu1) ... 210s Setting up gcc-15-s390x-linux-gnu (15.2.0-11ubuntu1) ... 210s Setting up g++-15-s390x-linux-gnu (15.2.0-11ubuntu1) ... 210s Setting up python3-uvicorn (0.38.0-1) ... 210s Setting up cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 210s Setting up gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 210s Setting up cpp-15 (15.2.0-11ubuntu1) ... 210s Setting up cpp (4:15.2.0-4ubuntu1) ... 210s Setting up g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 210s Setting up gcc-15 (15.2.0-11ubuntu1) ... 210s Setting up g++-15 (15.2.0-11ubuntu1) ... 210s Setting up gcc (4:15.2.0-4ubuntu1) ... 210s Setting up g++ (4:15.2.0-4ubuntu1) ... 210s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 210s Setting up nodeenv (1.9.1-3) ... 211s Processing triggers for libc-bin (2.42-2ubuntu4) ... 211s Processing triggers for systemd (259-1ubuntu2) ... 211s Processing triggers for man-db (2.13.1-1) ... 215s Processing triggers for sgml-base (1.31+nmu1) ... 215s Setting up docutils-common (0.22.4+dfsg-1) ... 215s Processing triggers for sgml-base (1.31+nmu1) ... 215s Setting up python3-docutils (0.22.4+dfsg-1) ... 217s Setting up python3-sphinx (8.2.3-12) ... 223s Setting up python3-sphinx-autobuild (2025.08.25-1) ... 223s Setting up python3-sphinx-theme-builder (0.2.0b2-5) ... 226s autopkgtest [01:53:17]: test pytest: [----------------------- 226s === python3.13 === 228s ============================= test session starts ============================== 228s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 228s rootdir: /tmp/autopkgtest.3uIfW6/autopkgtest_tmp 228s plugins: typeguard-4.4.4, anyio-4.11.0 228s collected 52 items 228s 228s tests/integration/test_cli_compile.py .. [ 3%] 228s tests/integration/test_cli_new.py .... [ 11%] 228s tests/integration/test_cli_package.py . [ 13%] 228s tests/unit/test_errors.py ................... [ 50%] 228s tests/unit/test_project.py ................... [ 86%] 228s tests/workflow/test_cli.py ... [ 92%] 228s tests/workflow/test_new.py ... [ 98%] 229s tests/workflow/test_package.py . [100%] 229s 229s =============================== warnings summary =============================== 229s tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version 229s tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version 229s tests/unit/test_project.py::TestProjectFromPath::test_rejects_with_double_declaration 229s tests/unit/test_project.py::TestProjectFromPath::test_rejects_no_dynamic_with_version_in_python_file 229s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:43: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead 229s and isinstance(child.value, ast.Str) 229s 229s tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version 229s tests/unit/test_project.py::TestProjectFromPath::test_rejects_with_double_declaration 229s tests/unit/test_project.py::TestProjectFromPath::test_rejects_no_dynamic_with_version_in_python_file 229s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:45: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 229s version = child.value.s 229s 229s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 229s ======================== 52 passed, 7 warnings in 1.12s ======================== 229s === python3.14 === 233s ============================= test session starts ============================== 233s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 233s rootdir: /tmp/autopkgtest.3uIfW6/autopkgtest_tmp 233s plugins: typeguard-4.4.4, anyio-4.11.0 233s collected 52 items 233s 233s tests/integration/test_cli_compile.py .. [ 3%] 233s tests/integration/test_cli_new.py .... [ 11%] 233s tests/integration/test_cli_package.py . [ 13%] 233s tests/unit/test_errors.py ................... [ 50%] 233s tests/unit/test_project.py ........F..F.F..... [ 86%] 233s tests/workflow/test_cli.py ... [ 92%] 233s tests/workflow/test_new.py ... [ 98%] 234s tests/workflow/test_package.py . [100%] 234s 234s =================================== FAILURES =================================== 234s __________ TestProjectFromPath.test_works_with_proper_dynamic_version __________ 234s 234s self = 234s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-1/test_works_with_proper_dynamic0') 234s 234s def test_works_with_proper_dynamic_version(self, tmp_path: Path) -> None: 234s # GIVEN 234s (tmp_path / "pyproject.toml").write_text( 234s textwrap.dedent( 234s """ 234s [project] 234s name = "magic" 234s dynamic = ["version"] 234s license = { text = "MIT" } 234s 234s [tool.sphinx-theme-builder] 234s node-version = "16.13.0" 234s """ 234s ) 234s ) 234s (tmp_path / "src" / "magic").mkdir(parents=True) 234s (tmp_path / "src" / "magic" / "__init__.py").write_text( 234s textwrap.dedent( 234s """ 234s version = "2.3.4" # not really, we just ignore this. 234s __version__ = "1.2.3" 234s """ 234s ) 234s ) 234s 234s # WHEN 234s > project = Project.from_path(tmp_path) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s 234s tests/unit/test_project.py:224: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:247: in from_path 234s version_s, version_comes_from = _determine_version( 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:149: in _determine_version 234s declared_in_python = get_version_using_ast(package_init_file.read_bytes()) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s contents = b'\nversion = "2.3.4" # not really, we just ignore this.\n__version__ = "1.2.3"\n' 234s 234s def get_version_using_ast(contents: bytes) -> Optional[str]: 234s """Extract the version from the given file, using the Python AST.""" 234s tree = ast.parse(contents) 234s 234s # Only need to check the top-level nodes, and not recurse deeper. 234s version: Optional[str] = None 234s for child in tree.body: 234s # Look for a simple string assignment to __version__ 234s if ( 234s isinstance(child, ast.Assign) 234s and len(child.targets) == 1 234s and isinstance(child.targets[0], ast.Name) 234s and child.targets[0].id == "__version__" 234s > and isinstance(child.value, ast.Str) 234s ^^^^^^^ 234s ): 234s E AttributeError: module 'ast' has no attribute 'Str' 234s 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:43: AttributeError 234s ___________ TestProjectFromPath.test_rejects_with_double_declaration ___________ 234s 234s self = 234s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-1/test_rejects_with_double_decla0') 234s 234s def test_rejects_with_double_declaration(self, tmp_path: Path) -> None: 234s # GIVEN 234s (tmp_path / "pyproject.toml").write_text( 234s textwrap.dedent( 234s """ 234s [project] 234s name = "magic" 234s version = "1.2.3" 234s """ 234s ) 234s ) 234s (tmp_path / "src" / "magic").mkdir(parents=True) 234s (tmp_path / "src" / "magic" / "__init__.py").write_text('__version__ = "2.3.4"') 234s 234s # WHEN 234s with pytest.raises(InvalidProjectStructure) as ctx: 234s > Project.from_path(tmp_path) 234s 234s tests/unit/test_project.py:296: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:247: in from_path 234s version_s, version_comes_from = _determine_version( 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:149: in _determine_version 234s declared_in_python = get_version_using_ast(package_init_file.read_bytes()) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s contents = b'__version__ = "2.3.4"' 234s 234s def get_version_using_ast(contents: bytes) -> Optional[str]: 234s """Extract the version from the given file, using the Python AST.""" 234s tree = ast.parse(contents) 234s 234s # Only need to check the top-level nodes, and not recurse deeper. 234s version: Optional[str] = None 234s for child in tree.body: 234s # Look for a simple string assignment to __version__ 234s if ( 234s isinstance(child, ast.Assign) 234s and len(child.targets) == 1 234s and isinstance(child.targets[0], ast.Name) 234s and child.targets[0].id == "__version__" 234s > and isinstance(child.value, ast.Str) 234s ^^^^^^^ 234s ): 234s E AttributeError: module 'ast' has no attribute 'Str' 234s 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:43: AttributeError 234s ___ TestProjectFromPath.test_rejects_no_dynamic_with_version_in_python_file ____ 234s 234s self = 234s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-1/test_rejects_no_dynamic_with_v0') 234s 234s def test_rejects_no_dynamic_with_version_in_python_file( 234s self, tmp_path: Path 234s ) -> None: 234s # GIVEN 234s (tmp_path / "pyproject.toml").write_text( 234s textwrap.dedent( 234s """ 234s [project] 234s name = "magic" 234s """ 234s ) 234s ) 234s (tmp_path / "src" / "magic").mkdir(parents=True) 234s (tmp_path / "src" / "magic" / "__init__.py").write_text('__version__ = "1.2.3"') 234s 234s # WHEN 234s with pytest.raises(ImproperProjectMetadata) as ctx: 234s > Project.from_path(tmp_path) 234s 234s tests/unit/test_project.py:352: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:247: in from_path 234s version_s, version_comes_from = _determine_version( 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:149: in _determine_version 234s declared_in_python = get_version_using_ast(package_init_file.read_bytes()) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s contents = b'__version__ = "1.2.3"' 234s 234s def get_version_using_ast(contents: bytes) -> Optional[str]: 234s """Extract the version from the given file, using the Python AST.""" 234s tree = ast.parse(contents) 234s 234s # Only need to check the top-level nodes, and not recurse deeper. 234s version: Optional[str] = None 234s for child in tree.body: 234s # Look for a simple string assignment to __version__ 234s if ( 234s isinstance(child, ast.Assign) 234s and len(child.targets) == 1 234s and isinstance(child.targets[0], ast.Name) 234s and child.targets[0].id == "__version__" 234s > and isinstance(child.value, ast.Str) 234s ^^^^^^^ 234s ): 234s E AttributeError: module 'ast' has no attribute 'Str' 234s 234s /usr/lib/python3/dist-packages/sphinx_theme_builder/_internal/project.py:43: AttributeError 234s =========================== short test summary info ============================ 234s FAILED tests/unit/test_project.py::TestProjectFromPath::test_works_with_proper_dynamic_version 234s FAILED tests/unit/test_project.py::TestProjectFromPath::test_rejects_with_double_declaration 234s FAILED tests/unit/test_project.py::TestProjectFromPath::test_rejects_no_dynamic_with_version_in_python_file 234s ========================= 3 failed, 49 passed in 3.04s ========================= 235s autopkgtest [01:53:26]: test pytest: -----------------------] 235s autopkgtest [01:53:26]: test pytest: - - - - - - - - - - results - - - - - - - - - - 235s pytest FAIL non-zero exit status 1 235s autopkgtest [01:53:26]: @@@@@@@@@@@@@@@@@@@@ summary 235s pytest FAIL non-zero exit status 1