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