0s autopkgtest [11:38:07]: starting date and time: 2025-11-17 11:38:07+0000 0s autopkgtest [11:38:07]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [11:38:07]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.6msksh44/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python3-defaults --apt-upgrade dataclasses-json --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- lxd -r lxd-armhf-10.145.243.221 lxd-armhf-10.145.243.221:autopkgtest/ubuntu/resolute/armhf 21s autopkgtest [11:38:28]: testbed dpkg architecture: armhf 23s autopkgtest [11:38:30]: testbed apt version: 3.1.11 26s autopkgtest [11:38:33]: @@@@@@@@@@@@@@@@@@@@ test bed setup 28s autopkgtest [11:38:35]: testbed release detected to be: None 36s autopkgtest [11:38:43]: updating testbed package index (apt update) 39s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 39s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [87.8 kB] 39s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 39s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 39s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 39s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 39s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 39s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 39s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [138 kB] 39s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted armhf Packages [940 B] 39s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [536 kB] 39s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9684 B] 39s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 40s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1416 kB] 40s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1369 kB] 40s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.2 MB] 44s Fetched 41.1 MB in 5s (8204 kB/s) 45s Reading package lists... 50s autopkgtest [11:38:57]: upgrading testbed (apt dist-upgrade and autopurge) 52s Reading package lists... 53s Building dependency tree... 53s Reading state information... 54s Calculating upgrade... 54s The following packages will be upgraded: 54s libpython3-stdlib python3 python3-minimal usbutils 54s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 54s Need to get 140 kB of archives. 54s After this operation, 0 B of additional disk space will be used. 54s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-minimal armhf 3.13.7-2 [27.8 kB] 55s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3 armhf 3.13.7-2 [23.9 kB] 55s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpython3-stdlib armhf 3.13.7-2 [10.6 kB] 55s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf usbutils armhf 1:019-1 [77.7 kB] 55s Fetched 140 kB in 0s (354 kB/s) 55s (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 ... 65904 files and directories currently installed.) 55s Preparing to unpack .../python3-minimal_3.13.7-2_armhf.deb ... 55s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 55s Setting up python3-minimal (3.13.7-2) ... 56s (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 ... 65904 files and directories currently installed.) 56s Preparing to unpack .../python3_3.13.7-2_armhf.deb ... 56s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 56s Preparing to unpack .../libpython3-stdlib_3.13.7-2_armhf.deb ... 56s Unpacking libpython3-stdlib:armhf (3.13.7-2) over (3.13.7-1) ... 56s Preparing to unpack .../usbutils_1%3a019-1_armhf.deb ... 56s Unpacking usbutils (1:019-1) over (1:018-2) ... 56s Setting up usbutils (1:019-1) ... 56s Setting up libpython3-stdlib:armhf (3.13.7-2) ... 56s Setting up python3 (3.13.7-2) ... 56s Processing triggers for man-db (2.13.1-1) ... 59s Reading package lists... 59s Building dependency tree... 59s Reading state information... 59s Solving dependencies... 60s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 62s autopkgtest [11:39:09]: rebooting testbed after setup commands that affected boot 104s autopkgtest [11:39:51]: testbed running kernel: Linux 6.8.0-86-generic #87~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 29 09:26:46 UTC 2 130s autopkgtest [11:40:17]: @@@@@@@@@@@@@@@@@@@@ apt-source dataclasses-json 140s Get:1 http://ftpmaster.internal/ubuntu resolute/universe dataclasses-json 0.6.7-1 (dsc) [1733 B] 140s Get:2 http://ftpmaster.internal/ubuntu resolute/universe dataclasses-json 0.6.7-1 (tar) [65.2 kB] 140s Get:3 http://ftpmaster.internal/ubuntu resolute/universe dataclasses-json 0.6.7-1 (diff) [3188 B] 140s gpgv: Signature made Thu Jul 4 00:01:01 2024 UTC 140s gpgv: using EDDSA key CAA7400707A816B0202FC3CDF4257A50B21CFA85 140s gpgv: Can't check signature: No public key 140s dpkg-source: warning: cannot verify inline signature for ./dataclasses-json_0.6.7-1.dsc: no acceptable signature found 140s autopkgtest [11:40:27]: testing package dataclasses-json version 0.6.7-1 142s autopkgtest [11:40:29]: build not needed 144s autopkgtest [11:40:31]: test pybuild-autopkgtest: preparing testbed 146s Reading package lists... 147s Building dependency tree... 147s Reading state information... 147s Solving dependencies... 147s The following NEW packages will be installed: 147s autoconf automake autopoint autotools-dev build-essential cpp cpp-15 147s cpp-15-arm-linux-gnueabihf cpp-arm-linux-gnueabihf debhelper debugedit 147s dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-15 147s g++-15-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc gcc-15 147s gcc-15-arm-linux-gnueabihf gcc-arm-linux-gnueabihf gettext intltool-debian 147s libarchive-zip-perl libasan8 libc-dev-bin libc6-dev libcc1-0 libcrypt-dev 147s libdebhelper-perl libdw1t64 libfile-stripnondeterminism-perl libgcc-15-dev 147s libgomp1 libisl23 libmpc3 libpython3.14-minimal libpython3.14-stdlib 147s libstdc++-15-dev libtool libubsan1 linux-libc-dev m4 po-debconf 147s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python3-all 147s python3-build python3-dataclasses-json python3-dunamai python3-hypothesis 147s python3-iniconfig python3-installer python3-marshmallow python3-mypy 147s python3-mypy-extensions python3-pluggy python3-poetry-core 147s python3-poetry-dynamic-versioning python3-psutil python3-pyproject-hooks 147s python3-pytest python3-sortedcontainers python3-tomlkit 147s python3-typing-inspect python3-wheel python3.14 python3.14-minimal 147s rpcsvc-proto 147s 0 upgraded, 71 newly installed, 0 to remove and 0 not upgraded. 147s Need to get 75.2 MB of archives. 147s After this operation, 243 MB of additional disk space will be used. 147s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-minimal armhf 3.14.0-4 [892 kB] 148s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14-minimal armhf 3.14.0-4 [2146 kB] 148s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf m4 armhf 1.4.20-2 [212 kB] 148s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf autoconf all 2.72-3.1ubuntu1 [384 kB] 148s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf autotools-dev all 20240727.1 [43.4 kB] 148s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf automake all 1:1.18.1-2 [581 kB] 148s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf autopoint all 0.23.2-1 [620 kB] 148s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf libc-dev-bin armhf 2.42-2ubuntu2 [21.8 kB] 148s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf linux-libc-dev armhf 6.17.0-5.5 [1771 kB] 148s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf libcrypt-dev armhf 1:4.4.38-1build1 [120 kB] 148s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf rpcsvc-proto armhf 1.4.3-1 [62.3 kB] 148s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libc6-dev armhf 2.42-2ubuntu2 [1416 kB] 148s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libisl23 armhf 0.27-1 [546 kB] 148s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libmpc3 armhf 1.3.1-2 [47.0 kB] 148s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-7ubuntu1 [10.1 MB] 148s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15 armhf 15.2.0-7ubuntu1 [1030 B] 148s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [5756 B] 148s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf cpp armhf 4:15.2.0-4ubuntu1 [22.4 kB] 148s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf libcc1-0 armhf 15.2.0-7ubuntu1 [43.5 kB] 148s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf libgomp1 armhf 15.2.0-7ubuntu1 [129 kB] 148s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libasan8 armhf 15.2.0-7ubuntu1 [2950 kB] 148s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf libubsan1 armhf 15.2.0-7ubuntu1 [1187 kB] 148s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf libgcc-15-dev armhf 15.2.0-7ubuntu1 [898 kB] 149s Get:24 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-7ubuntu1 [19.5 MB] 149s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15 armhf 15.2.0-7ubuntu1 [493 kB] 149s Get:26 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [1220 B] 149s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf gcc armhf 4:15.2.0-4ubuntu1 [5022 B] 149s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf libstdc++-15-dev armhf 15.2.0-7ubuntu1 [2637 kB] 149s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-7ubuntu1 [11.4 MB] 149s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15 armhf 15.2.0-7ubuntu1 [23.7 kB] 149s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf g++-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [968 B] 149s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf g++ armhf 4:15.2.0-4ubuntu1 [1086 B] 149s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf build-essential armhf 12.12ubuntu1 [5088 B] 149s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libdebhelper-perl all 13.24.2ubuntu1 [95.7 kB] 149s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libtool all 2.5.4-7 [169 kB] 149s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf dh-autoreconf all 21 [12.5 kB] 149s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libarchive-zip-perl all 1.68-1 [90.2 kB] 149s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf libfile-stripnondeterminism-perl all 1.15.0-1 [20.5 kB] 149s Get:39 http://ftpmaster.internal/ubuntu resolute/main armhf dh-strip-nondeterminism all 1.15.0-1 [5090 B] 149s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf libdw1t64 armhf 0.194-1 [254 kB] 149s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf debugedit armhf 1:5.2-3 [48.9 kB] 149s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf dwz armhf 0.16-2 [114 kB] 149s Get:43 http://ftpmaster.internal/ubuntu resolute/main armhf gettext armhf 0.23.2-1 [1059 kB] 149s Get:44 http://ftpmaster.internal/ubuntu resolute/main armhf intltool-debian all 0.35.0+20060710.6 [23.2 kB] 149s Get:45 http://ftpmaster.internal/ubuntu resolute/main armhf po-debconf all 1.0.21+nmu1 [233 kB] 149s Get:46 http://ftpmaster.internal/ubuntu resolute/main armhf debhelper all 13.24.2ubuntu1 [896 kB] 150s Get:47 http://ftpmaster.internal/ubuntu resolute/universe armhf dh-python all 6.20250414 [119 kB] 150s Get:48 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-stdlib armhf 3.14.0-4 [2270 kB] 150s Get:49 http://ftpmaster.internal/ubuntu resolute/universe armhf pybuild-plugin-autopkgtest all 6.20250414 [1746 B] 150s Get:50 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 150s Get:51 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-wheel all 0.46.1-2 [22.1 kB] 150s Get:52 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-build all 1.2.2-4 [31.0 kB] 150s Get:53 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 150s Get:54 http://ftpmaster.internal/ubuntu resolute/universe armhf pybuild-plugin-pyproject all 6.20250414 [1728 B] 150s Get:55 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14 armhf 3.14.0-4 [805 kB] 150s Get:56 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-all armhf 3.13.7-2 [890 B] 150s Get:57 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-marshmallow all 3.26.1-0.2 [47.5 kB] 150s Get:58 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-mypy-extensions all 1.1.0-1 [6716 B] 150s Get:59 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-typing-inspect all 0.9.0-1 [10.7 kB] 150s Get:60 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-dataclasses-json all 0.6.7-1 [32.7 kB] 150s Get:61 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-dunamai all 1.23.0-1 [25.2 kB] 150s Get:62 http://ftpmaster.internal/ubuntu resolute/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 150s Get:63 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-hypothesis all 6.130.5-2 [341 kB] 150s Get:64 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-iniconfig all 2.1.0-1 [6840 B] 150s Get:65 http://ftpmaster.internal/ubuntu resolute/main armhf python3-psutil armhf 7.1.0-1ubuntu1 [189 kB] 150s Get:66 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-mypy armhf 1.15.0-5 [9395 kB] 150s Get:67 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pluggy all 1.6.0-1 [21.0 kB] 150s Get:68 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-poetry-core all 2.2.1-2 [226 kB] 150s Get:69 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-tomlkit all 0.13.3-2 [39.1 kB] 150s Get:70 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-poetry-dynamic-versioning armhf 1.8.2-1 [27.3 kB] 150s Get:71 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pytest all 8.3.5-2 [252 kB] 151s Fetched 75.2 MB in 3s (26.1 MB/s) 151s Selecting previously unselected package libpython3.14-minimal:armhf. 151s (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 ... 65904 files and directories currently installed.) 151s Preparing to unpack .../00-libpython3.14-minimal_3.14.0-4_armhf.deb ... 151s Unpacking libpython3.14-minimal:armhf (3.14.0-4) ... 151s Selecting previously unselected package python3.14-minimal. 151s Preparing to unpack .../01-python3.14-minimal_3.14.0-4_armhf.deb ... 151s Unpacking python3.14-minimal (3.14.0-4) ... 151s Selecting previously unselected package m4. 151s Preparing to unpack .../02-m4_1.4.20-2_armhf.deb ... 151s Unpacking m4 (1.4.20-2) ... 151s Selecting previously unselected package autoconf. 151s Preparing to unpack .../03-autoconf_2.72-3.1ubuntu1_all.deb ... 151s Unpacking autoconf (2.72-3.1ubuntu1) ... 151s Selecting previously unselected package autotools-dev. 151s Preparing to unpack .../04-autotools-dev_20240727.1_all.deb ... 151s Unpacking autotools-dev (20240727.1) ... 151s Selecting previously unselected package automake. 151s Preparing to unpack .../05-automake_1%3a1.18.1-2_all.deb ... 151s Unpacking automake (1:1.18.1-2) ... 151s Selecting previously unselected package autopoint. 151s Preparing to unpack .../06-autopoint_0.23.2-1_all.deb ... 151s Unpacking autopoint (0.23.2-1) ... 151s Selecting previously unselected package libc-dev-bin. 151s Preparing to unpack .../07-libc-dev-bin_2.42-2ubuntu2_armhf.deb ... 151s Unpacking libc-dev-bin (2.42-2ubuntu2) ... 151s Selecting previously unselected package linux-libc-dev:armhf. 151s Preparing to unpack .../08-linux-libc-dev_6.17.0-5.5_armhf.deb ... 151s Unpacking linux-libc-dev:armhf (6.17.0-5.5) ... 151s Selecting previously unselected package libcrypt-dev:armhf. 151s Preparing to unpack .../09-libcrypt-dev_1%3a4.4.38-1build1_armhf.deb ... 151s Unpacking libcrypt-dev:armhf (1:4.4.38-1build1) ... 151s Selecting previously unselected package rpcsvc-proto. 151s Preparing to unpack .../10-rpcsvc-proto_1.4.3-1_armhf.deb ... 151s Unpacking rpcsvc-proto (1.4.3-1) ... 151s Selecting previously unselected package libc6-dev:armhf. 151s Preparing to unpack .../11-libc6-dev_2.42-2ubuntu2_armhf.deb ... 151s Unpacking libc6-dev:armhf (2.42-2ubuntu2) ... 151s Selecting previously unselected package libisl23:armhf. 151s Preparing to unpack .../12-libisl23_0.27-1_armhf.deb ... 151s Unpacking libisl23:armhf (0.27-1) ... 151s Selecting previously unselected package libmpc3:armhf. 152s Preparing to unpack .../13-libmpc3_1.3.1-2_armhf.deb ... 152s Unpacking libmpc3:armhf (1.3.1-2) ... 152s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 152s Preparing to unpack .../14-cpp-15-arm-linux-gnueabihf_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package cpp-15. 152s Preparing to unpack .../15-cpp-15_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking cpp-15 (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package cpp-arm-linux-gnueabihf. 152s Preparing to unpack .../16-cpp-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 152s Unpacking cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 152s Selecting previously unselected package cpp. 152s Preparing to unpack .../17-cpp_4%3a15.2.0-4ubuntu1_armhf.deb ... 152s Unpacking cpp (4:15.2.0-4ubuntu1) ... 152s Selecting previously unselected package libcc1-0:armhf. 152s Preparing to unpack .../18-libcc1-0_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking libcc1-0:armhf (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package libgomp1:armhf. 152s Preparing to unpack .../19-libgomp1_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking libgomp1:armhf (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package libasan8:armhf. 152s Preparing to unpack .../20-libasan8_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking libasan8:armhf (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package libubsan1:armhf. 152s Preparing to unpack .../21-libubsan1_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking libubsan1:armhf (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package libgcc-15-dev:armhf. 152s Preparing to unpack .../22-libgcc-15-dev_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking libgcc-15-dev:armhf (15.2.0-7ubuntu1) ... 152s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 152s Preparing to unpack .../23-gcc-15-arm-linux-gnueabihf_15.2.0-7ubuntu1_armhf.deb ... 152s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-7ubuntu1) ... 153s Selecting previously unselected package gcc-15. 153s Preparing to unpack .../24-gcc-15_15.2.0-7ubuntu1_armhf.deb ... 153s Unpacking gcc-15 (15.2.0-7ubuntu1) ... 153s Selecting previously unselected package gcc-arm-linux-gnueabihf. 153s Preparing to unpack .../25-gcc-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 153s Unpacking gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 153s Selecting previously unselected package gcc. 153s Preparing to unpack .../26-gcc_4%3a15.2.0-4ubuntu1_armhf.deb ... 153s Unpacking gcc (4:15.2.0-4ubuntu1) ... 153s Selecting previously unselected package libstdc++-15-dev:armhf. 153s Preparing to unpack .../27-libstdc++-15-dev_15.2.0-7ubuntu1_armhf.deb ... 153s Unpacking libstdc++-15-dev:armhf (15.2.0-7ubuntu1) ... 153s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 153s Preparing to unpack .../28-g++-15-arm-linux-gnueabihf_15.2.0-7ubuntu1_armhf.deb ... 153s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-7ubuntu1) ... 153s Selecting previously unselected package g++-15. 153s Preparing to unpack .../29-g++-15_15.2.0-7ubuntu1_armhf.deb ... 153s Unpacking g++-15 (15.2.0-7ubuntu1) ... 153s Selecting previously unselected package g++-arm-linux-gnueabihf. 153s Preparing to unpack .../30-g++-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 153s Unpacking g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 153s Selecting previously unselected package g++. 153s Preparing to unpack .../31-g++_4%3a15.2.0-4ubuntu1_armhf.deb ... 153s Unpacking g++ (4:15.2.0-4ubuntu1) ... 153s Selecting previously unselected package build-essential. 153s Preparing to unpack .../32-build-essential_12.12ubuntu1_armhf.deb ... 153s Unpacking build-essential (12.12ubuntu1) ... 153s Selecting previously unselected package libdebhelper-perl. 153s Preparing to unpack .../33-libdebhelper-perl_13.24.2ubuntu1_all.deb ... 153s Unpacking libdebhelper-perl (13.24.2ubuntu1) ... 153s Selecting previously unselected package libtool. 153s Preparing to unpack .../34-libtool_2.5.4-7_all.deb ... 153s Unpacking libtool (2.5.4-7) ... 153s Selecting previously unselected package dh-autoreconf. 153s Preparing to unpack .../35-dh-autoreconf_21_all.deb ... 153s Unpacking dh-autoreconf (21) ... 153s Selecting previously unselected package libarchive-zip-perl. 153s Preparing to unpack .../36-libarchive-zip-perl_1.68-1_all.deb ... 153s Unpacking libarchive-zip-perl (1.68-1) ... 153s Selecting previously unselected package libfile-stripnondeterminism-perl. 153s Preparing to unpack .../37-libfile-stripnondeterminism-perl_1.15.0-1_all.deb ... 153s Unpacking libfile-stripnondeterminism-perl (1.15.0-1) ... 153s Selecting previously unselected package dh-strip-nondeterminism. 153s Preparing to unpack .../38-dh-strip-nondeterminism_1.15.0-1_all.deb ... 153s Unpacking dh-strip-nondeterminism (1.15.0-1) ... 153s Selecting previously unselected package libdw1t64:armhf. 153s Preparing to unpack .../39-libdw1t64_0.194-1_armhf.deb ... 154s Unpacking libdw1t64:armhf (0.194-1) ... 154s Selecting previously unselected package debugedit. 154s Preparing to unpack .../40-debugedit_1%3a5.2-3_armhf.deb ... 154s Unpacking debugedit (1:5.2-3) ... 154s Selecting previously unselected package dwz. 154s Preparing to unpack .../41-dwz_0.16-2_armhf.deb ... 154s Unpacking dwz (0.16-2) ... 154s Selecting previously unselected package gettext. 154s Preparing to unpack .../42-gettext_0.23.2-1_armhf.deb ... 154s Unpacking gettext (0.23.2-1) ... 154s Selecting previously unselected package intltool-debian. 154s Preparing to unpack .../43-intltool-debian_0.35.0+20060710.6_all.deb ... 154s Unpacking intltool-debian (0.35.0+20060710.6) ... 154s Selecting previously unselected package po-debconf. 154s Preparing to unpack .../44-po-debconf_1.0.21+nmu1_all.deb ... 154s Unpacking po-debconf (1.0.21+nmu1) ... 154s Selecting previously unselected package debhelper. 154s Preparing to unpack .../45-debhelper_13.24.2ubuntu1_all.deb ... 154s Unpacking debhelper (13.24.2ubuntu1) ... 154s Selecting previously unselected package dh-python. 154s Preparing to unpack .../46-dh-python_6.20250414_all.deb ... 154s Unpacking dh-python (6.20250414) ... 154s Selecting previously unselected package libpython3.14-stdlib:armhf. 154s Preparing to unpack .../47-libpython3.14-stdlib_3.14.0-4_armhf.deb ... 154s Unpacking libpython3.14-stdlib:armhf (3.14.0-4) ... 154s Selecting previously unselected package pybuild-plugin-autopkgtest. 154s Preparing to unpack .../48-pybuild-plugin-autopkgtest_6.20250414_all.deb ... 154s Unpacking pybuild-plugin-autopkgtest (6.20250414) ... 154s Selecting previously unselected package python3-pyproject-hooks. 154s Preparing to unpack .../49-python3-pyproject-hooks_1.2.0-1_all.deb ... 154s Unpacking python3-pyproject-hooks (1.2.0-1) ... 154s Selecting previously unselected package python3-wheel. 154s Preparing to unpack .../50-python3-wheel_0.46.1-2_all.deb ... 154s Unpacking python3-wheel (0.46.1-2) ... 154s Selecting previously unselected package python3-build. 154s Preparing to unpack .../51-python3-build_1.2.2-4_all.deb ... 154s Unpacking python3-build (1.2.2-4) ... 154s Selecting previously unselected package python3-installer. 154s Preparing to unpack .../52-python3-installer_0.7.0+dfsg1-3_all.deb ... 154s Unpacking python3-installer (0.7.0+dfsg1-3) ... 154s Selecting previously unselected package pybuild-plugin-pyproject. 154s Preparing to unpack .../53-pybuild-plugin-pyproject_6.20250414_all.deb ... 154s Unpacking pybuild-plugin-pyproject (6.20250414) ... 154s Selecting previously unselected package python3.14. 154s Preparing to unpack .../54-python3.14_3.14.0-4_armhf.deb ... 154s Unpacking python3.14 (3.14.0-4) ... 154s Selecting previously unselected package python3-all. 154s Preparing to unpack .../55-python3-all_3.13.7-2_armhf.deb ... 154s Unpacking python3-all (3.13.7-2) ... 154s Selecting previously unselected package python3-marshmallow. 154s Preparing to unpack .../56-python3-marshmallow_3.26.1-0.2_all.deb ... 154s Unpacking python3-marshmallow (3.26.1-0.2) ... 154s Selecting previously unselected package python3-mypy-extensions. 154s Preparing to unpack .../57-python3-mypy-extensions_1.1.0-1_all.deb ... 154s Unpacking python3-mypy-extensions (1.1.0-1) ... 154s Selecting previously unselected package python3-typing-inspect. 154s Preparing to unpack .../58-python3-typing-inspect_0.9.0-1_all.deb ... 154s Unpacking python3-typing-inspect (0.9.0-1) ... 154s Selecting previously unselected package python3-dataclasses-json. 154s Preparing to unpack .../59-python3-dataclasses-json_0.6.7-1_all.deb ... 154s Unpacking python3-dataclasses-json (0.6.7-1) ... 154s Selecting previously unselected package python3-dunamai. 154s Preparing to unpack .../60-python3-dunamai_1.23.0-1_all.deb ... 154s Unpacking python3-dunamai (1.23.0-1) ... 154s Selecting previously unselected package python3-sortedcontainers. 155s Preparing to unpack .../61-python3-sortedcontainers_2.4.0-2_all.deb ... 155s Unpacking python3-sortedcontainers (2.4.0-2) ... 155s Selecting previously unselected package python3-hypothesis. 155s Preparing to unpack .../62-python3-hypothesis_6.130.5-2_all.deb ... 155s Unpacking python3-hypothesis (6.130.5-2) ... 155s Selecting previously unselected package python3-iniconfig. 155s Preparing to unpack .../63-python3-iniconfig_2.1.0-1_all.deb ... 155s Unpacking python3-iniconfig (2.1.0-1) ... 155s Selecting previously unselected package python3-psutil. 155s Preparing to unpack .../64-python3-psutil_7.1.0-1ubuntu1_armhf.deb ... 155s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 155s Selecting previously unselected package python3-mypy. 155s Preparing to unpack .../65-python3-mypy_1.15.0-5_armhf.deb ... 155s Unpacking python3-mypy (1.15.0-5) ... 155s Selecting previously unselected package python3-pluggy. 155s Preparing to unpack .../66-python3-pluggy_1.6.0-1_all.deb ... 155s Unpacking python3-pluggy (1.6.0-1) ... 155s Selecting previously unselected package python3-poetry-core. 155s Preparing to unpack .../67-python3-poetry-core_2.2.1-2_all.deb ... 155s Unpacking python3-poetry-core (2.2.1-2) ... 155s Selecting previously unselected package python3-tomlkit. 155s Preparing to unpack .../68-python3-tomlkit_0.13.3-2_all.deb ... 155s Unpacking python3-tomlkit (0.13.3-2) ... 155s Selecting previously unselected package python3-poetry-dynamic-versioning. 155s Preparing to unpack .../69-python3-poetry-dynamic-versioning_1.8.2-1_armhf.deb ... 155s Unpacking python3-poetry-dynamic-versioning (1.8.2-1) ... 155s Selecting previously unselected package python3-pytest. 155s Preparing to unpack .../70-python3-pytest_8.3.5-2_all.deb ... 155s Unpacking python3-pytest (8.3.5-2) ... 155s Setting up dh-python (6.20250414) ... 156s Setting up python3-dunamai (1.23.0-1) ... 156s Setting up python3-iniconfig (2.1.0-1) ... 156s Setting up libarchive-zip-perl (1.68-1) ... 156s Setting up python3-mypy-extensions (1.1.0-1) ... 156s Setting up libdebhelper-perl (13.24.2ubuntu1) ... 156s Setting up libpython3.14-minimal:armhf (3.14.0-4) ... 156s Setting up python3-marshmallow (3.26.1-0.2) ... 157s Setting up linux-libc-dev:armhf (6.17.0-5.5) ... 157s Setting up m4 (1.4.20-2) ... 157s Setting up python3-sortedcontainers (2.4.0-2) ... 157s Setting up libgomp1:armhf (15.2.0-7ubuntu1) ... 157s Setting up python3-wheel (0.46.1-2) ... 157s Setting up python3-psutil (7.1.0-1ubuntu1) ... 158s Setting up libdw1t64:armhf (0.194-1) ... 158s Setting up autotools-dev (20240727.1) ... 158s Setting up rpcsvc-proto (1.4.3-1) ... 158s Setting up python3-pyproject-hooks (1.2.0-1) ... 158s Setting up python3-poetry-core (2.2.1-2) ... 159s Setting up libmpc3:armhf (1.3.1-2) ... 159s Setting up python3-mypy (1.15.0-5) ... 161s Setting up autopoint (0.23.2-1) ... 161s Setting up python3-installer (0.7.0+dfsg1-3) ... 162s Setting up autoconf (2.72-3.1ubuntu1) ... 162s Setting up python3-pluggy (1.6.0-1) ... 162s Setting up libubsan1:armhf (15.2.0-7ubuntu1) ... 162s Setting up dwz (0.16-2) ... 162s Setting up libcrypt-dev:armhf (1:4.4.38-1build1) ... 162s Setting up libasan8:armhf (15.2.0-7ubuntu1) ... 162s Setting up debugedit (1:5.2-3) ... 162s Setting up python3-typing-inspect (0.9.0-1) ... 162s Setting up libisl23:armhf (0.27-1) ... 162s Setting up python3-build (1.2.2-4) ... 162s Setting up libc-dev-bin (2.42-2ubuntu2) ... 162s Setting up python3-tomlkit (0.13.3-2) ... 162s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-7ubuntu1) ... 162s Setting up python3.14-minimal (3.14.0-4) ... 163s Setting up libcc1-0:armhf (15.2.0-7ubuntu1) ... 163s Setting up cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 163s Setting up automake (1:1.18.1-2) ... 163s update-alternatives: using /usr/bin/automake-1.18 to provide /usr/bin/automake (automake) in auto mode 163s Setting up libfile-stripnondeterminism-perl (1.15.0-1) ... 163s Setting up gettext (0.23.2-1) ... 163s Setting up libgcc-15-dev:armhf (15.2.0-7ubuntu1) ... 163s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-7ubuntu1) ... 163s Setting up libpython3.14-stdlib:armhf (3.14.0-4) ... 163s Setting up pybuild-plugin-pyproject (6.20250414) ... 163s Setting up python3-pytest (8.3.5-2) ... 164s Setting up python3-hypothesis (6.130.5-2) ... 165s Setting up python3-poetry-dynamic-versioning (1.8.2-1) ... 165s Setting up intltool-debian (0.35.0+20060710.6) ... 165s Setting up python3-dataclasses-json (0.6.7-1) ... 165s Setting up dh-strip-nondeterminism (1.15.0-1) ... 165s Setting up cpp-15 (15.2.0-7ubuntu1) ... 165s Setting up cpp (4:15.2.0-4ubuntu1) ... 165s Setting up libc6-dev:armhf (2.42-2ubuntu2) ... 165s Setting up python3.14 (3.14.0-4) ... 167s Setting up gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 167s Setting up po-debconf (1.0.21+nmu1) ... 167s Setting up python3-all (3.13.7-2) ... 167s Setting up gcc-15 (15.2.0-7ubuntu1) ... 167s Setting up libstdc++-15-dev:armhf (15.2.0-7ubuntu1) ... 167s Setting up libtool (2.5.4-7) ... 167s Setting up g++-15-arm-linux-gnueabihf (15.2.0-7ubuntu1) ... 167s Setting up gcc (4:15.2.0-4ubuntu1) ... 167s Setting up dh-autoreconf (21) ... 167s Setting up g++-15 (15.2.0-7ubuntu1) ... 167s Setting up g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 167s Setting up debhelper (13.24.2ubuntu1) ... 167s Setting up g++ (4:15.2.0-4ubuntu1) ... 167s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 167s Setting up build-essential (12.12ubuntu1) ... 167s Setting up pybuild-plugin-autopkgtest (6.20250414) ... 167s Processing triggers for man-db (2.13.1-1) ... 168s Processing triggers for install-info (7.2-5) ... 168s Processing triggers for libc-bin (2.42-2ubuntu2) ... 168s Processing triggers for systemd (257.9-0ubuntu2) ... 176s autopkgtest [11:41:03]: test pybuild-autopkgtest: pybuild-autopkgtest 176s autopkgtest [11:41:03]: test pybuild-autopkgtest: [----------------------- 178s pybuild-autopkgtest 179s I: pybuild base:311: cd /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build; python3.14 -m pytest tests 180s ============================= test session starts ============================== 180s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 180s rootdir: /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build 180s configfile: pyproject.toml 180s plugins: typeguard-4.4.2, hypothesis-6.130.5 180s collected 328 items 180s 180s tests/test_annotations.py s [ 0%] 180s tests/test_api.py ........s.s....................... [ 10%] 180s tests/test_builtins.py .. [ 11%] 180s tests/test_collection_of_unions.py ...... [ 13%] 180s tests/test_collections.py .............................................. [ 27%] 180s .................. [ 32%] 180s tests/test_core.py ss [ 33%] 180s tests/test_dict.py .................. [ 38%] 181s tests/test_enum.py ............................ [ 47%] 181s tests/test_examples.py ..... [ 48%] 181s tests/test_exclude.py .... [ 50%] 181s tests/test_generic_dataclass.py .......... [ 53%] 181s tests/test_global_config.py .... [ 54%] 181s tests/test_invariants.py . [ 54%] 181s tests/test_letter_case.py ................. [ 59%] 181s tests/test_metadata.py ... [ 60%] 181s tests/test_nested.py ...... [ 62%] 181s tests/test_recursive.py ... [ 63%] 181s tests/test_schema.py .......... [ 66%] 181s tests/test_self.py .... [ 67%] 181s tests/test_str_subclass.py .. [ 68%] 181s tests/test_time.py .......... [ 71%] 181s tests/test_tuples.py ............ [ 75%] 181s tests/test_undefined_parameters.py ..............FF................ [ 84%] 181s tests/test_union.py .............................................. [ 98%] 181s tests/test_unsupported_generics.py .... [100%] 181s 181s =================================== FAILURES =================================== 181s _______________ test_undefined_parameters_catch_all_schema_dump ________________ 181s 181s boss_json = '{\n "minions": [\n {\n "name": "evil minion", \n "UNKNOWN_PROPERTY" :... {\n "name": "very evil minion"\n }\n ],\n "UNKNOWN_PROPERTY" : "value"\n }' 181s 181s def test_undefined_parameters_catch_all_schema_dump(boss_json): 181s import json 181s 181s @dataclass_json(undefined=Undefined.INCLUDE) 181s @dataclass(frozen=True) 181s class Minion: 181s name: str 181s catch_all: CatchAll 181s 181s @dataclass_json(undefined=Undefined.INCLUDE) 181s @dataclass(frozen=True) 181s class Boss: 181s minions: List[Minion] 181s catch_all: CatchAll 181s 181s boss = Boss.schema().loads(boss_json) 181s > assert json.loads(boss_json) == Boss.schema().dump(boss) 181s 181s tests/test_undefined_parameters.py:221: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:373: in dump 181s dumped = Schema.dump(self, obj, many=many) 181s /usr/lib/python3/dist-packages/marshmallow/schema.py:621: in dump 181s result = self._serialize(processed_obj, many=many) 181s /usr/lib/python3/dist-packages/marshmallow/schema.py:589: in _serialize 181s value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute) 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 181s return self._serialize(value, attr, obj, **kwargs) 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:799: in _serialize 181s return [self.inner._serialize(each, attr, obj, **kwargs) for each in value] 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:656: in _serialize 181s return schema.dump(nested_obj, many=many) 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:385: in dump 181s dumped.update(_handle_undefined_parameters_safe(cls=obj, kvs={}, 181s /usr/lib/python3/dist-packages/dataclasses_json/utils.py:208: in _handle_undefined_parameters_safe 181s return undefined_parameter_action.value.handle_dump(obj=cls) 181s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:210: in handle_dump 181s catch_all_field = _CatchAllUndefinedParameters._get_catch_all_field( 181s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:251: in _get_catch_all_field 181s types = get_type_hints(cls, globalns=cls_globals) 181s /usr/lib/python3.14/typing.py:2387: in get_type_hints 181s hints = _lazy_annotationlib.get_annotations(obj, format=format) 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s obj = test_undefined_parameters_catch_all_schema_dump..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) 181s 181s def get_annotations( 181s obj, *, globals=None, locals=None, eval_str=False, format=Format.VALUE 181s ): 181s """Compute the annotations dict for an object. 181s 181s obj may be a callable, class, module, or other object with 181s __annotate__ or __annotations__ attributes. 181s Passing any other object raises TypeError. 181s 181s The *format* parameter controls the format in which annotations are returned, 181s and must be a member of the Format enum or its integer equivalent. 181s For the VALUE format, the __annotations__ is tried first; if it 181s does not exist, the __annotate__ function is called. The 181s FORWARDREF format uses __annotations__ if it exists and can be 181s evaluated, and otherwise falls back to calling the __annotate__ function. 181s The SOURCE format tries __annotate__ first, and falls back to 181s using __annotations__, stringified using annotations_to_string(). 181s 181s This function handles several details for you: 181s 181s * If eval_str is true, values of type str will 181s be un-stringized using eval(). This is intended 181s for use with stringized annotations 181s ("from __future__ import annotations"). 181s * If obj doesn't have an annotations dict, returns an 181s empty dict. (Functions and methods always have an 181s annotations dict; classes, modules, and other types of 181s callables may not.) 181s * Ignores inherited annotations on classes. If a class 181s doesn't have its own annotations dict, returns an empty dict. 181s * All accesses to object members and dict values are done 181s using getattr() and dict.get() for safety. 181s * Always, always, always returns a freshly-created dict. 181s 181s eval_str controls whether or not values of type str are replaced 181s with the result of calling eval() on those values: 181s 181s * If eval_str is true, eval() is called on values of type str. 181s * If eval_str is false (the default), values of type str are unchanged. 181s 181s globals and locals are passed in to eval(); see the documentation 181s for eval() for more information. If either globals or locals is 181s None, this function may replace that value with a context-specific 181s default, contingent on type(obj): 181s 181s * If obj is a module, globals defaults to obj.__dict__. 181s * If obj is a class, globals defaults to 181s sys.modules[obj.__module__].__dict__ and locals 181s defaults to the obj class namespace. 181s * If obj is a callable, globals defaults to obj.__globals__, 181s although if obj is a wrapped function (using 181s functools.update_wrapper()) it is first unwrapped. 181s """ 181s if eval_str and format != Format.VALUE: 181s raise ValueError("eval_str=True is only supported with format=Format.VALUE") 181s 181s match format: 181s case Format.VALUE: 181s # For VALUE, we first look at __annotations__ 181s ann = _get_dunder_annotations(obj) 181s 181s # If it's not there, try __annotate__ instead 181s if ann is None: 181s ann = _get_and_call_annotate(obj, format) 181s case Format.FORWARDREF: 181s # For FORWARDREF, we use __annotations__ if it exists 181s try: 181s ann = _get_dunder_annotations(obj) 181s except Exception: 181s pass 181s else: 181s if ann is not None: 181s return dict(ann) 181s 181s # But if __annotations__ threw a NameError, we try calling __annotate__ 181s ann = _get_and_call_annotate(obj, format) 181s if ann is None: 181s # If that didn't work either, we have a very weird object: evaluating 181s # __annotations__ threw NameError and there is no __annotate__. In that case, 181s # we fall back to trying __annotations__ again. 181s ann = _get_dunder_annotations(obj) 181s case Format.STRING: 181s # For STRING, we try to call __annotate__ 181s ann = _get_and_call_annotate(obj, format) 181s if ann is not None: 181s return dict(ann) 181s # But if we didn't get it, we use __annotations__ instead. 181s ann = _get_dunder_annotations(obj) 181s if ann is not None: 181s return annotations_to_string(ann) 181s case Format.VALUE_WITH_FAKE_GLOBALS: 181s raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only") 181s case _: 181s raise ValueError(f"Unsupported format {format!r}") 181s 181s if ann is None: 181s if isinstance(obj, type) or callable(obj): 181s return {} 181s > raise TypeError(f"{obj!r} does not have annotations") 181s E TypeError: test_undefined_parameters_catch_all_schema_dump..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) does not have annotations 181s 181s /usr/lib/python3.14/annotationlib.py:929: TypeError 181s _____________ test_undefined_parameters_catch_all_schema_roundtrip _____________ 181s 181s boss_json = '{\n "minions": [\n {\n "name": "evil minion", \n "UNKNOWN_PROPERTY" :... {\n "name": "very evil minion"\n }\n ],\n "UNKNOWN_PROPERTY" : "value"\n }' 181s 181s def test_undefined_parameters_catch_all_schema_roundtrip(boss_json): 181s @dataclass_json(undefined=Undefined.INCLUDE) 181s @dataclass(frozen=True) 181s class Minion: 181s name: str 181s catch_all: CatchAll 181s 181s @dataclass_json(undefined=Undefined.INCLUDE) 181s @dataclass(frozen=True) 181s class Boss: 181s minions: List[Minion] 181s catch_all: CatchAll 181s 181s boss1 = Boss.schema().loads(boss_json) 181s > dumped_s = Boss.schema().dumps(boss1) 181s 181s tests/test_undefined_parameters.py:239: 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:369: in dumps 181s return Schema.dumps(self, *args, **kwargs) 181s /usr/lib/python3/dist-packages/marshmallow/schema.py:644: in dumps 181s serialized = self.dump(obj, many=many) 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:373: in dump 181s dumped = Schema.dump(self, obj, many=many) 181s /usr/lib/python3/dist-packages/marshmallow/schema.py:621: in dump 181s result = self._serialize(processed_obj, many=many) 181s /usr/lib/python3/dist-packages/marshmallow/schema.py:589: in _serialize 181s value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute) 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 181s return self._serialize(value, attr, obj, **kwargs) 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:799: in _serialize 181s return [self.inner._serialize(each, attr, obj, **kwargs) for each in value] 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:656: in _serialize 181s return schema.dump(nested_obj, many=many) 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:385: in dump 181s dumped.update(_handle_undefined_parameters_safe(cls=obj, kvs={}, 181s /usr/lib/python3/dist-packages/dataclasses_json/utils.py:208: in _handle_undefined_parameters_safe 181s return undefined_parameter_action.value.handle_dump(obj=cls) 181s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:210: in handle_dump 181s catch_all_field = _CatchAllUndefinedParameters._get_catch_all_field( 181s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:251: in _get_catch_all_field 181s types = get_type_hints(cls, globalns=cls_globals) 181s /usr/lib/python3.14/typing.py:2387: in get_type_hints 181s hints = _lazy_annotationlib.get_annotations(obj, format=format) 181s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 181s 181s obj = test_undefined_parameters_catch_all_schema_roundtrip..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) 181s 181s def get_annotations( 181s obj, *, globals=None, locals=None, eval_str=False, format=Format.VALUE 181s ): 181s """Compute the annotations dict for an object. 181s 181s obj may be a callable, class, module, or other object with 181s __annotate__ or __annotations__ attributes. 181s Passing any other object raises TypeError. 181s 181s The *format* parameter controls the format in which annotations are returned, 181s and must be a member of the Format enum or its integer equivalent. 181s For the VALUE format, the __annotations__ is tried first; if it 181s does not exist, the __annotate__ function is called. The 181s FORWARDREF format uses __annotations__ if it exists and can be 181s evaluated, and otherwise falls back to calling the __annotate__ function. 181s The SOURCE format tries __annotate__ first, and falls back to 181s using __annotations__, stringified using annotations_to_string(). 181s 181s This function handles several details for you: 181s 181s * If eval_str is true, values of type str will 181s be un-stringized using eval(). This is intended 181s for use with stringized annotations 181s ("from __future__ import annotations"). 181s * If obj doesn't have an annotations dict, returns an 181s empty dict. (Functions and methods always have an 181s annotations dict; classes, modules, and other types of 181s callables may not.) 181s * Ignores inherited annotations on classes. If a class 181s doesn't have its own annotations dict, returns an empty dict. 181s * All accesses to object members and dict values are done 181s using getattr() and dict.get() for safety. 181s * Always, always, always returns a freshly-created dict. 181s 181s eval_str controls whether or not values of type str are replaced 181s with the result of calling eval() on those values: 181s 181s * If eval_str is true, eval() is called on values of type str. 181s * If eval_str is false (the default), values of type str are unchanged. 181s 181s globals and locals are passed in to eval(); see the documentation 181s for eval() for more information. If either globals or locals is 181s None, this function may replace that value with a context-specific 181s default, contingent on type(obj): 181s 181s * If obj is a module, globals defaults to obj.__dict__. 181s * If obj is a class, globals defaults to 181s sys.modules[obj.__module__].__dict__ and locals 181s defaults to the obj class namespace. 181s * If obj is a callable, globals defaults to obj.__globals__, 181s although if obj is a wrapped function (using 181s functools.update_wrapper()) it is first unwrapped. 181s """ 181s if eval_str and format != Format.VALUE: 181s raise ValueError("eval_str=True is only supported with format=Format.VALUE") 181s 181s match format: 181s case Format.VALUE: 181s # For VALUE, we first look at __annotations__ 181s ann = _get_dunder_annotations(obj) 181s 181s # If it's not there, try __annotate__ instead 181s if ann is None: 181s ann = _get_and_call_annotate(obj, format) 181s case Format.FORWARDREF: 181s # For FORWARDREF, we use __annotations__ if it exists 181s try: 181s ann = _get_dunder_annotations(obj) 181s except Exception: 181s pass 181s else: 181s if ann is not None: 181s return dict(ann) 181s 181s # But if __annotations__ threw a NameError, we try calling __annotate__ 181s ann = _get_and_call_annotate(obj, format) 181s if ann is None: 181s # If that didn't work either, we have a very weird object: evaluating 181s # __annotations__ threw NameError and there is no __annotate__. In that case, 181s # we fall back to trying __annotations__ again. 181s ann = _get_dunder_annotations(obj) 181s case Format.STRING: 181s # For STRING, we try to call __annotate__ 181s ann = _get_and_call_annotate(obj, format) 181s if ann is not None: 181s return dict(ann) 181s # But if we didn't get it, we use __annotations__ instead. 181s ann = _get_dunder_annotations(obj) 181s if ann is not None: 181s return annotations_to_string(ann) 181s case Format.VALUE_WITH_FAKE_GLOBALS: 181s raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only") 181s case _: 181s raise ValueError(f"Unsupported format {format!r}") 181s 181s if ann is None: 181s if isinstance(obj, type) or callable(obj): 181s return {} 181s > raise TypeError(f"{obj!r} does not have annotations") 181s E TypeError: test_undefined_parameters_catch_all_schema_roundtrip..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) does not have annotations 181s 181s /usr/lib/python3.14/annotationlib.py:929: TypeError 181s =============================== warnings summary =============================== 181s ../../../../usr/lib/python3/dist-packages/dataclasses_json/mm.py:277 181s tests/test_examples.py::TestEncoder::test_students_missing 181s tests/test_union.py::test_serialize[obj17-expected17-{"f1": null}] 181s tests/test_union.py::test_serialize[obj18-expected18-{"f1": "str1"}] 181s tests/test_union.py::test_serialize[obj19-expected19-{"f1": null}] 181s tests/test_union.py::test_deserialize[expected_obj17-data17-{"f1": null}] 181s tests/test_union.py::test_deserialize[expected_obj18-data18-{"f1": "str1"}] 181s tests/test_union.py::test_deserialize[expected_obj19-data19-{"f1": null}] 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:277: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s return TYPES[origin](*args, **options) 181s 181s ../../../../usr/lib/python3/dist-packages/marshmallow/fields.py:1606: 1 warning 181s tests/test_enum.py: 13 warnings 181s tests/test_undefined_parameters.py: 11 warnings 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:1606: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(**kwargs) 181s 181s tests/test_collection_of_unions.py:8 181s /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build/tests/test_collection_of_unions.py:8: PytestCollectionWarning: cannot collect test class 'TestChild' because it has a __init__ constructor (from: tests/test_collection_of_unions.py) 181s @dataclass_json 181s 181s tests/test_collection_of_unions.py:14 181s /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build/tests/test_collection_of_unions.py:14: PytestCollectionWarning: cannot collect test class 'TestOtherChild' because it has a __init__ constructor (from: tests/test_collection_of_unions.py) 181s @dataclass_json 181s 181s tests/test_api.py: 3 warnings 181s tests/test_schema.py: 1 warning 181s tests/test_union.py: 57 warnings 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': False} 181s super().__init__(default=default, dump_default=dump_default, **kwargs) 181s 181s tests/test_api.py::TestSchema::test_loads_default 181s tests/test_api.py::TestSchema::test_loads_default_many 181s tests/test_api.py::TestSchema::test_dumps_default 181s tests/test_api.py::TestSchema::test_dumps_default_many 181s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 181s tests/test_examples.py::TestEncoder::test_students_missing 181s tests/test_schema.py::TestSchema::test_optional 181s tests/test_schema.py::TestSchema::test_not_providing_required_field 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(**kwargs) 181s 181s tests/test_api.py::TestSchema::test_loads_default 181s tests/test_api.py::TestSchema::test_loads_default_many 181s tests/test_api.py::TestSchema::test_dumps_default 181s tests/test_api.py::TestSchema::test_dumps_default_many 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:1218: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(**kwargs) 181s 181s tests/test_api.py::TestSchema::test_dumps_new_type 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type tests.entities.UUIDWrapper at DataClassWithNewType.id: tests.entities.UUIDWrapper It's advised to pass the correct marshmallow type to `mm_field`. 181s warnings.warn( 181s 181s tests/test_api.py::TestSchema::test_dumps_new_type 181s tests/test_api.py::TestSchema::test_dumps_nested_new_type 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. 181s return fields.Field(**options) 181s 181s tests/test_api.py::TestSchema::test_dumps_nested_new_type 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type tests.entities.UUIDWrapperWrapper at DataClassWithNestedNewType.id: tests.entities.UUIDWrapperWrapper It's advised to pass the correct marshmallow type to `mm_field`. 181s warnings.warn( 181s 181s tests/test_api.py::TestSchema::test_loads_infer_missing 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 181s super().__init__(**kwargs) 181s 181s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 181s super().__init__(default=default, dump_default=dump_default, **kwargs) 181s 181s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_dict 181s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_list 181s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type some_field detected when decoding TestChild. 181s warnings.warn( 181s 181s tests/test_collections.py::TestDecoder::test_optional_unbound 181s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type x detected when decoding DataClassWithOptionalUnbound. 181s warnings.warn( 181s 181s tests/test_dict.py::TestValidator::test_dataclass_with_typed_dict[metadata_dict2-False] 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:116: UserWarning: The type "bool" (value: "True") is not in the list of possible types of typing.Union (dataclass: DataWithTypedDict, field: metadata). Value cannot be deserialized properly. 181s warnings.warn( 181s 181s tests/test_enum.py: 17 warnings 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:1928: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(**kwargs) 181s 181s tests/test_enum.py: 13 warnings 181s tests/test_schema.py: 3 warnings 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:776: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(**kwargs) 181s 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.left: ForwardRef('Tree') | None It's advised to pass the correct marshmallow type to `mm_field`. 181s warnings.warn( 181s 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s return fields.Field(**options) 181s 181s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.right: ForwardRef('Tree') | None It's advised to pass the correct marshmallow type to `mm_field`. 181s warnings.warn( 181s 181s tests/test_schema.py: 1 warning 181s tests/test_undefined_parameters.py: 8 warnings 181s tests/test_union.py: 10 warnings 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': True} 181s super().__init__(default=default, dump_default=dump_default, **kwargs) 181s 181s tests/test_union.py: 10 warnings 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:73: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(*args, **kwargs) 181s 181s tests/test_union.py::test_serialize[obj11-expected11-{"f1": {"f1": 1}}] 181s tests/test_union.py::test_serialize[obj12-expected12-{"f1": null}] 181s tests/test_union.py::test_serialize[obj13-expected13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 181s tests/test_union.py::test_serialize[obj14-expected14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 181s tests/test_union.py::test_deserialize[expected_obj11-data11-{"f1": {"f1": 1}}] 181s tests/test_union.py::test_deserialize[expected_obj12-data12-{"f1": null}] 181s tests/test_union.py::test_deserialize[expected_obj13-data13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 181s tests/test_union.py::test_deserialize[expected_obj14-data14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 181s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 181s super().__init__(default=default, dump_default=dump_default, **kwargs) 181s 181s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'str1': 0.12}) that does not have a "__type" type specifier field into(dataclass: C2, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 181s /usr/lib/python3/dist-packages/dataclasses_json/core.py:342: UserWarning: Failed to decode {'str1': 0.12} Union dataclasses.Expected Union to include a matching dataclass and it didn't. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_without_discriminator 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 1}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_without_discriminator 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_without_discriminator 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_without_discriminator 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f2': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_without_discriminator 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f3': 'str2'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_without_discriminator 181s /usr/lib/python3/dist-packages/dataclasses_json/core.py:342: UserWarning: Failed to decode {'f3': 'str2'} Union dataclasses.Expected Union to include a matching dataclass and it didn't. 181s warnings.warn( 181s 181s tests/test_union.py::test_deserialize_with_mismatched_field_types 181s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'data': 'Hello world!'}) that does not have a "__type" type specifier field into(dataclass: C16, field: event).Deserialization may fail, or deserialization to wrong type may occur. 181s warnings.warn( 181s 181s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 181s =========================== short test summary info ============================ 181s FAILED tests/test_undefined_parameters.py::test_undefined_parameters_catch_all_schema_dump 181s FAILED tests/test_undefined_parameters.py::test_undefined_parameters_catch_all_schema_roundtrip 181s ============ 2 failed, 321 passed, 5 skipped, 207 warnings in 1.70s ============ 181s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build; python3.14 -m pytest tests 181s I: pybuild base:311: cd /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build; python3.13 -m pytest tests 182s ============================= test session starts ============================== 182s platform linux -- Python 3.13.9, pytest-8.3.5, pluggy-1.6.0 182s rootdir: /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build 182s configfile: pyproject.toml 182s plugins: typeguard-4.4.2, hypothesis-6.130.5 182s collected 328 items 182s 182s tests/test_annotations.py s [ 0%] 182s tests/test_api.py ........s.s....................... [ 10%] 182s tests/test_builtins.py .. [ 11%] 182s tests/test_collection_of_unions.py ...... [ 13%] 182s tests/test_collections.py .............................................. [ 27%] 182s .................. [ 32%] 182s tests/test_core.py ss [ 33%] 182s tests/test_dict.py .................. [ 38%] 182s tests/test_enum.py ............................ [ 47%] 182s tests/test_examples.py ..... [ 48%] 182s tests/test_exclude.py .... [ 50%] 182s tests/test_generic_dataclass.py .......... [ 53%] 182s tests/test_global_config.py .... [ 54%] 183s tests/test_invariants.py . [ 54%] 183s tests/test_letter_case.py ................. [ 59%] 183s tests/test_metadata.py ... [ 60%] 183s tests/test_nested.py ...... [ 62%] 183s tests/test_recursive.py ... [ 63%] 183s tests/test_schema.py .......... [ 66%] 183s tests/test_self.py .... [ 67%] 183s tests/test_str_subclass.py .. [ 68%] 183s tests/test_time.py .......... [ 71%] 183s tests/test_tuples.py ............ [ 75%] 183s tests/test_undefined_parameters.py ................................ [ 84%] 183s tests/test_union.py .............................................. [ 98%] 183s tests/test_unsupported_generics.py .... [100%] 183s 183s =============================== warnings summary =============================== 183s ../../../../usr/lib/python3/dist-packages/dataclasses_json/mm.py:277 183s tests/test_examples.py::TestEncoder::test_students_missing 183s tests/test_union.py::test_serialize[obj17-expected17-{"f1": null}] 183s tests/test_union.py::test_serialize[obj18-expected18-{"f1": "str1"}] 183s tests/test_union.py::test_serialize[obj19-expected19-{"f1": null}] 183s tests/test_union.py::test_deserialize[expected_obj17-data17-{"f1": null}] 183s tests/test_union.py::test_deserialize[expected_obj18-data18-{"f1": "str1"}] 183s tests/test_union.py::test_deserialize[expected_obj19-data19-{"f1": null}] 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:277: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s return TYPES[origin](*args, **options) 183s 183s ../../../../usr/lib/python3/dist-packages/marshmallow/fields.py:1606: 1 warning 183s tests/test_enum.py: 13 warnings 183s tests/test_undefined_parameters.py: 15 warnings 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:1606: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(**kwargs) 183s 183s tests/test_collection_of_unions.py:8 183s /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build/tests/test_collection_of_unions.py:8: PytestCollectionWarning: cannot collect test class 'TestChild' because it has a __init__ constructor (from: tests/test_collection_of_unions.py) 183s @dataclass_json 183s 183s tests/test_collection_of_unions.py:14 183s /tmp/autopkgtest.16Smvf/autopkgtest_tmp/build/tests/test_collection_of_unions.py:14: PytestCollectionWarning: cannot collect test class 'TestOtherChild' because it has a __init__ constructor (from: tests/test_collection_of_unions.py) 183s @dataclass_json 183s 183s tests/test_api.py: 3 warnings 183s tests/test_schema.py: 1 warning 183s tests/test_union.py: 57 warnings 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': False} 183s super().__init__(default=default, dump_default=dump_default, **kwargs) 183s 183s tests/test_api.py::TestSchema::test_loads_default 183s tests/test_api.py::TestSchema::test_loads_default_many 183s tests/test_api.py::TestSchema::test_dumps_default 183s tests/test_api.py::TestSchema::test_dumps_default_many 183s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 183s tests/test_examples.py::TestEncoder::test_students_missing 183s tests/test_schema.py::TestSchema::test_optional 183s tests/test_schema.py::TestSchema::test_not_providing_required_field 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(**kwargs) 183s 183s tests/test_api.py::TestSchema::test_loads_default 183s tests/test_api.py::TestSchema::test_loads_default_many 183s tests/test_api.py::TestSchema::test_dumps_default 183s tests/test_api.py::TestSchema::test_dumps_default_many 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:1218: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(**kwargs) 183s 183s tests/test_api.py::TestSchema::test_dumps_new_type 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type tests.entities.UUIDWrapper at DataClassWithNewType.id: tests.entities.UUIDWrapper It's advised to pass the correct marshmallow type to `mm_field`. 183s warnings.warn( 183s 183s tests/test_api.py::TestSchema::test_dumps_new_type 183s tests/test_api.py::TestSchema::test_dumps_nested_new_type 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. 183s return fields.Field(**options) 183s 183s tests/test_api.py::TestSchema::test_dumps_nested_new_type 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type tests.entities.UUIDWrapperWrapper at DataClassWithNestedNewType.id: tests.entities.UUIDWrapperWrapper It's advised to pass the correct marshmallow type to `mm_field`. 183s warnings.warn( 183s 183s tests/test_api.py::TestSchema::test_loads_infer_missing 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 183s super().__init__(**kwargs) 183s 183s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 183s super().__init__(default=default, dump_default=dump_default, **kwargs) 183s 183s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_dict 183s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_list 183s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type some_field detected when decoding TestChild. 183s warnings.warn( 183s 183s tests/test_collections.py::TestDecoder::test_optional_unbound 183s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type x detected when decoding DataClassWithOptionalUnbound. 183s warnings.warn( 183s 183s tests/test_dict.py::TestValidator::test_dataclass_with_typed_dict[metadata_dict2-False] 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:116: UserWarning: The type "bool" (value: "True") is not in the list of possible types of typing.Union (dataclass: DataWithTypedDict, field: metadata). Value cannot be deserialized properly. 183s warnings.warn( 183s 183s tests/test_enum.py: 17 warnings 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:1928: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(**kwargs) 183s 183s tests/test_enum.py: 13 warnings 183s tests/test_schema.py: 3 warnings 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:776: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(**kwargs) 183s 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.left: typing.Optional[ForwardRef('Tree')] It's advised to pass the correct marshmallow type to `mm_field`. 183s warnings.warn( 183s 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s return fields.Field(**options) 183s 183s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.right: typing.Optional[ForwardRef('Tree')] It's advised to pass the correct marshmallow type to `mm_field`. 183s warnings.warn( 183s 183s tests/test_schema.py: 1 warning 183s tests/test_undefined_parameters.py: 10 warnings 183s tests/test_union.py: 10 warnings 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': True} 183s super().__init__(default=default, dump_default=dump_default, **kwargs) 183s 183s tests/test_union.py: 10 warnings 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:73: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(*args, **kwargs) 183s 183s tests/test_union.py::test_serialize[obj11-expected11-{"f1": {"f1": 1}}] 183s tests/test_union.py::test_serialize[obj12-expected12-{"f1": null}] 183s tests/test_union.py::test_serialize[obj13-expected13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 183s tests/test_union.py::test_serialize[obj14-expected14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 183s tests/test_union.py::test_deserialize[expected_obj11-data11-{"f1": {"f1": 1}}] 183s tests/test_union.py::test_deserialize[expected_obj12-data12-{"f1": null}] 183s tests/test_union.py::test_deserialize[expected_obj13-data13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 183s tests/test_union.py::test_deserialize[expected_obj14-data14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 183s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 183s super().__init__(default=default, dump_default=dump_default, **kwargs) 183s 183s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'str1': 0.12}) that does not have a "__type" type specifier field into(dataclass: C2, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 183s /usr/lib/python3/dist-packages/dataclasses_json/core.py:342: UserWarning: Failed to decode {'str1': 0.12} Union dataclasses.Expected Union to include a matching dataclass and it didn't. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_without_discriminator 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 1}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_without_discriminator 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_without_discriminator 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_without_discriminator 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f2': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_without_discriminator 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f3': 'str2'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_without_discriminator 183s /usr/lib/python3/dist-packages/dataclasses_json/core.py:342: UserWarning: Failed to decode {'f3': 'str2'} Union dataclasses.Expected Union to include a matching dataclass and it didn't. 183s warnings.warn( 183s 183s tests/test_union.py::test_deserialize_with_mismatched_field_types 183s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'data': 'Hello world!'}) that does not have a "__type" type specifier field into(dataclass: C16, field: event).Deserialization may fail, or deserialization to wrong type may occur. 183s warnings.warn( 183s 183s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 183s ================= 323 passed, 5 skipped, 213 warnings in 1.40s ================= 183s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 183s make: *** [/tmp/32TYX6nG2L/run:4: pybuild-autopkgtest] Error 25 183s pybuild-autopkgtest: error: /tmp/32TYX6nG2L/run pybuild-autopkgtest returned exit code 2 183s autopkgtest [11:41:10]: test pybuild-autopkgtest: -----------------------] 188s autopkgtest [11:41:15]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 188s pybuild-autopkgtest FAIL non-zero exit status 25 193s autopkgtest [11:41:20]: @@@@@@@@@@@@@@@@@@@@ summary 193s pybuild-autopkgtest FAIL non-zero exit status 25