0s autopkgtest [14:18:30]: starting date and time: 2026-01-24 14:18:30+0000 1s autopkgtest [14:18:31]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 1s autopkgtest [14:18:31]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.s9embt7o/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade python-djantic --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@sto01-15.secgroup --name adt-resolute-amd64-python-djantic-20260124-141830-juju-7f2275-prod-proposed-migration-environment-20-f7fe75ca-a6d3-4693-a6af-374e6c0fe37b --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-amd64-python-djantic-20260124-141830-juju-7f2275-prod-proposed-migration-environment-20-f7fe75ca-a6d3-4693-a6af-374e6c0fe37b from image adt/ubuntu-resolute-amd64-server-20260124.img (UUID 46811f22-3700-43f4-953b-ee3c613d71bb)... 79s autopkgtest [14:19:49]: testbed dpkg architecture: amd64 79s autopkgtest [14:19:49]: testbed apt version: 3.1.13 79s autopkgtest [14:19:49]: @@@@@@@@@@@@@@@@@@@@ test bed setup 79s autopkgtest [14:19:49]: testbed release detected to be: None 80s autopkgtest [14:19:50]: updating testbed package index (apt update) 80s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 80s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 80s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 80s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 80s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [24.3 kB] 80s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [994 kB] 80s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [91.5 kB] 80s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 81s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [113 kB] 81s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [96.0 kB] 81s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [3712 B] 81s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [12.3 kB] 81s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3696 B] 81s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 81s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [876 kB] 81s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [373 kB] 81s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [24.9 kB] 81s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [12.4 kB] 81s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [4704 B] 81s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [824 B] 81s Fetched 2758 kB in 1s (3570 kB/s) 82s Reading package lists... 83s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 83s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 83s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 83s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 83s Reading package lists... 83s Reading package lists... 83s Building dependency tree... 83s Reading state information... 83s Calculating upgrade... 84s The following packages were automatically installed and are no longer required: 84s python3.13 python3.13-minimal 84s Use 'sudo apt autoremove' to remove them. 84s The following NEW packages will be installed: 84s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 84s The following packages will be upgraded: 84s libpython3-stdlib python3 python3-gdbm python3-minimal rust-coreutils 84s 5 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 84s Need to get 10.4 MB of archives. 84s After this operation, 25.2 MB of additional disk space will be used. 84s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.2-1 [920 kB] 84s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.2-1 [2563 kB] 84s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.14.2-1 [28.2 kB] 84s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.14.2-1 [22.9 kB] 84s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.2-1 [2398 kB] 85s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.2-1 [816 kB] 85s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.14.2-1 [10.9 kB] 85s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 rust-coreutils amd64 0.5.0-0ubuntu1 [3628 kB] 85s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-gdbm amd64 3.14.2-1 [11.1 kB] 85s dpkg-preconfigure: unable to re-open stdin: No such file or directory 85s Fetched 10.4 MB in 1s (7966 kB/s) 85s Selecting previously unselected package libpython3.14-minimal:amd64. 85s (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 ... 124177 files and directories currently installed.) 85s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_amd64.deb ... 85s Unpacking libpython3.14-minimal:amd64 (3.14.2-1) ... 85s Selecting previously unselected package python3.14-minimal. 85s Preparing to unpack .../python3.14-minimal_3.14.2-1_amd64.deb ... 85s Unpacking python3.14-minimal (3.14.2-1) ... 85s Setting up libpython3.14-minimal:amd64 (3.14.2-1) ... 85s Setting up python3.14-minimal (3.14.2-1) ... 86s (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 ... 124519 files and directories currently installed.) 86s Preparing to unpack .../python3-minimal_3.14.2-1_amd64.deb ... 86s Unpacking python3-minimal (3.14.2-1) over (3.13.9-3) ... 86s Setting up python3-minimal (3.14.2-1) ... 86s (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 ... 124519 files and directories currently installed.) 86s Preparing to unpack .../python3_3.14.2-1_amd64.deb ... 86s running python pre-rtupdate hooks for python3.14... 86s Unpacking python3 (3.14.2-1) over (3.13.9-3) ... 86s Selecting previously unselected package libpython3.14-stdlib:amd64. 86s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_amd64.deb ... 86s Unpacking libpython3.14-stdlib:amd64 (3.14.2-1) ... 86s Selecting previously unselected package python3.14. 86s Preparing to unpack .../python3.14_3.14.2-1_amd64.deb ... 86s Unpacking python3.14 (3.14.2-1) ... 86s Preparing to unpack .../libpython3-stdlib_3.14.2-1_amd64.deb ... 86s Unpacking libpython3-stdlib:amd64 (3.14.2-1) over (3.13.9-3) ... 86s Preparing to unpack .../rust-coreutils_0.5.0-0ubuntu1_amd64.deb ... 86s Unpacking rust-coreutils (0.5.0-0ubuntu1) over (0.2.2-0ubuntu2) ... 87s Setting up rust-coreutils (0.5.0-0ubuntu1) ... 87s (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 ... 124980 files and directories currently installed.) 87s Preparing to unpack .../python3-gdbm_3.14.2-1_amd64.deb ... 87s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-3) ... 87s Setting up libpython3.14-stdlib:amd64 (3.14.2-1) ... 87s Setting up python3.14 (3.14.2-1) ... 87s Setting up libpython3-stdlib:amd64 (3.14.2-1) ... 87s Setting up python3-gdbm (3.14.2-1) ... 87s Setting up python3 (3.14.2-1) ... 87s running python rtupdate hooks for python3.14... 87s running python post-rtupdate hooks for python3.14... 87s Processing triggers for man-db (2.13.1-1) ... 88s Processing triggers for systemd (259-1ubuntu2) ... 88s autopkgtest [14:19:58]: upgrading testbed (apt dist-upgrade and autopurge) 88s Reading package lists... 88s Building dependency tree... 88s Reading state information... 88s Calculating upgrade... 88s The following packages were automatically installed and are no longer required: 88s python3.13 python3.13-minimal 88s Use 'sudo apt autoremove' to remove them. 88s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s Reading package lists... 89s Building dependency tree... 89s Reading state information... 89s Solving dependencies... 89s The following packages will be REMOVED: 89s python3.13* python3.13-minimal* 89s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 89s After this operation, 7860 kB disk space will be freed. 89s (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 ... 124978 files and directories currently installed.) 89s Removing python3.13 (3.13.11-1) ... 89s Removing python3.13-minimal (3.13.11-1) ... 90s Processing triggers for man-db (2.13.1-1) ... 90s Processing triggers for systemd (259-1ubuntu2) ... 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 ... 124951 files and directories currently installed.) 90s Purging configuration files for python3.13-minimal (3.13.11-1) ... 92s autopkgtest [14:20:02]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:49:02 UTC 2026 92s autopkgtest [14:20:02]: @@@@@@@@@@@@@@@@@@@@ apt-source python-djantic 93s Get:1 http://ftpmaster.internal/ubuntu resolute/universe python-djantic 0.7.0-6 (dsc) [2588 B] 93s Get:2 http://ftpmaster.internal/ubuntu resolute/universe python-djantic 0.7.0-6 (tar) [54.6 kB] 93s Get:3 http://ftpmaster.internal/ubuntu resolute/universe python-djantic 0.7.0-6 (diff) [4336 B] 94s gpgv: Signature made Thu Feb 20 07:32:29 2025 UTC 94s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 94s gpgv: issuer "tchet@debian.org" 94s gpgv: Can't check signature: No public key 94s dpkg-source: warning: cannot verify inline signature for ./python-djantic_0.7.0-6.dsc: no acceptable signature found 94s autopkgtest [14:20:04]: testing package python-djantic version 0.7.0-6 94s autopkgtest [14:20:04]: build not needed 94s autopkgtest [14:20:04]: test upstream: preparing testbed 94s Reading package lists... 94s Building dependency tree... 94s Reading state information... 94s Solving dependencies... 95s The following NEW packages will be installed: 95s libdeflate0 libgomp1 libgraphite2-3 libharfbuzz0b libimagequant0 libjbig0 95s libjpeg-turbo8 libjpeg8 liblcms2-2 liblerc4 libopenjp2-7 libpq5 libraqm0 95s libsharpyuv0 libtiff6 libwebp7 libwebpdemux2 libwebpmux3 python-djantic-doc 95s python3-all python3-annotated-types python3-asgiref python3-django 95s python3-djantic python3-dnspython python3-email-validator 95s python3-factory-boy python3-fake-factory python3-iniconfig python3-pil 95s python3-pluggy python3-psycopg2 python3-pydantic python3-pydantic-core 95s python3-pytest python3-pytest-django python3-sqlparse 95s python3-typing-inspection python3.13 python3.13-minimal 95s 0 upgraded, 40 newly installed, 0 to remove and 0 not upgraded. 95s Need to get 14.5 MB of archives. 95s After this operation, 73.8 MB of additional disk space will be used. 95s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13-minimal amd64 3.13.11-1 [2408 kB] 95s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13 amd64 3.13.11-1 [758 kB] 95s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libdeflate0 amd64 1.23-2 [49.9 kB] 95s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libgomp1 amd64 15.2.0-11ubuntu1 [151 kB] 95s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 libgraphite2-3 amd64 1.3.14-11ubuntu1 [73.7 kB] 95s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libharfbuzz0b amd64 12.3.0-4 [529 kB] 95s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libimagequant0 amd64 2.18.0-1build1 [36.3 kB] 95s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libjpeg-turbo8 amd64 2.1.5-4ubuntu2 [152 kB] 95s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libjpeg8 amd64 8c-2ubuntu11 [2148 B] 95s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 liblcms2-2 amd64 2.17-1 [170 kB] 95s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 liblerc4 amd64 4.0.0+ds-5ubuntu2 [207 kB] 95s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 libpq5 amd64 18.1-2 [155 kB] 95s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 libraqm0 amd64 0.10.3-1 [15.4 kB] 95s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 libsharpyuv0 amd64 1.5.0-0.1build1 [17.6 kB] 95s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libjbig0 amd64 2.1-6.1ubuntu3 [30.0 kB] 95s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libwebp7 amd64 1.5.0-0.1build1 [264 kB] 95s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 libtiff6 amd64 4.7.0-3ubuntu3 [209 kB] 95s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libwebpdemux2 amd64 1.5.0-0.1build1 [12.8 kB] 95s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 libwebpmux3 amd64 1.5.0-0.1build1 [26.4 kB] 95s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-djantic-doc all 0.7.0-6 [492 kB] 95s Get:21 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-all amd64 3.14.2-1 [890 B] 95s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-annotated-types all 0.7.0-1 [19.4 kB] 95s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-asgiref all 3.11.0-1 [25.2 kB] 95s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-sqlparse all 0.5.4-1 [34.3 kB] 95s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-django all 3:5.2.9-0ubuntu2 [3038 kB] 95s Get:26 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pydantic-core amd64 2.41.5-2 [2427 kB] 95s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-typing-inspection all 0.4.2-1 [13.1 kB] 95s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-dnspython all 2.7.0-1ubuntu2 [167 kB] 95s Get:29 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-email-validator all 2.2.0-1 [28.5 kB] 95s Get:30 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pydantic amd64 2.12.5-2 [312 kB] 95s Get:31 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-djantic all 0.7.0-6 [9454 B] 95s Get:32 http://ftpmaster.internal/ubuntu resolute/main amd64 libopenjp2-7 amd64 2.5.4-1 [188 kB] 95s Get:33 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-pil amd64 12.0.0-1ubuntu1 [494 kB] 95s Get:34 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-fake-factory all 39.0.0-1 [1455 kB] 95s Get:35 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-factory-boy all 3.3.3-1build1 [35.9 kB] 95s Get:36 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-2 [6962 B] 95s Get:37 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-2 [21.1 kB] 95s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-psycopg2 amd64 2.9.11-1 [164 kB] 95s Get:39 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 9.0.2-2 [277 kB] 95s Get:40 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest-django all 4.11.1-2 [21.8 kB] 96s Fetched 14.5 MB in 1s (18.2 MB/s) 96s Selecting previously unselected package python3.13-minimal. 96s (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 ... 124953 files and directories currently installed.) 96s Preparing to unpack .../00-python3.13-minimal_3.13.11-1_amd64.deb ... 96s Unpacking python3.13-minimal (3.13.11-1) ... 96s Selecting previously unselected package python3.13. 96s Preparing to unpack .../01-python3.13_3.13.11-1_amd64.deb ... 96s Unpacking python3.13 (3.13.11-1) ... 96s Selecting previously unselected package libdeflate0:amd64. 96s Preparing to unpack .../02-libdeflate0_1.23-2_amd64.deb ... 96s Unpacking libdeflate0:amd64 (1.23-2) ... 96s Selecting previously unselected package libgomp1:amd64. 96s Preparing to unpack .../03-libgomp1_15.2.0-11ubuntu1_amd64.deb ... 96s Unpacking libgomp1:amd64 (15.2.0-11ubuntu1) ... 96s Selecting previously unselected package libgraphite2-3:amd64. 96s Preparing to unpack .../04-libgraphite2-3_1.3.14-11ubuntu1_amd64.deb ... 96s Unpacking libgraphite2-3:amd64 (1.3.14-11ubuntu1) ... 96s Selecting previously unselected package libharfbuzz0b:amd64. 96s Preparing to unpack .../05-libharfbuzz0b_12.3.0-4_amd64.deb ... 96s Unpacking libharfbuzz0b:amd64 (12.3.0-4) ... 96s Selecting previously unselected package libimagequant0:amd64. 96s Preparing to unpack .../06-libimagequant0_2.18.0-1build1_amd64.deb ... 96s Unpacking libimagequant0:amd64 (2.18.0-1build1) ... 96s Selecting previously unselected package libjpeg-turbo8:amd64. 96s Preparing to unpack .../07-libjpeg-turbo8_2.1.5-4ubuntu2_amd64.deb ... 96s Unpacking libjpeg-turbo8:amd64 (2.1.5-4ubuntu2) ... 96s Selecting previously unselected package libjpeg8:amd64. 96s Preparing to unpack .../08-libjpeg8_8c-2ubuntu11_amd64.deb ... 96s Unpacking libjpeg8:amd64 (8c-2ubuntu11) ... 96s Selecting previously unselected package liblcms2-2:amd64. 96s Preparing to unpack .../09-liblcms2-2_2.17-1_amd64.deb ... 96s Unpacking liblcms2-2:amd64 (2.17-1) ... 96s Selecting previously unselected package liblerc4:amd64. 96s Preparing to unpack .../10-liblerc4_4.0.0+ds-5ubuntu2_amd64.deb ... 96s Unpacking liblerc4:amd64 (4.0.0+ds-5ubuntu2) ... 96s Selecting previously unselected package libpq5:amd64. 96s Preparing to unpack .../11-libpq5_18.1-2_amd64.deb ... 96s Unpacking libpq5:amd64 (18.1-2) ... 96s Selecting previously unselected package libraqm0:amd64. 96s Preparing to unpack .../12-libraqm0_0.10.3-1_amd64.deb ... 96s Unpacking libraqm0:amd64 (0.10.3-1) ... 96s Selecting previously unselected package libsharpyuv0:amd64. 96s Preparing to unpack .../13-libsharpyuv0_1.5.0-0.1build1_amd64.deb ... 96s Unpacking libsharpyuv0:amd64 (1.5.0-0.1build1) ... 96s Selecting previously unselected package libjbig0:amd64. 96s Preparing to unpack .../14-libjbig0_2.1-6.1ubuntu3_amd64.deb ... 96s Unpacking libjbig0:amd64 (2.1-6.1ubuntu3) ... 96s Selecting previously unselected package libwebp7:amd64. 96s Preparing to unpack .../15-libwebp7_1.5.0-0.1build1_amd64.deb ... 96s Unpacking libwebp7:amd64 (1.5.0-0.1build1) ... 96s Selecting previously unselected package libtiff6:amd64. 96s Preparing to unpack .../16-libtiff6_4.7.0-3ubuntu3_amd64.deb ... 96s Unpacking libtiff6:amd64 (4.7.0-3ubuntu3) ... 96s Selecting previously unselected package libwebpdemux2:amd64. 96s Preparing to unpack .../17-libwebpdemux2_1.5.0-0.1build1_amd64.deb ... 96s Unpacking libwebpdemux2:amd64 (1.5.0-0.1build1) ... 96s Selecting previously unselected package libwebpmux3:amd64. 96s Preparing to unpack .../18-libwebpmux3_1.5.0-0.1build1_amd64.deb ... 96s Unpacking libwebpmux3:amd64 (1.5.0-0.1build1) ... 96s Selecting previously unselected package python-djantic-doc. 96s Preparing to unpack .../19-python-djantic-doc_0.7.0-6_all.deb ... 96s Unpacking python-djantic-doc (0.7.0-6) ... 96s Selecting previously unselected package python3-all. 96s Preparing to unpack .../20-python3-all_3.14.2-1_amd64.deb ... 96s Unpacking python3-all (3.14.2-1) ... 96s Selecting previously unselected package python3-annotated-types. 96s Preparing to unpack .../21-python3-annotated-types_0.7.0-1_all.deb ... 96s Unpacking python3-annotated-types (0.7.0-1) ... 96s Selecting previously unselected package python3-asgiref. 96s Preparing to unpack .../22-python3-asgiref_3.11.0-1_all.deb ... 96s Unpacking python3-asgiref (3.11.0-1) ... 96s Selecting previously unselected package python3-sqlparse. 96s Preparing to unpack .../23-python3-sqlparse_0.5.4-1_all.deb ... 96s Unpacking python3-sqlparse (0.5.4-1) ... 96s Selecting previously unselected package python3-django. 96s Preparing to unpack .../24-python3-django_3%3a5.2.9-0ubuntu2_all.deb ... 96s Unpacking python3-django (3:5.2.9-0ubuntu2) ... 96s Selecting previously unselected package python3-pydantic-core. 96s Preparing to unpack .../25-python3-pydantic-core_2.41.5-2_amd64.deb ... 96s Unpacking python3-pydantic-core (2.41.5-2) ... 96s Selecting previously unselected package python3-typing-inspection. 96s Preparing to unpack .../26-python3-typing-inspection_0.4.2-1_all.deb ... 96s Unpacking python3-typing-inspection (0.4.2-1) ... 96s Selecting previously unselected package python3-dnspython. 96s Preparing to unpack .../27-python3-dnspython_2.7.0-1ubuntu2_all.deb ... 96s Unpacking python3-dnspython (2.7.0-1ubuntu2) ... 96s Selecting previously unselected package python3-email-validator. 96s Preparing to unpack .../28-python3-email-validator_2.2.0-1_all.deb ... 96s Unpacking python3-email-validator (2.2.0-1) ... 96s Selecting previously unselected package python3-pydantic. 96s Preparing to unpack .../29-python3-pydantic_2.12.5-2_amd64.deb ... 96s Unpacking python3-pydantic (2.12.5-2) ... 96s Selecting previously unselected package python3-djantic. 96s Preparing to unpack .../30-python3-djantic_0.7.0-6_all.deb ... 96s Unpacking python3-djantic (0.7.0-6) ... 96s Selecting previously unselected package libopenjp2-7:amd64. 96s Preparing to unpack .../31-libopenjp2-7_2.5.4-1_amd64.deb ... 96s Unpacking libopenjp2-7:amd64 (2.5.4-1) ... 96s Selecting previously unselected package python3-pil:amd64. 96s Preparing to unpack .../32-python3-pil_12.0.0-1ubuntu1_amd64.deb ... 96s Unpacking python3-pil:amd64 (12.0.0-1ubuntu1) ... 96s Selecting previously unselected package python3-fake-factory. 96s Preparing to unpack .../33-python3-fake-factory_39.0.0-1_all.deb ... 96s Unpacking python3-fake-factory (39.0.0-1) ... 96s Selecting previously unselected package python3-factory-boy. 96s Preparing to unpack .../34-python3-factory-boy_3.3.3-1build1_all.deb ... 96s Unpacking python3-factory-boy (3.3.3-1build1) ... 96s Selecting previously unselected package python3-iniconfig. 96s Preparing to unpack .../35-python3-iniconfig_2.1.0-2_all.deb ... 96s Unpacking python3-iniconfig (2.1.0-2) ... 96s Selecting previously unselected package python3-pluggy. 96s Preparing to unpack .../36-python3-pluggy_1.6.0-2_all.deb ... 96s Unpacking python3-pluggy (1.6.0-2) ... 96s Selecting previously unselected package python3-psycopg2. 96s Preparing to unpack .../37-python3-psycopg2_2.9.11-1_amd64.deb ... 96s Unpacking python3-psycopg2 (2.9.11-1) ... 96s Selecting previously unselected package python3-pytest. 96s Preparing to unpack .../38-python3-pytest_9.0.2-2_all.deb ... 96s Unpacking python3-pytest (9.0.2-2) ... 96s Selecting previously unselected package python3-pytest-django. 96s Preparing to unpack .../39-python3-pytest-django_4.11.1-2_all.deb ... 96s Unpacking python3-pytest-django (4.11.1-2) ... 96s Setting up libgraphite2-3:amd64 (1.3.14-11ubuntu1) ... 96s Setting up liblcms2-2:amd64 (2.17-1) ... 96s Setting up python3-iniconfig (2.1.0-2) ... 97s Setting up libsharpyuv0:amd64 (1.5.0-0.1build1) ... 97s Setting up python3-pydantic-core (2.41.5-2) ... 97s Setting up liblerc4:amd64 (4.0.0+ds-5ubuntu2) ... 97s Setting up python3-typing-inspection (0.4.2-1) ... 97s Setting up python-djantic-doc (0.7.0-6) ... 97s Setting up libpq5:amd64 (18.1-2) ... 97s Setting up libdeflate0:amd64 (1.23-2) ... 97s Setting up libgomp1:amd64 (15.2.0-11ubuntu1) ... 97s Setting up libjbig0:amd64 (2.1-6.1ubuntu3) ... 97s Setting up python3-annotated-types (0.7.0-1) ... 97s Setting up python3-sqlparse (0.5.4-1) ... 97s Setting up libimagequant0:amd64 (2.18.0-1build1) ... 97s Setting up python3-psycopg2 (2.9.11-1) ... 97s Setting up libjpeg-turbo8:amd64 (2.1.5-4ubuntu2) ... 97s Setting up python3-pluggy (1.6.0-2) ... 97s Setting up libwebp7:amd64 (1.5.0-0.1build1) ... 97s Setting up python3-dnspython (2.7.0-1ubuntu2) ... 98s Setting up libopenjp2-7:amd64 (2.5.4-1) ... 98s Setting up python3.13-minimal (3.13.11-1) ... 98s Setting up libharfbuzz0b:amd64 (12.3.0-4) ... 98s Setting up python3-email-validator (2.2.0-1) ... 98s Setting up libwebpmux3:amd64 (1.5.0-0.1build1) ... 98s Setting up python3-asgiref (3.11.0-1) ... 98s Setting up libjpeg8:amd64 (8c-2ubuntu11) ... 98s Setting up python3-django (3:5.2.9-0ubuntu2) ... 100s Setting up python3.13 (3.13.11-1) ... 101s Setting up python3-pytest (9.0.2-2) ... 101s Setting up libwebpdemux2:amd64 (1.5.0-0.1build1) ... 101s Setting up python3-all (3.14.2-1) ... 101s Setting up python3-pytest-django (4.11.1-2) ... 101s Setting up python3-pydantic (2.12.5-2) ... 102s Setting up libraqm0:amd64 (0.10.3-1) ... 102s Setting up libtiff6:amd64 (4.7.0-3ubuntu3) ... 102s Setting up python3-djantic (0.7.0-6) ... 102s Setting up python3-pil:amd64 (12.0.0-1ubuntu1) ... 102s Setting up python3-fake-factory (39.0.0-1) ... 104s Setting up python3-factory-boy (3.3.3-1build1) ... 104s Processing triggers for systemd (259-1ubuntu2) ... 104s Processing triggers for man-db (2.13.1-1) ... 104s Processing triggers for libc-bin (2.42-2ubuntu4) ... 105s autopkgtest [14:20:15]: test upstream: [----------------------- 105s ============================= test session starts ============================== 105s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 -- /usr/bin/python3.13 105s cachedir: .pytest_cache 105s django: version: 5.2.9, settings: tests.testapp.settings (from ini) 105s rootdir: /tmp/autopkgtest.t8eFY0/autopkgtest_tmp 105s configfile: setup.cfg 105s plugins: typeguard-4.4.4, django-4.11.1, Faker-39.0.0 105s collecting ... collected 32 items / 4 deselected / 28 selected 105s 106s tests/test_fields.py::test_unhandled_field_type Creating test database for alias 'default'... 106s is currently unhandled, defaulting to str. 106s PASSED 106s tests/test_fields.py::test_custom_field PASSED 106s tests/test_fields.py::test_postgres_json_field PASSED 106s tests/test_fields.py::test_lazy_choice_field PASSED 106s tests/test_fields.py::test_enum_choices PASSED 106s tests/test_fields.py::test_enum_choices_generates_unique_enums PASSED 106s tests/test_fields.py::test_listing PASSED 106s tests/test_files.py::test_image_field_schema PASSED 106s tests/test_main.py::test_config_errors PASSED 106s tests/test_main.py::test_get_field_names PASSED 106s tests/test_queries.py::test_get_instance PASSED 106s tests/test_queries.py::test_get_instance_with_generic_foreign_key PASSED 106s tests/test_queries.py::test_get_queryset_with_reverse_one_to_one PASSED 106s tests/test_queries.py::test_get_queryset_with_foreign_key PASSED 106s tests/test_queries.py::test_get_queryset_with_reverse_foreign_key PASSED 106s tests/test_queries.py::test_get_queryset_with_generic_foreign_key PASSED 106s tests/test_relations.py::test_m2m PASSED 106s tests/test_relations.py::test_foreign_key PASSED 106s tests/test_relations.py::test_one_to_one PASSED 106s tests/test_relations.py::test_one_to_one_reverse PASSED 106s tests/test_relations.py::test_generic_relation PASSED 106s tests/test_relations.py::test_m2m_reverse PASSED 106s tests/test_schemas.py::test_description PASSED 106s tests/test_schemas.py::test_cache PASSED 106s tests/test_schemas.py::test_include_exclude PASSED 106s tests/test_schemas.py::test_json PASSED 106s tests/test_schemas.py::test_include_from_annotations PASSED 106s tests/test_schemas.py::test_by_alias_generator PASSEDDestroying test database for alias 'default'... 106s 106s 106s ============================= slowest 10 durations ============================= 106s 0.14s setup tests/test_fields.py::test_unhandled_field_type 106s 0.01s call tests/test_relations.py::test_m2m_reverse 106s 106s (8 durations < 0.005s hidden. Use -vv to show these durations.) 106s ======================= 28 passed, 4 deselected in 0.41s ======================= 106s ============================= test session starts ============================== 106s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 -- /usr/bin/python3.14 106s cachedir: .pytest_cache 106s django: version: 5.2.9, settings: tests.testapp.settings (from ini) 106s rootdir: /tmp/autopkgtest.t8eFY0/autopkgtest_tmp 106s configfile: setup.cfg 106s plugins: typeguard-4.4.4, django-4.11.1, Faker-39.0.0 106s collecting ... collected 32 items / 4 deselected / 28 selected 106s 106s tests/test_fields.py::test_unhandled_field_type Creating test database for alias 'default'... 107s is currently unhandled, defaulting to str. 107s PASSED 107s tests/test_fields.py::test_custom_field PASSED 107s tests/test_fields.py::test_postgres_json_field PASSED 107s tests/test_fields.py::test_lazy_choice_field PASSED 107s tests/test_fields.py::test_enum_choices PASSED 107s tests/test_fields.py::test_enum_choices_generates_unique_enums PASSED 107s tests/test_fields.py::test_listing PASSED 107s tests/test_files.py::test_image_field_schema PASSED 107s tests/test_main.py::test_config_errors PASSED 107s tests/test_main.py::test_get_field_names PASSED 107s tests/test_queries.py::test_get_instance PASSED 107s tests/test_queries.py::test_get_instance_with_generic_foreign_key FAILED 107s tests/test_queries.py::test_get_queryset_with_reverse_one_to_one FAILED 107s tests/test_queries.py::test_get_queryset_with_foreign_key FAILED 107s tests/test_queries.py::test_get_queryset_with_reverse_foreign_key FAILED 107s tests/test_queries.py::test_get_queryset_with_generic_foreign_key PASSED 107s tests/test_relations.py::test_m2m FAILED 107s tests/test_relations.py::test_foreign_key FAILED 107s tests/test_relations.py::test_one_to_one FAILED 107s tests/test_relations.py::test_one_to_one_reverse FAILED 107s tests/test_relations.py::test_generic_relation FAILED 107s tests/test_relations.py::test_m2m_reverse FAILED 107s tests/test_schemas.py::test_description PASSED 107s tests/test_schemas.py::test_cache PASSED 107s tests/test_schemas.py::test_include_exclude PASSED 107s tests/test_schemas.py::test_json PASSED 107s tests/test_schemas.py::test_include_from_annotations FAILED 107s tests/test_schemas.py::test_by_alias_generator PASSEDDestroying test database for alias 'default'... 107s 107s 107s =================================== FAILURES =================================== 107s __________________ test_get_instance_with_generic_foreign_key __________________ 107s 107s @pytest.mark.django_db 107s def test_get_instance_with_generic_foreign_key(): 107s 107s bookmark = Bookmark.objects.create(url="https://www.djangoproject.com/") 107s Tagged.objects.create(content_object=bookmark, slug="django") 107s 107s class TaggedSchema(ModelSchema): 107s class Config: 107s model = Tagged 107s 107s class BookmarkWithTaggedSchema(ModelSchema): 107s 107s tags: List[TaggedSchema] 107s 107s class Config: 107s model = Bookmark 107s 107s bookmark_with_tagged_schema = BookmarkWithTaggedSchema.from_django(bookmark) 107s 107s > assert bookmark_with_tagged_schema.dict() == { 107s "id": 1, 107s "tags": [ 107s { 107s 'content_object': 1, 107s "content_type": 20, 107s "id": 1, 107s "object_id": 1, 107s "slug": "django", 107s } 107s ], 107s "url": "https://www.djangoproject.com/", 107s } 107s E AssertionError: assert {'id': 1, 'ta...project.com/'} == {'id': 1, 'ta...project.com/'} 107s E 107s E Omitting 2 identical items, use -vv to show 107s E Differing items: 107s E {'tags': [{'id': 1}]} != {'tags': [{'content_object': 1, 'content_type': 20, 'id': 1, 'object_id': 1, ...}]} 107s E 107s E Full diff: 107s E {... 107s E 107s E ...Full output truncated (12 lines hidden), use '-vv' to show 107s 107s tests/test_queries.py:46: AssertionError 107s __________________ test_get_queryset_with_reverse_one_to_one ___________________ 107s 107s @pytest.mark.django_db 107s def test_get_queryset_with_reverse_one_to_one(): 107s """ 107s Test retrieving a Django queryset with reverse one-to-one relationships. 107s """ 107s user_data = [ 107s {"first_name": "Jordan", "email": "jordan@eremieff.com"}, 107s {"first_name": "Sara", "email": "sara@example.com"}, 107s ] 107s for kwargs in user_data: 107s user = User.objects.create(**kwargs) 107s Profile.objects.create(user=user, location="Australia") 107s 107s class UserSchema(ModelSchema): 107s class Config: 107s model = User 107s include = ["id", "email", "first_name", "profile"] 107s 107s users = User.objects.all() 107s user_schema_qs = UserSchema.from_django(users, many=True) 107s assert user_schema_qs == [ 107s { 107s "email": "jordan@eremieff.com", 107s "first_name": "Jordan", 107s "id": 1, 107s "profile": 1, 107s }, 107s {"email": "sara@example.com", "first_name": "Sara", "id": 2, "profile": 2}, 107s ] 107s 107s # Test when using a declared sub-model 107s class ProfileSchema(ModelSchema): 107s class Config: 107s model = Profile 107s include = ["id", "location"] 107s 107s class UserWithProfileSchema(ModelSchema): 107s 107s profile: ProfileSchema 107s 107s class Config: 107s model = User 107s exclude = ["created_at", "updated_at", "last_name"] 107s 107s users = User.objects.all() 107s 107s user_with_profile_schema_qs = UserWithProfileSchema.from_django(users, many=True) 107s > assert user_with_profile_schema_qs == [ 107s { 107s "email": "jordan@eremieff.com", 107s "first_name": "Jordan", 107s "id": 1, 107s "profile": {"id": 1, "location": "Australia"}, 107s }, 107s { 107s "email": "sara@example.com", 107s "first_name": "Sara", 107s "id": 2, 107s "profile": {"id": 2, "location": "Australia"}, 107s }, 107s ] 107s E AssertionError: assert [UserWithProf...example.com')] == [{'email': 'j...'Australia'}}] 107s E 107s E At index 0 diff: UserWithProfileSchema(profile=1, id=1, first_name='Jordan', email='jordan@eremieff.com') != {'email': 'jordan@eremieff.com', 'first_name': 'Jordan', 'id': 1, 'profile': {'id': 1, 'location': 'Australia'}} 107s E 107s E Full diff: 107s E [ 107s E + UserWithProfileSchema(profile=1, id=1, first_name='Jordan', email='jordan@eremieff.com'), 107s E + UserWithProfileSchema(profile=2, id=2, first_name='Sara', email='sara@example.com'),... 107s E 107s E ...Full output truncated (19 lines hidden), use '-vv' to show 107s 107s tests/test_queries.py:108: AssertionError 107s ______________________ test_get_queryset_with_foreign_key ______________________ 107s 107s @pytest.mark.django_db 107s def test_get_queryset_with_foreign_key(): 107s """ 107s Test retrieving a Django queryset with foreign-key relationships. 107s """ 107s 107s thread = Thread.objects.create(title="My thread topic") 107s thread2 = Thread.objects.create(title="Another topic") 107s for content in ("I agree.", "I disagree!", "lol"): 107s message_one = Message.objects.create(content=content, thread=thread) 107s Message.objects.create(content=content, thread=thread2) 107s 107s class MessageSchema(ModelSchema): 107s class Config: 107s model = Message 107s exclude = ["created_at"] 107s 107s schema = MessageSchema.from_django(message_one) 107s assert schema.dict() == {"id": 5, "content": "lol", "thread": 1} 107s 107s class ThreadSchema(ModelSchema): 107s class Config: 107s model = Thread 107s exclude = ["created_at"] 107s 107s class MessageWithThreadSchema(ModelSchema): 107s thread: ThreadSchema 107s 107s class Config: 107s model = Message 107s exclude = ["created_at"] 107s 107s schema = MessageWithThreadSchema.from_django(message_one) 107s > assert schema.dict() == { 107s "id": 5, 107s "content": "lol", 107s "thread": { 107s "messages": [{"id": 1}, {"id": 3}, {"id": 5}], 107s "id": 1, 107s "title": "My thread topic", 107s }, 107s } 107s E AssertionError: assert {'content': '..., 'thread': 1} == {'content': '...hread topic'}} 107s E 107s E Omitting 2 identical items, use -vv to show 107s E Differing items: 107s E {'thread': 1} != {'thread': {'id': 1, 'messages': [{'id': 1}, {'id': 3}, {'id': 5}], 'title': 'My thread topic'}} 107s E 107s E Full diff: 107s E {... 107s E 107s E ...Full output truncated (21 lines hidden), use '-vv' to show 107s 107s tests/test_queries.py:157: AssertionError 107s __________________ test_get_queryset_with_reverse_foreign_key __________________ 107s 107s @pytest.mark.django_db 107s def test_get_queryset_with_reverse_foreign_key(): 107s """ 107s Test retrieving a Django queryset with reverse foreign-key relationships. 107s """ 107s 107s thread = Thread.objects.create(title="My thread topic") 107s thread2 = Thread.objects.create(title="Another topic") 107s for content in ("I agree.", "I disagree!", "lol"): 107s Message.objects.create(content=content, thread=thread) 107s Message.objects.create(content=content, thread=thread2) 107s 107s threads = Thread.objects.all() 107s 107s class MessageSchema(ModelSchema): 107s class Config: 107s model = Message 107s include = ["id", "content"] 107s 107s class ThreadSchema(ModelSchema): 107s class Config: 107s model = Thread 107s 107s thread_schema_qs = ThreadSchema.from_django(threads, many=True) 107s thread_schemas = [t.dict() for t in thread_schema_qs] 107s assert thread_schemas == [ 107s { 107s "messages": [{"id": 2}, {"id": 4}, {"id": 6}], 107s "id": 2, 107s "title": "Another topic", 107s }, 107s { 107s "messages": [{"id": 1}, {"id": 3}, {"id": 5}], 107s "id": 1, 107s "title": "My thread topic", 107s }, 107s ] 107s 107s # Test when using a declared sub-model 107s class ThreadWithMessageListSchema(ModelSchema): 107s messages: List[MessageSchema] 107s 107s class Config: 107s model = Thread 107s exclude = ["created_at", "updated_at"] 107s 107s thread_with_message_list_schema_qs = ThreadWithMessageListSchema.from_django( 107s threads, many=True 107s ) 107s 107s > assert thread_with_message_list_schema_qs == [ 107s { 107s "messages": [ 107s {"id": 2, "content": "I agree."}, 107s {"id": 4, "content": "I disagree!"}, 107s {"id": 6, "content": "lol"}, 107s ], 107s "id": 2, 107s "title": "Another topic", 107s }, 107s { 107s "messages": [ 107s {"id": 1, "content": "I agree."}, 107s {"id": 3, "content": "I disagree!"}, 107s {"id": 5, "content": "lol"}, 107s ], 107s "id": 1, 107s "title": "My thread topic", 107s }, 107s ] 107s E AssertionError: assert [ThreadWithMe...hread topic')] == [{'id': 2, 'm...hread topic'}] 107s E 107s E At index 0 diff: ThreadWithMessageListSchema(messages=[{'id': 2}, {'id': 4}, {'id': 6}], id=2, title='Another topic') != {'messages': [{'id': 2, 'content': 'I agree.'}, {'id': 4, 'content': 'I disagree!'}, {'id': 6, 'content': 'lol'}], 'id': 2, 'title': 'Another topic'} 107s E 107s E Full diff: 107s E [ 107s E + ThreadWithMessageListSchema(messages=[{'id': 2}, {'id': 4}, {'id': 6}], id=2, title='Another topic'), 107s E + ThreadWithMessageListSchema(messages=[{'id': 1}, {'id': 3}, {'id': 5}], id=1, title='My thread topic'),... 107s E 107s E ...Full output truncated (37 lines hidden), use '-vv' to show 107s 107s tests/test_queries.py:218: AssertionError 107s ___________________________________ test_m2m ___________________________________ 107s 107s @pytest.mark.django_db 107s def test_m2m(): 107s """ 107s Test forward m2m relationships. 107s """ 107s 107s class ArticleSchema(ModelSchema): 107s class Config: 107s model = Article 107s 107s assert ArticleSchema.schema() == { 107s "title": "ArticleSchema", 107s "description": "A news article.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "headline": { 107s "title": "Headline", 107s "description": "headline", 107s "maxLength": 100, 107s "type": "string", 107s }, 107s "pub_date": { 107s "title": "Pub Date", 107s "description": "pub_date", 107s "type": "string", 107s "format": "date", 107s }, 107s "publications": { 107s "title": "Publications", 107s "description": "id", 107s "type": "array", 107s "items": { 107s "type": "object", 107s "additionalProperties": {"type": "integer"}, 107s }, 107s }, 107s }, 107s "required": ["headline", "pub_date", "publications"], 107s } 107s 107s class PublicationSchema(ModelSchema): 107s class Config: 107s model = Publication 107s 107s class ArticleWithPublicationListSchema(ModelSchema): 107s publications: List[PublicationSchema] 107s 107s class Config: 107s model = Article 107s 107s > assert ArticleWithPublicationListSchema.schema() == { 107s "title": "ArticleWithPublicationListSchema", 107s "description": "A news article.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "headline": { 107s "title": "Headline", 107s "description": "headline", 107s "maxLength": 100, 107s "type": "string", 107s }, 107s "pub_date": { 107s "title": "Pub Date", 107s "description": "pub_date", 107s "type": "string", 107s "format": "date", 107s }, 107s "publications": { 107s "title": "Publications", 107s "type": "array", 107s "items": {"$ref": "#/definitions/PublicationSchema"}, 107s }, 107s }, 107s "required": ["headline", "pub_date", "publications"], 107s "definitions": { 107s "PublicationSchema": { 107s "title": "PublicationSchema", 107s "description": "A news publication.", 107s "type": "object", 107s "properties": { 107s "article_set": { 107s "title": "Article Set", 107s "description": "id", 107s "type": "array", 107s "items": { 107s "type": "object", 107s "additionalProperties": {"type": "integer"}, 107s }, 107s }, 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "title": { 107s "title": "Title", 107s "description": "title", 107s "maxLength": 30, 107s "type": "string", 107s }, 107s }, 107s "required": ["title"], 107s } 107s }, 107s } 107s E AssertionError: assert {'description...tSchema', ...} == {'definitions...ations'], ...} 107s E 107s E Omitting 4 identical items, use -vv to show 107s E Differing items: 107s E {'properties': {'headline': {'description': 'headline', 'maxLength': 100, 'title': 'Headline', 'type': 'string'}, 'id'..., 'items': {'additionalProperties': {'type': 'integer'}, 'type': 'object'}, 'title': 'Publications', 'type': 'array'}}} != {'properties': {'headline': {'description': 'headline', 'maxLength': 100, 'title': 'Headline', 'type': 'string'}, 'id'...g'}, 'publications': {'items': {'$ref': '#/definitions/PublicationSchema'}, 'title': 'Publications', 'type': 'array'}}} 107s E Right contains 1 more item: 107s E {'defi... 107s E 107s E ...Full output truncated (94 lines hidden), use '-vv' to show 107s 107s tests/test_relations.py:74: AssertionError 107s _______________________________ test_foreign_key _______________________________ 107s 107s @pytest.mark.django_db 107s def test_foreign_key(): 107s """ 107s Test forward foreign-key relationships. 107s """ 107s 107s class ThreadSchema(ModelSchema): 107s class Config: 107s model = Thread 107s 107s class MessageSchema(ModelSchema): 107s class Config: 107s model = Message 107s 107s assert MessageSchema.schema() == { 107s "title": "MessageSchema", 107s "description": "A message posted in a thread.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "content": {"title": "Content", "description": "content", "type": "string"}, 107s "created_at": { 107s "title": "Created At", 107s "description": "created_at", 107s "type": "string", 107s "format": "date-time", 107s }, 107s "thread": {"title": "Thread", "description": "id", "type": "integer"}, 107s }, 107s "required": ["content", "created_at", "thread"], 107s } 107s 107s class MessageWithThreadSchema(ModelSchema): 107s 107s thread: ThreadSchema 107s 107s class Config: 107s model = Message 107s 107s > assert MessageWithThreadSchema.schema() == { 107s "title": "MessageWithThreadSchema", 107s "description": "A message posted in a thread.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "content": {"title": "Content", "description": "content", "type": "string"}, 107s "created_at": { 107s "title": "Created At", 107s "description": "created_at", 107s "type": "string", 107s "format": "date-time", 107s }, 107s "thread": {"$ref": "#/definitions/ThreadSchema"}, 107s }, 107s "required": ["content", "created_at", "thread"], 107s "definitions": { 107s "ThreadSchema": { 107s "title": "ThreadSchema", 107s "description": "A thread of messages.", 107s "type": "object", 107s "properties": { 107s "messages": { 107s "title": "Messages", 107s "description": "id", 107s "type": "array", 107s "items": { 107s "type": "object", 107s "additionalProperties": {"type": "integer"}, 107s }, 107s }, 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "title": { 107s "title": "Title", 107s "description": "title", 107s "maxLength": 30, 107s "type": "string", 107s }, 107s }, 107s "required": ["title"], 107s } 107s }, 107s } 107s E AssertionError: assert {'description...dSchema', ...} == {'definitions...thread'], ...} 107s E 107s E Omitting 4 identical items, use -vv to show 107s E Differing items: 107s E {'properties': {'content': {'description': 'content', 'title': 'Content', 'type': 'string'}, 'created_at': {'descripti...tion': 'id', 'title': 'Id', 'type': 'integer'}, 'thread': {'description': 'id', 'title': 'Thread', 'type': 'integer'}}} != {'properties': {'content': {'description': 'content', 'title': 'Content', 'type': 'string'}, 'created_at': {'descripti...ng'}, 'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'thread': {'$ref': '#/definitions/ThreadSchema'}}} 107s E Right contains 1 more item: 107s E {'defi... 107s E 107s E ...Full output truncated (86 lines hidden), use '-vv' to show 107s 107s tests/test_relations.py:181: AssertionError 107s _______________________________ test_one_to_one ________________________________ 107s 107s @pytest.mark.django_db 107s def test_one_to_one(): 107s """ 107s Test forward one-to-one relationships. 107s """ 107s 107s class UserSchema(ModelSchema): 107s class Config: 107s model = User 107s 107s class ProfileSchema(ModelSchema): 107s class Config: 107s model = Profile 107s 107s assert ProfileSchema.schema() == { 107s "title": "ProfileSchema", 107s "description": "A user's profile.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "user": {"title": "User", "description": "id", "type": "integer"}, 107s "website": { 107s "title": "Website", 107s "description": "website", 107s "default": "", 107s "maxLength": 200, 107s "type": "string", 107s }, 107s "location": { 107s "title": "Location", 107s "description": "location", 107s "default": "", 107s "maxLength": 100, 107s "type": "string", 107s }, 107s }, 107s "required": ["user"], 107s } 107s 107s class ProfileWithUserSchema(ModelSchema): 107s user: UserSchema 107s 107s class Config: 107s model = Profile 107s 107s > assert ProfileWithUserSchema.schema() == { 107s "title": "ProfileWithUserSchema", 107s "description": "A user's profile.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "user": {"$ref": "#/definitions/UserSchema"}, 107s "website": { 107s "title": "Website", 107s "description": "website", 107s "default": "", 107s "maxLength": 200, 107s "type": "string", 107s }, 107s "location": { 107s "title": "Location", 107s "description": "location", 107s "default": "", 107s "maxLength": 100, 107s "type": "string", 107s }, 107s }, 107s "required": ["user"], 107s "definitions": { 107s "UserSchema": { 107s "title": "UserSchema", 107s "description": "A user of the application.", 107s "type": "object", 107s "properties": { 107s "profile": { 107s "title": "Profile", 107s "description": "id", 107s "type": "integer", 107s }, 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "first_name": { 107s "title": "First Name", 107s "description": "first_name", 107s "maxLength": 50, 107s "type": "string", 107s }, 107s "last_name": { 107s "title": "Last Name", 107s "description": "last_name", 107s "maxLength": 50, 107s "type": "string", 107s }, 107s "email": { 107s "title": "Email", 107s "description": "email", 107s "maxLength": 254, 107s "type": "string", 107s }, 107s "created_at": { 107s "title": "Created At", 107s "description": "created_at", 107s "type": "string", 107s "format": "date-time", 107s }, 107s "updated_at": { 107s "title": "Updated At", 107s "description": "updated_at", 107s "type": "string", 107s "format": "date-time", 107s }, 107s }, 107s "required": ["first_name", "email", "created_at", "updated_at"], 107s } 107s }, 107s } 107s E AssertionError: assert {'description...rSchema', ...} == {'definitions...['user'], ...} 107s E 107s E Omitting 4 identical items, use -vv to show 107s E Differing items: 107s E {'properties': {'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'location': {'default': '', 'descriptio..., 'type': 'integer'}, 'website': {'default': '', 'description': 'website', 'maxLength': 200, 'title': 'Website', ...}}} != {'properties': {'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'location': {'default': '', 'descriptio...nitions/UserSchema'}, 'website': {'default': '', 'description': 'website', 'maxLength': 200, 'title': 'Website', ...}}} 107s E Right contains 1 more item: 107s E {'defi... 107s E 107s E ...Full output truncated (129 lines hidden), use '-vv' to show 107s 107s tests/test_relations.py:325: AssertionError 107s ___________________________ test_one_to_one_reverse ____________________________ 107s 107s @pytest.mark.django_db 107s def test_one_to_one_reverse(): 107s """ 107s Test reverse one-to-one relationships. 107s """ 107s 107s class ProfileSchema(ModelSchema): 107s class Config: 107s model = Profile 107s 107s class UserSchema(ModelSchema): 107s class Config: 107s model = User 107s 107s assert ProfileSchema.schema() == { 107s "title": "ProfileSchema", 107s "description": "A user's profile.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "user": {"title": "User", "description": "id", "type": "integer"}, 107s "website": { 107s "title": "Website", 107s "description": "website", 107s "default": "", 107s "maxLength": 200, 107s "type": "string", 107s }, 107s "location": { 107s "title": "Location", 107s "description": "location", 107s "default": "", 107s "maxLength": 100, 107s "type": "string", 107s }, 107s }, 107s "required": ["user"], 107s } 107s 107s class UserWithProfileSchema(ModelSchema): 107s profile: ProfileSchema 107s 107s class Config: 107s model = User 107s 107s > assert UserWithProfileSchema.schema() == { 107s "title": "UserWithProfileSchema", 107s "description": "A user of the application.", 107s "type": "object", 107s "properties": { 107s "profile": {"$ref": "#/definitions/ProfileSchema"}, 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "first_name": { 107s "title": "First Name", 107s "description": "first_name", 107s "maxLength": 50, 107s "type": "string", 107s }, 107s "last_name": { 107s "title": "Last Name", 107s "description": "last_name", 107s "maxLength": 50, 107s "type": "string", 107s }, 107s "email": { 107s "title": "Email", 107s "description": "email", 107s "maxLength": 254, 107s "type": "string", 107s }, 107s "created_at": { 107s "title": "Created At", 107s "description": "created_at", 107s "type": "string", 107s "format": "date-time", 107s }, 107s "updated_at": { 107s "title": "Updated At", 107s "description": "updated_at", 107s "type": "string", 107s "format": "date-time", 107s }, 107s }, 107s "required": ["profile", "first_name", "email", "created_at", "updated_at"], 107s "definitions": { 107s "ProfileSchema": { 107s "title": "ProfileSchema", 107s "description": "A user's profile.", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "user": {"title": "User", "description": "id", "type": "integer"}, 107s "website": { 107s "title": "Website", 107s "description": "website", 107s "default": "", 107s "maxLength": 200, 107s "type": "string", 107s }, 107s "location": { 107s "title": "Location", 107s "description": "location", 107s "default": "", 107s "maxLength": 100, 107s "type": "string", 107s }, 107s }, 107s "required": ["user"], 107s } 107s }, 107s } 107s E AssertionError: assert {'description...eSchema', ...} == {'definitions...ted_at'], ...} 107s E 107s E Omitting 3 identical items, use -vv to show 107s E Differing items: 107s E {'properties': {'created_at': {'description': 'created_at', 'format': 'date-time', 'title': 'Created At', 'type': 'str...th': 50, 'title': 'First Name', 'type': 'string'}, 'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, ...}} != {'properties': {'created_at': {'description': 'created_at', 'format': 'date-time', 'title': 'Created At', 'type': 'str...th': 50, 'title': 'First Name', 'type': 'string'}, 'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, ...}} 107s E {'required': ['first_name', 'emai... 107s E 107s E ...Full output truncated (115 lines hidden), use '-vv' to show 107s 107s tests/test_relations.py:442: AssertionError 107s ____________________________ test_generic_relation _____________________________ 107s 107s @pytest.mark.django_db 107s def test_generic_relation(): 107s """ 107s Test generic foreign-key relationships. 107s """ 107s 107s class TaggedSchema(ModelSchema): 107s class Config: 107s model = Tagged 107s 107s assert TaggedSchema.schema() == { 107s "title": "TaggedSchema", 107s "description": "Tagged(id, slug, content_type, object_id)", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "slug": { 107s "title": "Slug", 107s "description": "slug", 107s "maxLength": 50, 107s "type": "string", 107s }, 107s "content_type": { 107s "title": "Content Type", 107s "description": "id", 107s "type": "integer", 107s }, 107s "object_id": { 107s "title": "Object Id", 107s "description": "object_id", 107s "type": "integer", 107s }, 107s "content_object": { 107s "title": "Content Object", 107s "description": "content_object", 107s "type": "integer", 107s }, 107s }, 107s "required": ["slug", "content_type", "object_id", "content_object"], 107s } 107s 107s > class BookmarkSchema(ModelSchema): 107s 107s tests/test_relations.py:551: 107s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 107s /usr/lib/python3/dist-packages/djantic/main.py:45: in __new__ 107s cls = super().__new__(mcs, name, bases, namespace) 107s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 107s /usr/lib/python3/dist-packages/pydantic/v1/main.py:221: in __new__ 107s inferred = ModelField.infer( 107s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:504: in infer 107s return cls( 107s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:434: in __init__ 107s self.prepare() 107s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:544: in prepare 107s self._set_default_and_type() 107s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 107s 107s self = ModelField(name='tags', type=UndefinedType, required=False, default=None) 107s 107s def _set_default_and_type(self) -> None: 107s """ 107s Set the default value, infer the type if needed and check if `None` value is valid. 107s """ 107s if self.default_factory is not None: 107s if self.type_ is Undefined: 107s raise errors_.ConfigError( 107s f'you need to set the type of field {self.name!r} when using `default_factory`' 107s ) 107s return 107s 107s default_value = self.get_default() 107s 107s if default_value is not None and self.type_ is Undefined: 107s self.type_ = default_value.__class__ 107s self.outer_type_ = self.type_ 107s self.annotation = self.type_ 107s 107s if self.type_ is Undefined: 107s > raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"') 107s E pydantic.v1.errors.ConfigError: unable to infer type for attribute "tags" 107s 107s /usr/lib/python3/dist-packages/pydantic/v1/fields.py:576: ConfigError 107s _______________________________ test_m2m_reverse _______________________________ 107s 107s @pytest.mark.django_db 107s def test_m2m_reverse(): 107s class ExpertSchema(ModelSchema): 107s class Config: 107s model = Expert 107s 107s class CaseSchema(ModelSchema): 107s class Config: 107s model = Case 107s 107s assert ExpertSchema.schema() == { 107s "title": "ExpertSchema", 107s "description": "Expert(id, name)", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "name": { 107s "title": "Name", 107s "description": "name", 107s "maxLength": 128, 107s "type": "string", 107s }, 107s "cases": { 107s "title": "Cases", 107s "description": "id", 107s "type": "array", 107s "items": { 107s "type": "object", 107s "additionalProperties": {"type": "integer"}, 107s }, 107s }, 107s }, 107s "required": ["name", "cases"], 107s } 107s 107s assert CaseSchema.schema() == { 107s "title": "CaseSchema", 107s "description": "Case(id, name, details)", 107s "type": "object", 107s "properties": { 107s "related_experts": { 107s "title": "Related Experts", 107s "description": "id", 107s "type": "array", 107s "items": { 107s "type": "object", 107s "additionalProperties": {"type": "integer"}, 107s }, 107s }, 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "name": { 107s "title": "Name", 107s "description": "name", 107s "maxLength": 128, 107s "type": "string", 107s }, 107s "details": {"title": "Details", "description": "details", "type": "string"}, 107s }, 107s "required": ["name", "details"], 107s } 107s case = Case.objects.create(name="My Case", details="Some text data.") 107s expert = Expert.objects.create(name="My Expert") 107s case_schema = CaseSchema.from_django(case) 107s expert_schema = ExpertSchema.from_django(expert) 107s assert case_schema.dict() == { 107s "related_experts": [], 107s "id": 1, 107s "name": "My Case", 107s "details": "Some text data.", 107s } 107s assert expert_schema.dict() == {"id": 1, "name": "My Expert", "cases": []} 107s 107s expert.cases.add(case) 107s case_schema = CaseSchema.from_django(case) 107s expert_schema = ExpertSchema.from_django(expert) 107s assert case_schema.dict() == { 107s "related_experts": [{"id": 1}], 107s "id": 1, 107s "name": "My Case", 107s "details": "Some text data.", 107s } 107s assert expert_schema.dict() == {"id": 1, "name": "My Expert", "cases": [{"id": 1}]} 107s 107s class CustomExpertSchema(ModelSchema): 107s """Custom schema""" 107s 107s name: Optional[str] 107s 107s class Config: 107s model = Expert 107s 107s class CaseSchema(ModelSchema): 107s related_experts: List[CustomExpertSchema] 107s 107s class Config: 107s model = Case 107s 107s > assert CaseSchema.schema() == { 107s "title": "CaseSchema", 107s "description": "Case(id, name, details)", 107s "type": "object", 107s "properties": { 107s "related_experts": { 107s "title": "Related Experts", 107s "type": "array", 107s "items": {"$ref": "#/definitions/CustomExpertSchema"}, 107s }, 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "name": { 107s "title": "Name", 107s "description": "name", 107s "maxLength": 128, 107s "type": "string", 107s }, 107s "details": {"title": "Details", "description": "details", "type": "string"}, 107s }, 107s "required": ["related_experts", "name", "details"], 107s "definitions": { 107s "CustomExpertSchema": { 107s "title": "CustomExpertSchema", 107s "description": "Custom schema", 107s "type": "object", 107s "properties": { 107s "id": {"title": "Id", "description": "id", "type": "integer"}, 107s "name": {"title": "Name", "type": "string"}, 107s "cases": { 107s "title": "Cases", 107s "description": "id", 107s "type": "array", 107s "items": { 107s "type": "object", 107s "additionalProperties": {"type": "integer"}, 107s }, 107s }, 107s }, 107s "required": ["cases"], 107s } 107s }, 107s } 107s E AssertionError: assert {'description...eSchema', ...} == {'definitions...etails'], ...} 107s E 107s E Omitting 3 identical items, use -vv to show 107s E Differing items: 107s E {'properties': {'details': {'description': 'details', 'title': 'Details', 'type': 'string'}, 'id': {'description': 'id...items': {'additionalProperties': {'type': 'integer'}, 'type': 'object'}, 'title': 'Related Experts', 'type': 'array'}}} != {'properties': {'details': {'description': 'details', 'title': 'Details', 'type': 'string'}, 'id': {'description': 'id...elated_experts': {'items': {'$ref': '#/definitions/CustomExpertSchema'}, 'title': 'Related Experts', 'type': 'array'}}} 107s E {'required': ['name', 'details']}... 107s E 107s E ...Full output truncated (90 lines hidden), use '-vv' to show 107s 107s tests/test_relations.py:807: AssertionError 107s ________________________ test_include_from_annotations _________________________ 107s 107s @pytest.mark.django_db 107s def test_include_from_annotations(): 107s """ 107s Test include="__annotations__" config. 107s """ 107s 107s class ProfileSchema(ModelSchema): 107s website: str 107s 107s class Config: 107s model = Profile 107s include = "__annotations__" 107s 107s > assert ProfileSchema.schema() == { 107s "title": "ProfileSchema", 107s "description": "A user's profile.", 107s "type": "object", 107s "properties": { 107s "website": { 107s "title": "Website", 107s "type": "string" 107s } 107s }, 107s "required": [ 107s "website" 107s ] 107s } 107s E AssertionError: assert {'description...eSchema', ...} == {'description...eSchema', ...} 107s E 107s E Omitting 3 identical items, use -vv to show 107s E Differing items: 107s E {'properties': {'id': {'description': 'id', 'title': 'Id', 'type': 'integer'}, 'location': {'default': '', 'descriptio..., 'type': 'integer'}, 'website': {'default': '', 'description': 'website', 'maxLength': 200, 'title': 'Website', ...}}} != {'properties': {'website': {'title': 'Website', 'type': 'string'}}} 107s E {'required': ['user']} != {'required': ['website']} 107s E 107s E Full diff:... 107s E 107s E ...Full output truncated (35 lines hidden), use '-vv' to show 107s 107s tests/test_schemas.py:398: AssertionError 107s =============================== warnings summary =============================== 107s ../../../usr/lib/python3/dist-packages/djantic/main.py:12 107s /usr/lib/python3/dist-packages/djantic/main.py:12: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater. 107s from pydantic.v1 import BaseModel, ConfigError, create_model 107s 107s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 107s ============================= slowest 10 durations ============================= 107s 0.15s setup tests/test_fields.py::test_unhandled_field_type 107s 0.01s call tests/test_relations.py::test_m2m_reverse 107s 107s (8 durations < 0.005s hidden. Use -vv to show these durations.) 107s =========================== short test summary info ============================ 107s FAILED tests/test_queries.py::test_get_instance_with_generic_foreign_key - As... 107s FAILED tests/test_queries.py::test_get_queryset_with_reverse_one_to_one - Ass... 107s FAILED tests/test_queries.py::test_get_queryset_with_foreign_key - AssertionE... 107s FAILED tests/test_queries.py::test_get_queryset_with_reverse_foreign_key - As... 107s FAILED tests/test_relations.py::test_m2m - AssertionError: assert {'descripti... 107s FAILED tests/test_relations.py::test_foreign_key - AssertionError: assert {'d... 107s FAILED tests/test_relations.py::test_one_to_one - AssertionError: assert {'de... 107s FAILED tests/test_relations.py::test_one_to_one_reverse - AssertionError: ass... 107s FAILED tests/test_relations.py::test_generic_relation - pydantic.v1.errors.Co... 107s FAILED tests/test_relations.py::test_m2m_reverse - AssertionError: assert {'d... 107s FAILED tests/test_schemas.py::test_include_from_annotations - AssertionError:... 107s ============ 11 failed, 17 passed, 4 deselected, 1 warning in 0.52s ============ 107s autopkgtest [14:20:17]: test upstream: -----------------------] 108s upstream FAIL non-zero exit status 1 108s autopkgtest [14:20:18]: test upstream: - - - - - - - - - - results - - - - - - - - - - 108s autopkgtest [14:20:18]: @@@@@@@@@@@@@@@@@@@@ summary 108s upstream FAIL non-zero exit status 1