0s autopkgtest [13:11:02]: starting date and time: 2025-11-17 13:11:02+0000 0s autopkgtest [13:11:02]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [13:11:02]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.y09s59aj/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-7.secgroup --name adt-resolute-ppc64el-dataclasses-json-20251117-131102-juju-7f2275-prod-proposed-migration-environment-15-da024530-9f81-4ebc-a7e5-0c2559312c5e --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-ppc64el-dataclasses-json-20251117-131102-juju-7f2275-prod-proposed-migration-environment-15-da024530-9f81-4ebc-a7e5-0c2559312c5e from image adt/ubuntu-resolute-ppc64el-server-20251117.img (UUID c6f5b741-c77a-45db-84cb-f00b40e77676)... 60s autopkgtest [13:12:02]: testbed dpkg architecture: ppc64el 60s autopkgtest [13:12:02]: testbed apt version: 3.1.11 61s autopkgtest [13:12:03]: @@@@@@@@@@@@@@@@@@@@ test bed setup 61s autopkgtest [13:12:03]: testbed release detected to be: None 62s autopkgtest [13:12:04]: updating testbed package index (apt update) 62s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 62s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 62s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 62s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 62s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 62s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 63s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 63s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 63s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [140 kB] 63s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted ppc64el Packages [940 B] 63s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [562 kB] 63s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [11.0 kB] 63s Fetched 1784 kB in 1s (1461 kB/s) 64s Reading package lists... 64s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 65s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 65s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 65s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 65s Reading package lists... 66s Reading package lists... 66s Building dependency tree... 66s Reading state information... 66s Calculating upgrade... 66s The following packages will be upgraded: 66s libpython3-stdlib python3 python3-minimal usbutils 66s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 66s Need to get 154 kB of archives. 66s After this operation, 0 B of additional disk space will be used. 66s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-minimal ppc64el 3.13.7-2 [27.8 kB] 66s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3 ppc64el 3.13.7-2 [23.9 kB] 66s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el libpython3-stdlib ppc64el 3.13.7-2 [10.6 kB] 66s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el usbutils ppc64el 1:019-1 [91.5 kB] 67s dpkg-preconfigure: unable to re-open stdin: No such file or directory 67s Fetched 154 kB in 0s (364 kB/s) 67s (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 ... 81022 files and directories currently installed.) 67s Preparing to unpack .../python3-minimal_3.13.7-2_ppc64el.deb ... 67s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 68s Setting up python3-minimal (3.13.7-2) ... 68s (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 ... 81022 files and directories currently installed.) 68s Preparing to unpack .../python3_3.13.7-2_ppc64el.deb ... 68s running python pre-rtupdate hooks for python3.13... 68s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 68s Preparing to unpack .../libpython3-stdlib_3.13.7-2_ppc64el.deb ... 68s Unpacking libpython3-stdlib:ppc64el (3.13.7-2) over (3.13.7-1) ... 68s Preparing to unpack .../usbutils_1%3a019-1_ppc64el.deb ... 68s Unpacking usbutils (1:019-1) over (1:018-2) ... 68s Setting up usbutils (1:019-1) ... 68s Setting up libpython3-stdlib:ppc64el (3.13.7-2) ... 68s Setting up python3 (3.13.7-2) ... 68s running python rtupdate hooks for python3.13... 68s running python post-rtupdate hooks for python3.13... 69s Processing triggers for man-db (2.13.1-1) ... 71s autopkgtest [13:12:13]: upgrading testbed (apt dist-upgrade and autopurge) 71s Reading package lists... 72s Building dependency tree... 72s Reading state information... 72s Calculating upgrade... 72s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 72s Reading package lists... 72s Building dependency tree... 72s Reading state information... 72s Solving dependencies... 72s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 75s autopkgtest [13:12:17]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:02:41 UTC 2025 75s autopkgtest [13:12:17]: @@@@@@@@@@@@@@@@@@@@ apt-source dataclasses-json 76s Get:1 http://ftpmaster.internal/ubuntu resolute/universe dataclasses-json 0.6.7-1 (dsc) [1733 B] 76s Get:2 http://ftpmaster.internal/ubuntu resolute/universe dataclasses-json 0.6.7-1 (tar) [65.2 kB] 76s Get:3 http://ftpmaster.internal/ubuntu resolute/universe dataclasses-json 0.6.7-1 (diff) [3188 B] 77s gpgv: Signature made Thu Jul 4 00:01:01 2024 UTC 77s gpgv: using EDDSA key CAA7400707A816B0202FC3CDF4257A50B21CFA85 77s gpgv: Can't check signature: No public key 77s dpkg-source: warning: cannot verify inline signature for ./dataclasses-json_0.6.7-1.dsc: no acceptable signature found 77s autopkgtest [13:12:19]: testing package dataclasses-json version 0.6.7-1 77s autopkgtest [13:12:19]: build not needed 78s autopkgtest [13:12:20]: test pybuild-autopkgtest: preparing testbed 78s Reading package lists... 78s Building dependency tree... 78s Reading state information... 78s Solving dependencies... 78s The following NEW packages will be installed: 78s autoconf automake autopoint autotools-dev build-essential cpp cpp-15 78s cpp-15-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu debhelper debugedit 78s dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-15 78s g++-15-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu gcc gcc-15 78s gcc-15-powerpc64le-linux-gnu gcc-powerpc64le-linux-gnu gettext 78s intltool-debian libarchive-zip-perl libasan8 libcc1-0 libdebhelper-perl 78s libfile-stripnondeterminism-perl libgcc-15-dev libgomp1 libisl23 libitm1 78s liblsan0 libmpc3 libpython3.14-minimal libpython3.14-stdlib libquadmath0 78s libstdc++-15-dev libtool libtsan2 libubsan1 m4 po-debconf 78s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python3-all 78s python3-build python3-dataclasses-json python3-dunamai python3-hypothesis 78s python3-iniconfig python3-installer python3-marshmallow python3-mypy 78s python3-mypy-extensions python3-pluggy python3-poetry-core 78s python3-poetry-dynamic-versioning python3-psutil python3-pyproject-hooks 78s python3-pytest python3-sortedcontainers python3-tomlkit 78s python3-typing-inspect python3-wheel python3.14 python3.14-minimal 78s 0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded. 78s Need to get 83.5 MB of archives. 78s After this operation, 330 MB of additional disk space will be used. 78s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-minimal ppc64el 3.14.0-4 [908 kB] 79s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14-minimal ppc64el 3.14.0-4 [2705 kB] 79s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el m4 ppc64el 1.4.20-2 [236 kB] 79s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el autoconf all 2.72-3.1ubuntu1 [384 kB] 79s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el autotools-dev all 20240727.1 [43.4 kB] 79s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el automake all 1:1.18.1-2 [581 kB] 79s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el autopoint all 0.23.2-1 [620 kB] 79s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 79s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libmpc3 ppc64el 1.3.1-2 [62.5 kB] 79s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15-powerpc64le-linux-gnu ppc64el 15.2.0-7ubuntu1 [11.4 MB] 80s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15 ppc64el 15.2.0-7ubuntu1 [1032 B] 80s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [5746 B] 80s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp ppc64el 4:15.2.0-4ubuntu1 [22.4 kB] 80s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcc1-0 ppc64el 15.2.0-7ubuntu1 [49.0 kB] 80s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgomp1 ppc64el 15.2.0-7ubuntu1 [169 kB] 80s Get:16 http://ftpmaster.internal/ubuntu resolute/main ppc64el libitm1 ppc64el 15.2.0-7ubuntu1 [32.3 kB] 80s Get:17 http://ftpmaster.internal/ubuntu resolute/main ppc64el libasan8 ppc64el 15.2.0-7ubuntu1 [3006 kB] 80s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblsan0 ppc64el 15.2.0-7ubuntu1 [1374 kB] 80s Get:19 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtsan2 ppc64el 15.2.0-7ubuntu1 [2728 kB] 81s Get:20 http://ftpmaster.internal/ubuntu resolute/main ppc64el libubsan1 ppc64el 15.2.0-7ubuntu1 [1231 kB] 81s Get:21 http://ftpmaster.internal/ubuntu resolute/main ppc64el libquadmath0 ppc64el 15.2.0-7ubuntu1 [160 kB] 81s Get:22 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgcc-15-dev ppc64el 15.2.0-7ubuntu1 [1670 kB] 81s Get:23 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15-powerpc64le-linux-gnu ppc64el 15.2.0-7ubuntu1 [22.4 MB] 84s Get:24 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15 ppc64el 15.2.0-7ubuntu1 [524 kB] 84s Get:25 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [1220 B] 84s Get:26 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc ppc64el 4:15.2.0-4ubuntu1 [5032 B] 84s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el libstdc++-15-dev ppc64el 15.2.0-7ubuntu1 [2744 kB] 85s Get:28 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15-powerpc64le-linux-gnu ppc64el 15.2.0-7ubuntu1 [13.0 MB] 87s Get:29 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15 ppc64el 15.2.0-7ubuntu1 [23.7 kB] 87s Get:30 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [970 B] 87s Get:31 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++ ppc64el 4:15.2.0-4ubuntu1 [1092 B] 87s Get:32 http://ftpmaster.internal/ubuntu resolute/main ppc64el build-essential ppc64el 12.12ubuntu1 [5094 B] 87s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdebhelper-perl all 13.24.2ubuntu1 [95.7 kB] 87s Get:34 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtool all 2.5.4-7 [169 kB] 87s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el dh-autoreconf all 21 [12.5 kB] 87s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el libarchive-zip-perl all 1.68-1 [90.2 kB] 87s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el libfile-stripnondeterminism-perl all 1.15.0-1 [20.5 kB] 87s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el dh-strip-nondeterminism all 1.15.0-1 [5090 B] 87s Get:39 http://ftpmaster.internal/ubuntu resolute/main ppc64el debugedit ppc64el 1:5.2-3 [57.3 kB] 87s Get:40 http://ftpmaster.internal/ubuntu resolute/main ppc64el dwz ppc64el 0.16-2 [142 kB] 87s Get:41 http://ftpmaster.internal/ubuntu resolute/main ppc64el gettext ppc64el 0.23.2-1 [1177 kB] 87s Get:42 http://ftpmaster.internal/ubuntu resolute/main ppc64el intltool-debian all 0.35.0+20060710.6 [23.2 kB] 87s Get:43 http://ftpmaster.internal/ubuntu resolute/main ppc64el po-debconf all 1.0.21+nmu1 [233 kB] 87s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el debhelper all 13.24.2ubuntu1 [896 kB] 87s Get:45 http://ftpmaster.internal/ubuntu resolute/universe ppc64el dh-python all 6.20250414 [119 kB] 87s Get:46 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-stdlib ppc64el 3.14.0-4 [2446 kB] 88s Get:47 http://ftpmaster.internal/ubuntu resolute/universe ppc64el pybuild-plugin-autopkgtest all 6.20250414 [1746 B] 88s Get:48 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 88s Get:49 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-wheel all 0.46.1-2 [22.1 kB] 88s Get:50 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-build all 1.2.2-4 [31.0 kB] 88s Get:51 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 88s Get:52 http://ftpmaster.internal/ubuntu resolute/universe ppc64el pybuild-plugin-pyproject all 6.20250414 [1728 B] 88s Get:53 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14 ppc64el 3.14.0-4 [805 kB] 88s Get:54 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-all ppc64el 3.13.7-2 [892 B] 88s Get:55 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-marshmallow all 3.26.1-0.2 [47.5 kB] 88s Get:56 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-mypy-extensions all 1.1.0-1 [6716 B] 88s Get:57 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-typing-inspect all 0.9.0-1 [10.7 kB] 88s Get:58 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-dataclasses-json all 0.6.7-1 [32.7 kB] 88s Get:59 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-dunamai all 1.23.0-1 [25.2 kB] 88s Get:60 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-sortedcontainers all 2.4.0-2 [27.6 kB] 88s Get:61 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-hypothesis all 6.130.5-2 [341 kB] 88s Get:62 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-iniconfig all 2.1.0-1 [6840 B] 88s Get:63 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-psutil ppc64el 7.1.0-1ubuntu1 [192 kB] 88s Get:64 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-mypy ppc64el 1.15.0-5 [8881 kB] 89s Get:65 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pluggy all 1.6.0-1 [21.0 kB] 89s Get:66 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-poetry-core all 2.2.1-2 [226 kB] 89s Get:67 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-tomlkit all 0.13.3-2 [39.1 kB] 89s Get:68 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-poetry-dynamic-versioning ppc64el 1.8.2-1 [27.3 kB] 89s Get:69 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest all 8.3.5-2 [252 kB] 90s Fetched 83.5 MB in 11s (7432 kB/s) 90s Selecting previously unselected package libpython3.14-minimal:ppc64el. 90s (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 ... 81022 files and directories currently installed.) 90s Preparing to unpack .../00-libpython3.14-minimal_3.14.0-4_ppc64el.deb ... 90s Unpacking libpython3.14-minimal:ppc64el (3.14.0-4) ... 90s Selecting previously unselected package python3.14-minimal. 90s Preparing to unpack .../01-python3.14-minimal_3.14.0-4_ppc64el.deb ... 90s Unpacking python3.14-minimal (3.14.0-4) ... 90s Selecting previously unselected package m4. 90s Preparing to unpack .../02-m4_1.4.20-2_ppc64el.deb ... 90s Unpacking m4 (1.4.20-2) ... 90s Selecting previously unselected package autoconf. 90s Preparing to unpack .../03-autoconf_2.72-3.1ubuntu1_all.deb ... 90s Unpacking autoconf (2.72-3.1ubuntu1) ... 90s Selecting previously unselected package autotools-dev. 90s Preparing to unpack .../04-autotools-dev_20240727.1_all.deb ... 90s Unpacking autotools-dev (20240727.1) ... 90s Selecting previously unselected package automake. 90s Preparing to unpack .../05-automake_1%3a1.18.1-2_all.deb ... 90s Unpacking automake (1:1.18.1-2) ... 90s Selecting previously unselected package autopoint. 90s Preparing to unpack .../06-autopoint_0.23.2-1_all.deb ... 90s Unpacking autopoint (0.23.2-1) ... 90s Selecting previously unselected package libisl23:ppc64el. 90s Preparing to unpack .../07-libisl23_0.27-1_ppc64el.deb ... 90s Unpacking libisl23:ppc64el (0.27-1) ... 90s Selecting previously unselected package libmpc3:ppc64el. 90s Preparing to unpack .../08-libmpc3_1.3.1-2_ppc64el.deb ... 90s Unpacking libmpc3:ppc64el (1.3.1-2) ... 90s Selecting previously unselected package cpp-15-powerpc64le-linux-gnu. 90s Preparing to unpack .../09-cpp-15-powerpc64le-linux-gnu_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking cpp-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package cpp-15. 90s Preparing to unpack .../10-cpp-15_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking cpp-15 (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 90s Preparing to unpack .../11-cpp-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 90s Unpacking cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 90s Selecting previously unselected package cpp. 90s Preparing to unpack .../12-cpp_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 90s Unpacking cpp (4:15.2.0-4ubuntu1) ... 90s Selecting previously unselected package libcc1-0:ppc64el. 90s Preparing to unpack .../13-libcc1-0_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libcc1-0:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libgomp1:ppc64el. 90s Preparing to unpack .../14-libgomp1_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libgomp1:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libitm1:ppc64el. 90s Preparing to unpack .../15-libitm1_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libitm1:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libasan8:ppc64el. 90s Preparing to unpack .../16-libasan8_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libasan8:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package liblsan0:ppc64el. 90s Preparing to unpack .../17-liblsan0_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking liblsan0:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libtsan2:ppc64el. 90s Preparing to unpack .../18-libtsan2_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libtsan2:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libubsan1:ppc64el. 90s Preparing to unpack .../19-libubsan1_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libubsan1:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libquadmath0:ppc64el. 90s Preparing to unpack .../20-libquadmath0_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libquadmath0:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package libgcc-15-dev:ppc64el. 90s Preparing to unpack .../21-libgcc-15-dev_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking libgcc-15-dev:ppc64el (15.2.0-7ubuntu1) ... 90s Selecting previously unselected package gcc-15-powerpc64le-linux-gnu. 90s Preparing to unpack .../22-gcc-15-powerpc64le-linux-gnu_15.2.0-7ubuntu1_ppc64el.deb ... 90s Unpacking gcc-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 91s Selecting previously unselected package gcc-15. 91s Preparing to unpack .../23-gcc-15_15.2.0-7ubuntu1_ppc64el.deb ... 91s Unpacking gcc-15 (15.2.0-7ubuntu1) ... 91s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 91s Preparing to unpack .../24-gcc-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 91s Unpacking gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 91s Selecting previously unselected package gcc. 91s Preparing to unpack .../25-gcc_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 91s Unpacking gcc (4:15.2.0-4ubuntu1) ... 91s Selecting previously unselected package libstdc++-15-dev:ppc64el. 91s Preparing to unpack .../26-libstdc++-15-dev_15.2.0-7ubuntu1_ppc64el.deb ... 91s Unpacking libstdc++-15-dev:ppc64el (15.2.0-7ubuntu1) ... 91s Selecting previously unselected package g++-15-powerpc64le-linux-gnu. 91s Preparing to unpack .../27-g++-15-powerpc64le-linux-gnu_15.2.0-7ubuntu1_ppc64el.deb ... 91s Unpacking g++-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 91s Selecting previously unselected package g++-15. 91s Preparing to unpack .../28-g++-15_15.2.0-7ubuntu1_ppc64el.deb ... 91s Unpacking g++-15 (15.2.0-7ubuntu1) ... 91s Selecting previously unselected package g++-powerpc64le-linux-gnu. 91s Preparing to unpack .../29-g++-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 91s Unpacking g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 91s Selecting previously unselected package g++. 91s Preparing to unpack .../30-g++_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 91s Unpacking g++ (4:15.2.0-4ubuntu1) ... 91s Selecting previously unselected package build-essential. 91s Preparing to unpack .../31-build-essential_12.12ubuntu1_ppc64el.deb ... 91s Unpacking build-essential (12.12ubuntu1) ... 91s Selecting previously unselected package libdebhelper-perl. 91s Preparing to unpack .../32-libdebhelper-perl_13.24.2ubuntu1_all.deb ... 91s Unpacking libdebhelper-perl (13.24.2ubuntu1) ... 91s Selecting previously unselected package libtool. 91s Preparing to unpack .../33-libtool_2.5.4-7_all.deb ... 91s Unpacking libtool (2.5.4-7) ... 91s Selecting previously unselected package dh-autoreconf. 91s Preparing to unpack .../34-dh-autoreconf_21_all.deb ... 91s Unpacking dh-autoreconf (21) ... 91s Selecting previously unselected package libarchive-zip-perl. 91s Preparing to unpack .../35-libarchive-zip-perl_1.68-1_all.deb ... 91s Unpacking libarchive-zip-perl (1.68-1) ... 91s Selecting previously unselected package libfile-stripnondeterminism-perl. 91s Preparing to unpack .../36-libfile-stripnondeterminism-perl_1.15.0-1_all.deb ... 91s Unpacking libfile-stripnondeterminism-perl (1.15.0-1) ... 91s Selecting previously unselected package dh-strip-nondeterminism. 91s Preparing to unpack .../37-dh-strip-nondeterminism_1.15.0-1_all.deb ... 91s Unpacking dh-strip-nondeterminism (1.15.0-1) ... 91s Selecting previously unselected package debugedit. 91s Preparing to unpack .../38-debugedit_1%3a5.2-3_ppc64el.deb ... 91s Unpacking debugedit (1:5.2-3) ... 91s Selecting previously unselected package dwz. 91s Preparing to unpack .../39-dwz_0.16-2_ppc64el.deb ... 91s Unpacking dwz (0.16-2) ... 91s Selecting previously unselected package gettext. 91s Preparing to unpack .../40-gettext_0.23.2-1_ppc64el.deb ... 91s Unpacking gettext (0.23.2-1) ... 91s Selecting previously unselected package intltool-debian. 91s Preparing to unpack .../41-intltool-debian_0.35.0+20060710.6_all.deb ... 91s Unpacking intltool-debian (0.35.0+20060710.6) ... 91s Selecting previously unselected package po-debconf. 91s Preparing to unpack .../42-po-debconf_1.0.21+nmu1_all.deb ... 91s Unpacking po-debconf (1.0.21+nmu1) ... 91s Selecting previously unselected package debhelper. 91s Preparing to unpack .../43-debhelper_13.24.2ubuntu1_all.deb ... 91s Unpacking debhelper (13.24.2ubuntu1) ... 92s Selecting previously unselected package dh-python. 92s Preparing to unpack .../44-dh-python_6.20250414_all.deb ... 92s Unpacking dh-python (6.20250414) ... 92s Selecting previously unselected package libpython3.14-stdlib:ppc64el. 92s Preparing to unpack .../45-libpython3.14-stdlib_3.14.0-4_ppc64el.deb ... 92s Unpacking libpython3.14-stdlib:ppc64el (3.14.0-4) ... 92s Selecting previously unselected package pybuild-plugin-autopkgtest. 92s Preparing to unpack .../46-pybuild-plugin-autopkgtest_6.20250414_all.deb ... 92s Unpacking pybuild-plugin-autopkgtest (6.20250414) ... 92s Selecting previously unselected package python3-pyproject-hooks. 92s Preparing to unpack .../47-python3-pyproject-hooks_1.2.0-1_all.deb ... 92s Unpacking python3-pyproject-hooks (1.2.0-1) ... 92s Selecting previously unselected package python3-wheel. 92s Preparing to unpack .../48-python3-wheel_0.46.1-2_all.deb ... 92s Unpacking python3-wheel (0.46.1-2) ... 92s Selecting previously unselected package python3-build. 92s Preparing to unpack .../49-python3-build_1.2.2-4_all.deb ... 92s Unpacking python3-build (1.2.2-4) ... 92s Selecting previously unselected package python3-installer. 92s Preparing to unpack .../50-python3-installer_0.7.0+dfsg1-3_all.deb ... 92s Unpacking python3-installer (0.7.0+dfsg1-3) ... 92s Selecting previously unselected package pybuild-plugin-pyproject. 92s Preparing to unpack .../51-pybuild-plugin-pyproject_6.20250414_all.deb ... 92s Unpacking pybuild-plugin-pyproject (6.20250414) ... 92s Selecting previously unselected package python3.14. 92s Preparing to unpack .../52-python3.14_3.14.0-4_ppc64el.deb ... 92s Unpacking python3.14 (3.14.0-4) ... 92s Selecting previously unselected package python3-all. 92s Preparing to unpack .../53-python3-all_3.13.7-2_ppc64el.deb ... 92s Unpacking python3-all (3.13.7-2) ... 92s Selecting previously unselected package python3-marshmallow. 92s Preparing to unpack .../54-python3-marshmallow_3.26.1-0.2_all.deb ... 92s Unpacking python3-marshmallow (3.26.1-0.2) ... 92s Selecting previously unselected package python3-mypy-extensions. 92s Preparing to unpack .../55-python3-mypy-extensions_1.1.0-1_all.deb ... 92s Unpacking python3-mypy-extensions (1.1.0-1) ... 92s Selecting previously unselected package python3-typing-inspect. 92s Preparing to unpack .../56-python3-typing-inspect_0.9.0-1_all.deb ... 92s Unpacking python3-typing-inspect (0.9.0-1) ... 92s Selecting previously unselected package python3-dataclasses-json. 92s Preparing to unpack .../57-python3-dataclasses-json_0.6.7-1_all.deb ... 92s Unpacking python3-dataclasses-json (0.6.7-1) ... 92s Selecting previously unselected package python3-dunamai. 92s Preparing to unpack .../58-python3-dunamai_1.23.0-1_all.deb ... 92s Unpacking python3-dunamai (1.23.0-1) ... 92s Selecting previously unselected package python3-sortedcontainers. 92s Preparing to unpack .../59-python3-sortedcontainers_2.4.0-2_all.deb ... 92s Unpacking python3-sortedcontainers (2.4.0-2) ... 92s Selecting previously unselected package python3-hypothesis. 92s Preparing to unpack .../60-python3-hypothesis_6.130.5-2_all.deb ... 92s Unpacking python3-hypothesis (6.130.5-2) ... 92s Selecting previously unselected package python3-iniconfig. 92s Preparing to unpack .../61-python3-iniconfig_2.1.0-1_all.deb ... 92s Unpacking python3-iniconfig (2.1.0-1) ... 92s Selecting previously unselected package python3-psutil. 92s Preparing to unpack .../62-python3-psutil_7.1.0-1ubuntu1_ppc64el.deb ... 92s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 92s Selecting previously unselected package python3-mypy. 92s Preparing to unpack .../63-python3-mypy_1.15.0-5_ppc64el.deb ... 92s Unpacking python3-mypy (1.15.0-5) ... 92s Selecting previously unselected package python3-pluggy. 92s Preparing to unpack .../64-python3-pluggy_1.6.0-1_all.deb ... 92s Unpacking python3-pluggy (1.6.0-1) ... 92s Selecting previously unselected package python3-poetry-core. 92s Preparing to unpack .../65-python3-poetry-core_2.2.1-2_all.deb ... 92s Unpacking python3-poetry-core (2.2.1-2) ... 92s Selecting previously unselected package python3-tomlkit. 92s Preparing to unpack .../66-python3-tomlkit_0.13.3-2_all.deb ... 92s Unpacking python3-tomlkit (0.13.3-2) ... 92s Selecting previously unselected package python3-poetry-dynamic-versioning. 92s Preparing to unpack .../67-python3-poetry-dynamic-versioning_1.8.2-1_ppc64el.deb ... 92s Unpacking python3-poetry-dynamic-versioning (1.8.2-1) ... 92s Selecting previously unselected package python3-pytest. 92s Preparing to unpack .../68-python3-pytest_8.3.5-2_all.deb ... 92s Unpacking python3-pytest (8.3.5-2) ... 92s Setting up dh-python (6.20250414) ... 93s Setting up python3-dunamai (1.23.0-1) ... 93s Setting up python3-iniconfig (2.1.0-1) ... 93s Setting up libarchive-zip-perl (1.68-1) ... 93s Setting up python3-mypy-extensions (1.1.0-1) ... 93s Setting up libdebhelper-perl (13.24.2ubuntu1) ... 93s Setting up libpython3.14-minimal:ppc64el (3.14.0-4) ... 93s Setting up python3-marshmallow (3.26.1-0.2) ... 93s Setting up m4 (1.4.20-2) ... 93s Setting up python3-sortedcontainers (2.4.0-2) ... 93s Setting up libgomp1:ppc64el (15.2.0-7ubuntu1) ... 93s Setting up python3-wheel (0.46.1-2) ... 94s Setting up python3-psutil (7.1.0-1ubuntu1) ... 94s Setting up autotools-dev (20240727.1) ... 94s Setting up python3-pyproject-hooks (1.2.0-1) ... 94s Setting up python3-poetry-core (2.2.1-2) ... 95s Setting up libquadmath0:ppc64el (15.2.0-7ubuntu1) ... 95s Setting up libmpc3:ppc64el (1.3.1-2) ... 95s Setting up python3-mypy (1.15.0-5) ... 97s Setting up autopoint (0.23.2-1) ... 97s Setting up python3-installer (0.7.0+dfsg1-3) ... 97s Setting up autoconf (2.72-3.1ubuntu1) ... 97s Setting up python3-pluggy (1.6.0-1) ... 98s Setting up libubsan1:ppc64el (15.2.0-7ubuntu1) ... 98s Setting up dwz (0.16-2) ... 98s Setting up libasan8:ppc64el (15.2.0-7ubuntu1) ... 98s Setting up debugedit (1:5.2-3) ... 98s Setting up python3-typing-inspect (0.9.0-1) ... 98s Setting up libtsan2:ppc64el (15.2.0-7ubuntu1) ... 98s Setting up libisl23:ppc64el (0.27-1) ... 98s Setting up python3-build (1.2.2-4) ... 98s Setting up python3-tomlkit (0.13.3-2) ... 98s Setting up python3.14-minimal (3.14.0-4) ... 99s Setting up libcc1-0:ppc64el (15.2.0-7ubuntu1) ... 99s Setting up liblsan0:ppc64el (15.2.0-7ubuntu1) ... 99s Setting up libitm1:ppc64el (15.2.0-7ubuntu1) ... 99s Setting up automake (1:1.18.1-2) ... 99s update-alternatives: using /usr/bin/automake-1.18 to provide /usr/bin/automake (automake) in auto mode 99s Setting up libfile-stripnondeterminism-perl (1.15.0-1) ... 99s Setting up gettext (0.23.2-1) ... 99s Setting up libgcc-15-dev:ppc64el (15.2.0-7ubuntu1) ... 99s Setting up libpython3.14-stdlib:ppc64el (3.14.0-4) ... 99s Setting up pybuild-plugin-pyproject (6.20250414) ... 99s Setting up python3-pytest (8.3.5-2) ... 100s Setting up python3-hypothesis (6.130.5-2) ... 100s Setting up python3-poetry-dynamic-versioning (1.8.2-1) ... 100s Setting up intltool-debian (0.35.0+20060710.6) ... 100s Setting up cpp-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 101s Setting up libstdc++-15-dev:ppc64el (15.2.0-7ubuntu1) ... 101s Setting up python3-dataclasses-json (0.6.7-1) ... 101s Setting up dh-strip-nondeterminism (1.15.0-1) ... 101s Setting up cpp-15 (15.2.0-7ubuntu1) ... 101s Setting up python3.14 (3.14.0-4) ... 102s Setting up cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 102s Setting up gcc-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 102s Setting up po-debconf (1.0.21+nmu1) ... 102s Setting up python3-all (3.13.7-2) ... 102s Setting up gcc-15 (15.2.0-7ubuntu1) ... 102s Setting up gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 102s Setting up cpp (4:15.2.0-4ubuntu1) ... 102s Setting up g++-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 102s Setting up libtool (2.5.4-7) ... 102s Setting up gcc (4:15.2.0-4ubuntu1) ... 102s Setting up dh-autoreconf (21) ... 102s Setting up g++-15 (15.2.0-7ubuntu1) ... 102s Setting up g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 102s Setting up debhelper (13.24.2ubuntu1) ... 102s Setting up g++ (4:15.2.0-4ubuntu1) ... 102s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 102s Setting up build-essential (12.12ubuntu1) ... 102s Setting up pybuild-plugin-autopkgtest (6.20250414) ... 102s Processing triggers for man-db (2.13.1-1) ... 103s Processing triggers for install-info (7.2-5) ... 103s Processing triggers for libc-bin (2.42-2ubuntu2) ... 103s Processing triggers for systemd (257.9-0ubuntu2) ... 104s autopkgtest [13:12:46]: test pybuild-autopkgtest: pybuild-autopkgtest 104s autopkgtest [13:12:46]: test pybuild-autopkgtest: [----------------------- 104s pybuild-autopkgtest 104s I: pybuild base:311: cd /tmp/autopkgtest.tvq73l/autopkgtest_tmp/build; python3.14 -m pytest tests 105s ============================= test session starts ============================== 105s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 105s rootdir: /tmp/autopkgtest.tvq73l/autopkgtest_tmp/build 105s configfile: pyproject.toml 105s plugins: hypothesis-6.130.5, typeguard-4.4.2 105s collected 328 items 105s 105s tests/test_annotations.py s [ 0%] 106s tests/test_api.py ........s.s....................... [ 10%] 106s tests/test_builtins.py .. [ 11%] 106s tests/test_collection_of_unions.py ...... [ 13%] 106s tests/test_collections.py .............................................. [ 27%] 106s .................. [ 32%] 106s tests/test_core.py ss [ 33%] 106s tests/test_dict.py .................. [ 38%] 106s tests/test_enum.py ............................ [ 47%] 106s tests/test_examples.py ..... [ 48%] 106s tests/test_exclude.py .... [ 50%] 106s tests/test_generic_dataclass.py .......... [ 53%] 106s tests/test_global_config.py .... [ 54%] 106s tests/test_invariants.py . [ 54%] 106s tests/test_letter_case.py ................. [ 59%] 106s tests/test_metadata.py ... [ 60%] 106s tests/test_nested.py ...... [ 62%] 106s tests/test_recursive.py ... [ 63%] 106s tests/test_schema.py .......... [ 66%] 106s tests/test_self.py .... [ 67%] 106s tests/test_str_subclass.py .. [ 68%] 106s tests/test_time.py .......... [ 71%] 106s tests/test_tuples.py ............ [ 75%] 106s tests/test_undefined_parameters.py ..............FF................ [ 84%] 106s tests/test_union.py .............................................. [ 98%] 106s tests/test_unsupported_generics.py .... [100%] 106s 106s =================================== FAILURES =================================== 106s _______________ test_undefined_parameters_catch_all_schema_dump ________________ 106s 106s boss_json = '{\n "minions": [\n {\n "name": "evil minion", \n "UNKNOWN_PROPERTY" :... {\n "name": "very evil minion"\n }\n ],\n "UNKNOWN_PROPERTY" : "value"\n }' 106s 106s def test_undefined_parameters_catch_all_schema_dump(boss_json): 106s import json 106s 106s @dataclass_json(undefined=Undefined.INCLUDE) 106s @dataclass(frozen=True) 106s class Minion: 106s name: str 106s catch_all: CatchAll 106s 106s @dataclass_json(undefined=Undefined.INCLUDE) 106s @dataclass(frozen=True) 106s class Boss: 106s minions: List[Minion] 106s catch_all: CatchAll 106s 106s boss = Boss.schema().loads(boss_json) 106s > assert json.loads(boss_json) == Boss.schema().dump(boss) 106s 106s tests/test_undefined_parameters.py:221: 106s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:373: in dump 106s dumped = Schema.dump(self, obj, many=many) 106s /usr/lib/python3/dist-packages/marshmallow/schema.py:621: in dump 106s result = self._serialize(processed_obj, many=many) 106s /usr/lib/python3/dist-packages/marshmallow/schema.py:589: in _serialize 106s value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute) 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 106s return self._serialize(value, attr, obj, **kwargs) 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:799: in _serialize 106s return [self.inner._serialize(each, attr, obj, **kwargs) for each in value] 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:656: in _serialize 106s return schema.dump(nested_obj, many=many) 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:385: in dump 106s dumped.update(_handle_undefined_parameters_safe(cls=obj, kvs={}, 106s /usr/lib/python3/dist-packages/dataclasses_json/utils.py:208: in _handle_undefined_parameters_safe 106s return undefined_parameter_action.value.handle_dump(obj=cls) 106s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:210: in handle_dump 106s catch_all_field = _CatchAllUndefinedParameters._get_catch_all_field( 106s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:251: in _get_catch_all_field 106s types = get_type_hints(cls, globalns=cls_globals) 106s /usr/lib/python3.14/typing.py:2387: in get_type_hints 106s hints = _lazy_annotationlib.get_annotations(obj, format=format) 106s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 106s 106s obj = test_undefined_parameters_catch_all_schema_dump..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) 106s 106s def get_annotations( 106s obj, *, globals=None, locals=None, eval_str=False, format=Format.VALUE 106s ): 106s """Compute the annotations dict for an object. 106s 106s obj may be a callable, class, module, or other object with 106s __annotate__ or __annotations__ attributes. 106s Passing any other object raises TypeError. 106s 106s The *format* parameter controls the format in which annotations are returned, 106s and must be a member of the Format enum or its integer equivalent. 106s For the VALUE format, the __annotations__ is tried first; if it 106s does not exist, the __annotate__ function is called. The 106s FORWARDREF format uses __annotations__ if it exists and can be 106s evaluated, and otherwise falls back to calling the __annotate__ function. 106s The SOURCE format tries __annotate__ first, and falls back to 106s using __annotations__, stringified using annotations_to_string(). 106s 106s This function handles several details for you: 106s 106s * If eval_str is true, values of type str will 106s be un-stringized using eval(). This is intended 106s for use with stringized annotations 106s ("from __future__ import annotations"). 106s * If obj doesn't have an annotations dict, returns an 106s empty dict. (Functions and methods always have an 106s annotations dict; classes, modules, and other types of 106s callables may not.) 106s * Ignores inherited annotations on classes. If a class 106s doesn't have its own annotations dict, returns an empty dict. 106s * All accesses to object members and dict values are done 106s using getattr() and dict.get() for safety. 106s * Always, always, always returns a freshly-created dict. 106s 106s eval_str controls whether or not values of type str are replaced 106s with the result of calling eval() on those values: 106s 106s * If eval_str is true, eval() is called on values of type str. 106s * If eval_str is false (the default), values of type str are unchanged. 106s 106s globals and locals are passed in to eval(); see the documentation 106s for eval() for more information. If either globals or locals is 106s None, this function may replace that value with a context-specific 106s default, contingent on type(obj): 106s 106s * If obj is a module, globals defaults to obj.__dict__. 106s * If obj is a class, globals defaults to 106s sys.modules[obj.__module__].__dict__ and locals 106s defaults to the obj class namespace. 106s * If obj is a callable, globals defaults to obj.__globals__, 106s although if obj is a wrapped function (using 106s functools.update_wrapper()) it is first unwrapped. 106s """ 106s if eval_str and format != Format.VALUE: 106s raise ValueError("eval_str=True is only supported with format=Format.VALUE") 106s 106s match format: 106s case Format.VALUE: 106s # For VALUE, we first look at __annotations__ 106s ann = _get_dunder_annotations(obj) 106s 106s # If it's not there, try __annotate__ instead 106s if ann is None: 106s ann = _get_and_call_annotate(obj, format) 106s case Format.FORWARDREF: 106s # For FORWARDREF, we use __annotations__ if it exists 106s try: 106s ann = _get_dunder_annotations(obj) 106s except Exception: 106s pass 106s else: 106s if ann is not None: 106s return dict(ann) 106s 106s # But if __annotations__ threw a NameError, we try calling __annotate__ 106s ann = _get_and_call_annotate(obj, format) 106s if ann is None: 106s # If that didn't work either, we have a very weird object: evaluating 106s # __annotations__ threw NameError and there is no __annotate__. In that case, 106s # we fall back to trying __annotations__ again. 106s ann = _get_dunder_annotations(obj) 106s case Format.STRING: 106s # For STRING, we try to call __annotate__ 106s ann = _get_and_call_annotate(obj, format) 106s if ann is not None: 106s return dict(ann) 106s # But if we didn't get it, we use __annotations__ instead. 106s ann = _get_dunder_annotations(obj) 106s if ann is not None: 106s return annotations_to_string(ann) 106s case Format.VALUE_WITH_FAKE_GLOBALS: 106s raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only") 106s case _: 106s raise ValueError(f"Unsupported format {format!r}") 106s 106s if ann is None: 106s if isinstance(obj, type) or callable(obj): 106s return {} 106s > raise TypeError(f"{obj!r} does not have annotations") 106s E TypeError: test_undefined_parameters_catch_all_schema_dump..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) does not have annotations 106s 106s /usr/lib/python3.14/annotationlib.py:929: TypeError 106s _____________ test_undefined_parameters_catch_all_schema_roundtrip _____________ 106s 106s boss_json = '{\n "minions": [\n {\n "name": "evil minion", \n "UNKNOWN_PROPERTY" :... {\n "name": "very evil minion"\n }\n ],\n "UNKNOWN_PROPERTY" : "value"\n }' 106s 106s def test_undefined_parameters_catch_all_schema_roundtrip(boss_json): 106s @dataclass_json(undefined=Undefined.INCLUDE) 106s @dataclass(frozen=True) 106s class Minion: 106s name: str 106s catch_all: CatchAll 106s 106s @dataclass_json(undefined=Undefined.INCLUDE) 106s @dataclass(frozen=True) 106s class Boss: 106s minions: List[Minion] 106s catch_all: CatchAll 106s 106s boss1 = Boss.schema().loads(boss_json) 106s > dumped_s = Boss.schema().dumps(boss1) 106s 106s tests/test_undefined_parameters.py:239: 106s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:369: in dumps 106s return Schema.dumps(self, *args, **kwargs) 106s /usr/lib/python3/dist-packages/marshmallow/schema.py:644: in dumps 106s serialized = self.dump(obj, many=many) 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:373: in dump 106s dumped = Schema.dump(self, obj, many=many) 106s /usr/lib/python3/dist-packages/marshmallow/schema.py:621: in dump 106s result = self._serialize(processed_obj, many=many) 106s /usr/lib/python3/dist-packages/marshmallow/schema.py:589: in _serialize 106s value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute) 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 106s return self._serialize(value, attr, obj, **kwargs) 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:799: in _serialize 106s return [self.inner._serialize(each, attr, obj, **kwargs) for each in value] 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:656: in _serialize 106s return schema.dump(nested_obj, many=many) 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:385: in dump 106s dumped.update(_handle_undefined_parameters_safe(cls=obj, kvs={}, 106s /usr/lib/python3/dist-packages/dataclasses_json/utils.py:208: in _handle_undefined_parameters_safe 106s return undefined_parameter_action.value.handle_dump(obj=cls) 106s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:210: in handle_dump 106s catch_all_field = _CatchAllUndefinedParameters._get_catch_all_field( 106s /usr/lib/python3/dist-packages/dataclasses_json/undefined.py:251: in _get_catch_all_field 106s types = get_type_hints(cls, globalns=cls_globals) 106s /usr/lib/python3.14/typing.py:2387: in get_type_hints 106s hints = _lazy_annotationlib.get_annotations(obj, format=format) 106s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 106s 106s obj = test_undefined_parameters_catch_all_schema_roundtrip..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) 106s 106s def get_annotations( 106s obj, *, globals=None, locals=None, eval_str=False, format=Format.VALUE 106s ): 106s """Compute the annotations dict for an object. 106s 106s obj may be a callable, class, module, or other object with 106s __annotate__ or __annotations__ attributes. 106s Passing any other object raises TypeError. 106s 106s The *format* parameter controls the format in which annotations are returned, 106s and must be a member of the Format enum or its integer equivalent. 106s For the VALUE format, the __annotations__ is tried first; if it 106s does not exist, the __annotate__ function is called. The 106s FORWARDREF format uses __annotations__ if it exists and can be 106s evaluated, and otherwise falls back to calling the __annotate__ function. 106s The SOURCE format tries __annotate__ first, and falls back to 106s using __annotations__, stringified using annotations_to_string(). 106s 106s This function handles several details for you: 106s 106s * If eval_str is true, values of type str will 106s be un-stringized using eval(). This is intended 106s for use with stringized annotations 106s ("from __future__ import annotations"). 106s * If obj doesn't have an annotations dict, returns an 106s empty dict. (Functions and methods always have an 106s annotations dict; classes, modules, and other types of 106s callables may not.) 106s * Ignores inherited annotations on classes. If a class 106s doesn't have its own annotations dict, returns an empty dict. 106s * All accesses to object members and dict values are done 106s using getattr() and dict.get() for safety. 106s * Always, always, always returns a freshly-created dict. 106s 106s eval_str controls whether or not values of type str are replaced 106s with the result of calling eval() on those values: 106s 106s * If eval_str is true, eval() is called on values of type str. 106s * If eval_str is false (the default), values of type str are unchanged. 106s 106s globals and locals are passed in to eval(); see the documentation 106s for eval() for more information. If either globals or locals is 106s None, this function may replace that value with a context-specific 106s default, contingent on type(obj): 106s 106s * If obj is a module, globals defaults to obj.__dict__. 106s * If obj is a class, globals defaults to 106s sys.modules[obj.__module__].__dict__ and locals 106s defaults to the obj class namespace. 106s * If obj is a callable, globals defaults to obj.__globals__, 106s although if obj is a wrapped function (using 106s functools.update_wrapper()) it is first unwrapped. 106s """ 106s if eval_str and format != Format.VALUE: 106s raise ValueError("eval_str=True is only supported with format=Format.VALUE") 106s 106s match format: 106s case Format.VALUE: 106s # For VALUE, we first look at __annotations__ 106s ann = _get_dunder_annotations(obj) 106s 106s # If it's not there, try __annotate__ instead 106s if ann is None: 106s ann = _get_and_call_annotate(obj, format) 106s case Format.FORWARDREF: 106s # For FORWARDREF, we use __annotations__ if it exists 106s try: 106s ann = _get_dunder_annotations(obj) 106s except Exception: 106s pass 106s else: 106s if ann is not None: 106s return dict(ann) 106s 106s # But if __annotations__ threw a NameError, we try calling __annotate__ 106s ann = _get_and_call_annotate(obj, format) 106s if ann is None: 106s # If that didn't work either, we have a very weird object: evaluating 106s # __annotations__ threw NameError and there is no __annotate__. In that case, 106s # we fall back to trying __annotations__ again. 106s ann = _get_dunder_annotations(obj) 106s case Format.STRING: 106s # For STRING, we try to call __annotate__ 106s ann = _get_and_call_annotate(obj, format) 106s if ann is not None: 106s return dict(ann) 106s # But if we didn't get it, we use __annotations__ instead. 106s ann = _get_dunder_annotations(obj) 106s if ann is not None: 106s return annotations_to_string(ann) 106s case Format.VALUE_WITH_FAKE_GLOBALS: 106s raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only") 106s case _: 106s raise ValueError(f"Unsupported format {format!r}") 106s 106s if ann is None: 106s if isinstance(obj, type) or callable(obj): 106s return {} 106s > raise TypeError(f"{obj!r} does not have annotations") 106s E TypeError: test_undefined_parameters_catch_all_schema_roundtrip..Minion(name='evil minion', catch_all={'UNKNOWN_PROPERTY': 'value'}) does not have annotations 106s 106s /usr/lib/python3.14/annotationlib.py:929: TypeError 106s =============================== warnings summary =============================== 106s ../../../../usr/lib/python3/dist-packages/dataclasses_json/mm.py:277 106s tests/test_examples.py::TestEncoder::test_students_missing 106s tests/test_union.py::test_serialize[obj17-expected17-{"f1": null}] 106s tests/test_union.py::test_serialize[obj18-expected18-{"f1": "str1"}] 106s tests/test_union.py::test_serialize[obj19-expected19-{"f1": null}] 106s tests/test_union.py::test_deserialize[expected_obj17-data17-{"f1": null}] 106s tests/test_union.py::test_deserialize[expected_obj18-data18-{"f1": "str1"}] 106s tests/test_union.py::test_deserialize[expected_obj19-data19-{"f1": null}] 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:277: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s return TYPES[origin](*args, **options) 106s 106s ../../../../usr/lib/python3/dist-packages/marshmallow/fields.py:1606: 1 warning 106s tests/test_enum.py: 13 warnings 106s tests/test_undefined_parameters.py: 11 warnings 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:1606: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(**kwargs) 106s 106s tests/test_collection_of_unions.py:8 106s /tmp/autopkgtest.tvq73l/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) 106s @dataclass_json 106s 106s tests/test_collection_of_unions.py:14 106s /tmp/autopkgtest.tvq73l/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) 106s @dataclass_json 106s 106s tests/test_api.py: 3 warnings 106s tests/test_schema.py: 1 warning 106s tests/test_union.py: 57 warnings 106s /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} 106s super().__init__(default=default, dump_default=dump_default, **kwargs) 106s 106s tests/test_api.py::TestSchema::test_loads_default 106s tests/test_api.py::TestSchema::test_loads_default_many 106s tests/test_api.py::TestSchema::test_dumps_default 106s tests/test_api.py::TestSchema::test_dumps_default_many 106s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 106s tests/test_examples.py::TestEncoder::test_students_missing 106s tests/test_schema.py::TestSchema::test_optional 106s tests/test_schema.py::TestSchema::test_not_providing_required_field 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(**kwargs) 106s 106s tests/test_api.py::TestSchema::test_loads_default 106s tests/test_api.py::TestSchema::test_loads_default_many 106s tests/test_api.py::TestSchema::test_dumps_default 106s tests/test_api.py::TestSchema::test_dumps_default_many 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:1218: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(**kwargs) 106s 106s tests/test_api.py::TestSchema::test_dumps_new_type 106s /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`. 106s warnings.warn( 106s 106s tests/test_api.py::TestSchema::test_dumps_new_type 106s tests/test_api.py::TestSchema::test_dumps_nested_new_type 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. 106s return fields.Field(**options) 106s 106s tests/test_api.py::TestSchema::test_dumps_nested_new_type 106s /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`. 106s warnings.warn( 106s 106s tests/test_api.py::TestSchema::test_loads_infer_missing 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 106s super().__init__(**kwargs) 106s 106s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 106s super().__init__(default=default, dump_default=dump_default, **kwargs) 106s 106s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_dict 106s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_list 106s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type some_field detected when decoding TestChild. 106s warnings.warn( 106s 106s tests/test_collections.py::TestDecoder::test_optional_unbound 106s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type x detected when decoding DataClassWithOptionalUnbound. 106s warnings.warn( 106s 106s tests/test_dict.py::TestValidator::test_dataclass_with_typed_dict[metadata_dict2-False] 106s /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. 106s warnings.warn( 106s 106s tests/test_enum.py: 17 warnings 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:1928: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(**kwargs) 106s 106s tests/test_enum.py: 13 warnings 106s tests/test_schema.py: 3 warnings 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:776: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(**kwargs) 106s 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s /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`. 106s warnings.warn( 106s 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s return fields.Field(**options) 106s 106s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 106s /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`. 106s warnings.warn( 106s 106s tests/test_schema.py: 1 warning 106s tests/test_undefined_parameters.py: 8 warnings 106s tests/test_union.py: 10 warnings 106s /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} 106s super().__init__(default=default, dump_default=dump_default, **kwargs) 106s 106s tests/test_union.py: 10 warnings 106s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:73: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(*args, **kwargs) 106s 106s tests/test_union.py::test_serialize[obj11-expected11-{"f1": {"f1": 1}}] 106s tests/test_union.py::test_serialize[obj12-expected12-{"f1": null}] 106s tests/test_union.py::test_serialize[obj13-expected13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 106s tests/test_union.py::test_serialize[obj14-expected14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 106s tests/test_union.py::test_deserialize[expected_obj11-data11-{"f1": {"f1": 1}}] 106s tests/test_union.py::test_deserialize[expected_obj12-data12-{"f1": null}] 106s tests/test_union.py::test_deserialize[expected_obj13-data13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 106s tests/test_union.py::test_deserialize[expected_obj14-data14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 106s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 106s super().__init__(default=default, dump_default=dump_default, **kwargs) 106s 106s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_without_discriminator 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_without_discriminator 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_without_discriminator 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_without_discriminator 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_without_discriminator 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_without_discriminator 106s /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. 106s warnings.warn( 106s 106s tests/test_union.py::test_deserialize_with_mismatched_field_types 106s /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. 106s warnings.warn( 106s 106s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 106s =========================== short test summary info ============================ 106s FAILED tests/test_undefined_parameters.py::test_undefined_parameters_catch_all_schema_dump 106s FAILED tests/test_undefined_parameters.py::test_undefined_parameters_catch_all_schema_roundtrip 106s ============ 2 failed, 321 passed, 5 skipped, 207 warnings in 1.61s ============ 107s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.tvq73l/autopkgtest_tmp/build; python3.14 -m pytest tests 107s I: pybuild base:311: cd /tmp/autopkgtest.tvq73l/autopkgtest_tmp/build; python3.13 -m pytest tests 107s ============================= test session starts ============================== 107s platform linux -- Python 3.13.9, pytest-8.3.5, pluggy-1.6.0 107s rootdir: /tmp/autopkgtest.tvq73l/autopkgtest_tmp/build 107s configfile: pyproject.toml 107s plugins: hypothesis-6.130.5, typeguard-4.4.2 107s collected 328 items 107s 107s tests/test_annotations.py s [ 0%] 107s tests/test_api.py ........s.s....................... [ 10%] 107s tests/test_builtins.py .. [ 11%] 107s tests/test_collection_of_unions.py ...... [ 13%] 107s tests/test_collections.py .............................................. [ 27%] 107s .................. [ 32%] 107s tests/test_core.py ss [ 33%] 107s tests/test_dict.py .................. [ 38%] 108s tests/test_enum.py ............................ [ 47%] 108s tests/test_examples.py ..... [ 48%] 108s tests/test_exclude.py .... [ 50%] 108s tests/test_generic_dataclass.py .......... [ 53%] 108s tests/test_global_config.py .... [ 54%] 108s tests/test_invariants.py . [ 54%] 108s tests/test_letter_case.py ................. [ 59%] 108s tests/test_metadata.py ... [ 60%] 108s tests/test_nested.py ...... [ 62%] 108s tests/test_recursive.py ... [ 63%] 108s tests/test_schema.py .......... [ 66%] 108s tests/test_self.py .... [ 67%] 108s tests/test_str_subclass.py .. [ 68%] 108s tests/test_time.py .......... [ 71%] 108s tests/test_tuples.py ............ [ 75%] 108s tests/test_undefined_parameters.py ................................ [ 84%] 108s tests/test_union.py .............................................. [ 98%] 108s tests/test_unsupported_generics.py .... [100%] 108s 108s =============================== warnings summary =============================== 108s ../../../../usr/lib/python3/dist-packages/dataclasses_json/mm.py:277 108s tests/test_examples.py::TestEncoder::test_students_missing 108s tests/test_union.py::test_serialize[obj17-expected17-{"f1": null}] 108s tests/test_union.py::test_serialize[obj18-expected18-{"f1": "str1"}] 108s tests/test_union.py::test_serialize[obj19-expected19-{"f1": null}] 108s tests/test_union.py::test_deserialize[expected_obj17-data17-{"f1": null}] 108s tests/test_union.py::test_deserialize[expected_obj18-data18-{"f1": "str1"}] 108s tests/test_union.py::test_deserialize[expected_obj19-data19-{"f1": null}] 108s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:277: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s return TYPES[origin](*args, **options) 108s 108s ../../../../usr/lib/python3/dist-packages/marshmallow/fields.py:1606: 1 warning 108s tests/test_enum.py: 13 warnings 108s tests/test_undefined_parameters.py: 15 warnings 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:1606: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(**kwargs) 108s 108s tests/test_collection_of_unions.py:8 108s /tmp/autopkgtest.tvq73l/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) 108s @dataclass_json 108s 108s tests/test_collection_of_unions.py:14 108s /tmp/autopkgtest.tvq73l/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) 108s @dataclass_json 108s 108s tests/test_api.py: 3 warnings 108s tests/test_schema.py: 1 warning 108s tests/test_union.py: 57 warnings 108s /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} 108s super().__init__(default=default, dump_default=dump_default, **kwargs) 108s 108s tests/test_api.py::TestSchema::test_loads_default 108s tests/test_api.py::TestSchema::test_loads_default_many 108s tests/test_api.py::TestSchema::test_dumps_default 108s tests/test_api.py::TestSchema::test_dumps_default_many 108s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 108s tests/test_examples.py::TestEncoder::test_students_missing 108s tests/test_schema.py::TestSchema::test_optional 108s tests/test_schema.py::TestSchema::test_not_providing_required_field 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(**kwargs) 108s 108s tests/test_api.py::TestSchema::test_loads_default 108s tests/test_api.py::TestSchema::test_loads_default_many 108s tests/test_api.py::TestSchema::test_dumps_default 108s tests/test_api.py::TestSchema::test_dumps_default_many 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:1218: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(**kwargs) 108s 108s tests/test_api.py::TestSchema::test_dumps_new_type 108s /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`. 108s warnings.warn( 108s 108s tests/test_api.py::TestSchema::test_dumps_new_type 108s tests/test_api.py::TestSchema::test_dumps_nested_new_type 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. 108s return fields.Field(**options) 108s 108s tests/test_api.py::TestSchema::test_dumps_nested_new_type 108s /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`. 108s warnings.warn( 108s 108s tests/test_api.py::TestSchema::test_loads_infer_missing 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 108s super().__init__(**kwargs) 108s 108s tests/test_api.py::TestSchema::test_loads_infer_missing_nested 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. 108s super().__init__(default=default, dump_default=dump_default, **kwargs) 108s 108s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_dict 108s tests/test_collection_of_unions.py::TestCollectionOfUnions::test_list 108s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type some_field detected when decoding TestChild. 108s warnings.warn( 108s 108s tests/test_collections.py::TestDecoder::test_optional_unbound 108s /usr/lib/python3/dist-packages/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type x detected when decoding DataClassWithOptionalUnbound. 108s warnings.warn( 108s 108s tests/test_dict.py::TestValidator::test_dataclass_with_typed_dict[metadata_dict2-False] 108s /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. 108s warnings.warn( 108s 108s tests/test_enum.py: 17 warnings 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:1928: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(**kwargs) 108s 108s tests/test_enum.py: 13 warnings 108s tests/test_schema.py: 3 warnings 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:776: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(**kwargs) 108s 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s /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`. 108s warnings.warn( 108s 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:291: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s return fields.Field(**options) 108s 108s tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip 108s /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`. 108s warnings.warn( 108s 108s tests/test_schema.py: 1 warning 108s tests/test_undefined_parameters.py: 10 warnings 108s tests/test_union.py: 10 warnings 108s /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} 108s super().__init__(default=default, dump_default=dump_default, **kwargs) 108s 108s tests/test_union.py: 10 warnings 108s /usr/lib/python3/dist-packages/dataclasses_json/mm.py:73: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(*args, **kwargs) 108s 108s tests/test_union.py::test_serialize[obj11-expected11-{"f1": {"f1": 1}}] 108s tests/test_union.py::test_serialize[obj12-expected12-{"f1": null}] 108s tests/test_union.py::test_serialize[obj13-expected13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 108s tests/test_union.py::test_serialize[obj14-expected14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 108s tests/test_union.py::test_deserialize[expected_obj11-data11-{"f1": {"f1": 1}}] 108s tests/test_union.py::test_deserialize[expected_obj12-data12-{"f1": null}] 108s tests/test_union.py::test_deserialize[expected_obj13-data13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] 108s tests/test_union.py::test_deserialize[expected_obj14-data14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] 108s /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. 108s super().__init__(default=default, dump_default=dump_default, **kwargs) 108s 108s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_without_discriminator 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_without_discriminator 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_without_discriminator 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_without_discriminator 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_without_discriminator 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_without_discriminator 108s /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. 108s warnings.warn( 108s 108s tests/test_union.py::test_deserialize_with_mismatched_field_types 108s /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. 108s warnings.warn( 108s 108s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 108s ================= 323 passed, 5 skipped, 213 warnings in 1.25s ================= 108s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 108s make: *** [/tmp/lXhuCFUVRk/run:4: pybuild-autopkgtest] Error 25 108s pybuild-autopkgtest: error: /tmp/lXhuCFUVRk/run pybuild-autopkgtest returned exit code 2 108s autopkgtest [13:12:50]: test pybuild-autopkgtest: -----------------------] 109s pybuild-autopkgtest FAIL non-zero exit status 25 109s autopkgtest [13:12:51]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 109s autopkgtest [13:12:51]: @@@@@@@@@@@@@@@@@@@@ summary 109s pybuild-autopkgtest FAIL non-zero exit status 25