0s autopkgtest [20:34:46]: starting date and time: 2024-11-23 20:34:46+0000 0s autopkgtest [20:34:46]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [20:34:46]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.qqadhzsv/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade bpack --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor builder-cpu2-ram4-disk20 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-16.secgroup --name adt-plucky-amd64-bpack-20241123-203446-juju-7f2275-prod-proposed-migration-environment-15-80593af2-6041-4733-9671-e865a0e49cbb --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-amd64 -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 42s autopkgtest [20:35:28]: testbed dpkg architecture: amd64 42s autopkgtest [20:35:28]: testbed apt version: 2.9.8 42s autopkgtest [20:35:28]: @@@@@@@@@@@@@@@@@@@@ test bed setup 43s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 43s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [930 kB] 43s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [13.6 kB] 43s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9704 B] 43s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [54.8 kB] 43s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [91.3 kB] 43s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [43.4 kB] 43s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [40.1 kB] 43s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/restricted i386 Packages [2408 B] 43s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [806 kB] 44s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [295 kB] 44s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [5528 B] 44s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [20.0 kB] 44s Fetched 2386 kB in 1s (2806 kB/s) 44s Reading package lists... 46s Reading package lists... 46s Building dependency tree... 46s Reading state information... 47s Calculating upgrade... 47s The following package was automatically installed and is no longer required: 47s libsgutils2-1.46-2 47s Use 'sudo apt autoremove' to remove it. 47s The following NEW packages will be installed: 47s libsgutils2-1.48 47s The following packages will be upgraded: 47s amd64-microcode bash bpftrace curl debconf debconf-i18n distro-info 47s fwupd-signed gir1.2-girepository-2.0 gir1.2-glib-2.0 hostname 47s intel-microcode libaudit-common libaudit1 libcurl3t64-gnutls libcurl4t64 47s libgirepository-1.0-1 libglib2.0-0t64 libglib2.0-data libpam-modules 47s libpam-modules-bin libpam-runtime libpam0g libplymouth5 libpython3-stdlib 47s libselinux1 libsemanage-common libsemanage2 linux-base lxd-installer 47s openssh-client openssh-server openssh-sftp-server plymouth 47s plymouth-theme-ubuntu-text python3 python3-blinker python3-dbus 47s python3-debconf python3-gi python3-jsonschema-specifications python3-minimal 47s python3-rpds-py python3-yaml sg3-utils sg3-utils-udev vim-common vim-tiny 47s xxd 47s 49 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 47s Need to get 19.9 MB of archives. 47s After this operation, 4441 kB of additional disk space will be used. 47s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 bash amd64 5.2.32-1ubuntu2 [918 kB] 48s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 hostname amd64 3.25 [11.1 kB] 48s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libaudit-common all 1:4.0.2-2ubuntu1 [6578 B] 48s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 libaudit1 amd64 1:4.0.2-2ubuntu1 [53.9 kB] 48s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 debconf-i18n all 1.5.87ubuntu1 [204 kB] 48s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-minimal amd64 3.12.7-1 [27.4 kB] 48s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3 amd64 3.12.7-1 [24.0 kB] 48s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 libpython3-stdlib amd64 3.12.7-1 [10.0 kB] 48s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-debconf all 1.5.87ubuntu1 [4156 B] 48s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 debconf all 1.5.87ubuntu1 [124 kB] 48s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 libpam0g amd64 1.5.3-7ubuntu4 [69.6 kB] 48s Get:12 http://ftpmaster.internal/ubuntu plucky/main amd64 libselinux1 amd64 3.7-3ubuntu1 [86.9 kB] 48s Get:13 http://ftpmaster.internal/ubuntu plucky/main amd64 libpam-modules-bin amd64 1.5.3-7ubuntu4 [53.7 kB] 48s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 libpam-modules amd64 1.5.3-7ubuntu4 [294 kB] 48s Get:15 http://ftpmaster.internal/ubuntu plucky/main amd64 openssh-sftp-server amd64 1:9.9p1-3ubuntu2 [41.2 kB] 48s Get:16 http://ftpmaster.internal/ubuntu plucky/main amd64 openssh-server amd64 1:9.9p1-3ubuntu2 [625 kB] 48s Get:17 http://ftpmaster.internal/ubuntu plucky/main amd64 openssh-client amd64 1:9.9p1-3ubuntu2 [1080 kB] 48s Get:18 http://ftpmaster.internal/ubuntu plucky/main amd64 libpam-runtime all 1.5.3-7ubuntu4 [40.8 kB] 48s Get:19 http://ftpmaster.internal/ubuntu plucky/main amd64 libsemanage-common all 3.7-2build1 [7186 B] 48s Get:20 http://ftpmaster.internal/ubuntu plucky/main amd64 libsemanage2 amd64 3.7-2build1 [105 kB] 48s Get:21 http://ftpmaster.internal/ubuntu plucky/main amd64 distro-info amd64 1.12 [20.0 kB] 48s Get:22 http://ftpmaster.internal/ubuntu plucky/main amd64 gir1.2-girepository-2.0 amd64 1.82.0-2 [25.3 kB] 48s Get:23 http://ftpmaster.internal/ubuntu plucky/main amd64 gir1.2-glib-2.0 amd64 2.82.2-3 [182 kB] 48s Get:24 http://ftpmaster.internal/ubuntu plucky/main amd64 libglib2.0-0t64 amd64 2.82.2-3 [1655 kB] 49s Get:25 http://ftpmaster.internal/ubuntu plucky/main amd64 libgirepository-1.0-1 amd64 1.82.0-2 [88.7 kB] 49s Get:26 http://ftpmaster.internal/ubuntu plucky/main amd64 libglib2.0-data all 2.82.2-3 [51.7 kB] 49s Get:27 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-dbus amd64 1.3.2-5build4 [110 kB] 49s Get:28 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-gi amd64 3.50.0-3build1 [293 kB] 49s Get:29 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-yaml amd64 6.0.2-1build1 [187 kB] 49s Get:30 http://ftpmaster.internal/ubuntu plucky/main amd64 vim-tiny amd64 2:9.1.0861-1ubuntu1 [1037 kB] 49s Get:31 http://ftpmaster.internal/ubuntu plucky/main amd64 vim-common all 2:9.1.0861-1ubuntu1 [395 kB] 49s Get:32 http://ftpmaster.internal/ubuntu plucky/main amd64 xxd amd64 2:9.1.0861-1ubuntu1 [67.8 kB] 49s Get:33 http://ftpmaster.internal/ubuntu plucky/main amd64 libplymouth5 amd64 24.004.60-2ubuntu3 [145 kB] 49s Get:34 http://ftpmaster.internal/ubuntu plucky/main amd64 plymouth-theme-ubuntu-text amd64 24.004.60-2ubuntu3 [10.3 kB] 49s Get:35 http://ftpmaster.internal/ubuntu plucky/main amd64 plymouth amd64 24.004.60-2ubuntu3 [140 kB] 49s Get:36 http://ftpmaster.internal/ubuntu plucky/main amd64 bpftrace amd64 0.21.2-2ubuntu3 [1787 kB] 49s Get:37 http://ftpmaster.internal/ubuntu plucky/main amd64 curl amd64 8.9.1-2ubuntu3 [243 kB] 50s Get:38 http://ftpmaster.internal/ubuntu plucky/main amd64 libcurl4t64 amd64 8.9.1-2ubuntu3 [420 kB] 50s Get:39 http://ftpmaster.internal/ubuntu plucky/main amd64 fwupd-signed amd64 1.55+1.7-1 [30.6 kB] 50s Get:40 http://ftpmaster.internal/ubuntu plucky/main amd64 libcurl3t64-gnutls amd64 8.9.1-2ubuntu3 [412 kB] 50s Get:41 http://ftpmaster.internal/ubuntu plucky/main amd64 libsgutils2-1.48 amd64 1.48-0ubuntu1 [124 kB] 50s Get:42 http://ftpmaster.internal/ubuntu plucky/main amd64 linux-base all 4.10.1ubuntu1 [34.8 kB] 50s Get:43 http://ftpmaster.internal/ubuntu plucky/main amd64 lxd-installer all 10 [5264 B] 50s Get:44 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-blinker all 1.9.0-1 [10.7 kB] 50s Get:45 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-rpds-py amd64 0.21.0-2ubuntu1 [323 kB] 50s Get:46 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-jsonschema-specifications all 2023.12.1-2 [9116 B] 50s Get:47 http://ftpmaster.internal/ubuntu plucky/main amd64 sg3-utils amd64 1.48-0ubuntu1 [1042 kB] 50s Get:48 http://ftpmaster.internal/ubuntu plucky/main amd64 sg3-utils-udev all 1.48-0ubuntu1 [6608 B] 50s Get:49 http://ftpmaster.internal/ubuntu plucky/main amd64 amd64-microcode amd64 3.20240820.1ubuntu1 [187 kB] 50s Get:50 http://ftpmaster.internal/ubuntu plucky/main amd64 intel-microcode amd64 3.20241112.1ubuntu2 [7055 kB] 53s Preconfiguring packages ... 53s Fetched 19.9 MB in 6s (3597 kB/s) 53s (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 ... 75620 files and directories currently installed.) 53s Preparing to unpack .../bash_5.2.32-1ubuntu2_amd64.deb ... 53s Unpacking bash (5.2.32-1ubuntu2) over (5.2.32-1ubuntu1) ... 53s Setting up bash (5.2.32-1ubuntu2) ... 53s update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode 53s (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 ... 75620 files and directories currently installed.) 53s Preparing to unpack .../hostname_3.25_amd64.deb ... 53s Unpacking hostname (3.25) over (3.23+nmu2ubuntu2) ... 53s Setting up hostname (3.25) ... 53s (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 ... 75620 files and directories currently installed.) 53s Preparing to unpack .../libaudit-common_1%3a4.0.2-2ubuntu1_all.deb ... 53s Unpacking libaudit-common (1:4.0.2-2ubuntu1) over (1:4.0.1-1ubuntu2) ... 53s Setting up libaudit-common (1:4.0.2-2ubuntu1) ... 53s (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 ... 75620 files and directories currently installed.) 53s Preparing to unpack .../libaudit1_1%3a4.0.2-2ubuntu1_amd64.deb ... 53s Unpacking libaudit1:amd64 (1:4.0.2-2ubuntu1) over (1:4.0.1-1ubuntu2) ... 53s Setting up libaudit1:amd64 (1:4.0.2-2ubuntu1) ... 53s (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 ... 75620 files and directories currently installed.) 53s Preparing to unpack .../debconf-i18n_1.5.87ubuntu1_all.deb ... 53s Unpacking debconf-i18n (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 53s Preparing to unpack .../python3-minimal_3.12.7-1_amd64.deb ... 53s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 53s Setting up python3-minimal (3.12.7-1) ... 54s (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 ... 75620 files and directories currently installed.) 54s Preparing to unpack .../python3_3.12.7-1_amd64.deb ... 54s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 54s Preparing to unpack .../libpython3-stdlib_3.12.7-1_amd64.deb ... 54s Unpacking libpython3-stdlib:amd64 (3.12.7-1) over (3.12.6-0ubuntu1) ... 54s Preparing to unpack .../python3-debconf_1.5.87ubuntu1_all.deb ... 54s Unpacking python3-debconf (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 54s Preparing to unpack .../debconf_1.5.87ubuntu1_all.deb ... 54s Unpacking debconf (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 54s Setting up debconf (1.5.87ubuntu1) ... 54s (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 ... 75620 files and directories currently installed.) 54s Preparing to unpack .../libpam0g_1.5.3-7ubuntu4_amd64.deb ... 54s Unpacking libpam0g:amd64 (1.5.3-7ubuntu4) over (1.5.3-7ubuntu2) ... 54s Setting up libpam0g:amd64 (1.5.3-7ubuntu4) ... 54s (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 ... 75620 files and directories currently installed.) 54s Preparing to unpack .../libselinux1_3.7-3ubuntu1_amd64.deb ... 54s Unpacking libselinux1:amd64 (3.7-3ubuntu1) over (3.5-2ubuntu5) ... 54s Setting up libselinux1:amd64 (3.7-3ubuntu1) ... 54s (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 ... 75620 files and directories currently installed.) 54s Preparing to unpack .../libpam-modules-bin_1.5.3-7ubuntu4_amd64.deb ... 54s Unpacking libpam-modules-bin (1.5.3-7ubuntu4) over (1.5.3-7ubuntu2) ... 54s Setting up libpam-modules-bin (1.5.3-7ubuntu4) ... 55s pam_namespace.service is a disabled or a static unit not running, not starting it. 55s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 75620 files and directories currently installed.) 55s Preparing to unpack .../libpam-modules_1.5.3-7ubuntu4_amd64.deb ... 55s Unpacking libpam-modules:amd64 (1.5.3-7ubuntu4) over (1.5.3-7ubuntu2) ... 55s Setting up libpam-modules:amd64 (1.5.3-7ubuntu4) ... 55s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 75620 files and directories currently installed.) 55s Preparing to unpack .../openssh-sftp-server_1%3a9.9p1-3ubuntu2_amd64.deb ... 55s Unpacking openssh-sftp-server (1:9.9p1-3ubuntu2) over (1:9.7p1-7ubuntu5) ... 56s Preparing to unpack .../openssh-server_1%3a9.9p1-3ubuntu2_amd64.deb ... 56s Unpacking openssh-server (1:9.9p1-3ubuntu2) over (1:9.7p1-7ubuntu5) ... 56s Preparing to unpack .../openssh-client_1%3a9.9p1-3ubuntu2_amd64.deb ... 56s Unpacking openssh-client (1:9.9p1-3ubuntu2) over (1:9.7p1-7ubuntu5) ... 56s Preparing to unpack .../libpam-runtime_1.5.3-7ubuntu4_all.deb ... 56s Unpacking libpam-runtime (1.5.3-7ubuntu4) over (1.5.3-7ubuntu2) ... 56s Setting up libpam-runtime (1.5.3-7ubuntu4) ... 56s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 75622 files and directories currently installed.) 56s Preparing to unpack .../libsemanage-common_3.7-2build1_all.deb ... 56s Unpacking libsemanage-common (3.7-2build1) over (3.5-1build6) ... 56s Setting up libsemanage-common (3.7-2build1) ... 56s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 75621 files and directories currently installed.) 56s Preparing to unpack .../libsemanage2_3.7-2build1_amd64.deb ... 56s Unpacking libsemanage2:amd64 (3.7-2build1) over (3.5-1build6) ... 56s Setting up libsemanage2:amd64 (3.7-2build1) ... 56s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 75621 files and directories currently installed.) 56s Preparing to unpack .../00-distro-info_1.12_amd64.deb ... 56s Unpacking distro-info (1.12) over (1.9) ... 56s Preparing to unpack .../01-gir1.2-girepository-2.0_1.82.0-2_amd64.deb ... 56s Unpacking gir1.2-girepository-2.0:amd64 (1.82.0-2) over (1.80.1-4) ... 56s Preparing to unpack .../02-gir1.2-glib-2.0_2.82.2-3_amd64.deb ... 56s Unpacking gir1.2-glib-2.0:amd64 (2.82.2-3) over (2.82.1-0ubuntu1) ... 56s Preparing to unpack .../03-libglib2.0-0t64_2.82.2-3_amd64.deb ... 56s Unpacking libglib2.0-0t64:amd64 (2.82.2-3) over (2.82.1-0ubuntu1) ... 56s Preparing to unpack .../04-libgirepository-1.0-1_1.82.0-2_amd64.deb ... 56s Unpacking libgirepository-1.0-1:amd64 (1.82.0-2) over (1.80.1-4) ... 56s Preparing to unpack .../05-libglib2.0-data_2.82.2-3_all.deb ... 56s Unpacking libglib2.0-data (2.82.2-3) over (2.82.1-0ubuntu1) ... 56s Preparing to unpack .../06-python3-dbus_1.3.2-5build4_amd64.deb ... 56s Unpacking python3-dbus (1.3.2-5build4) over (1.3.2-5build3) ... 56s Preparing to unpack .../07-python3-gi_3.50.0-3build1_amd64.deb ... 56s Unpacking python3-gi (3.50.0-3build1) over (3.50.0-3) ... 56s Preparing to unpack .../08-python3-yaml_6.0.2-1build1_amd64.deb ... 56s Unpacking python3-yaml (6.0.2-1build1) over (6.0.2-1) ... 56s Preparing to unpack .../09-vim-tiny_2%3a9.1.0861-1ubuntu1_amd64.deb ... 56s Unpacking vim-tiny (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 56s Preparing to unpack .../10-vim-common_2%3a9.1.0861-1ubuntu1_all.deb ... 56s Unpacking vim-common (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 56s Preparing to unpack .../11-xxd_2%3a9.1.0861-1ubuntu1_amd64.deb ... 56s Unpacking xxd (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 56s Preparing to unpack .../12-libplymouth5_24.004.60-2ubuntu3_amd64.deb ... 56s Unpacking libplymouth5:amd64 (24.004.60-2ubuntu3) over (24.004.60-1ubuntu11) ... 56s Preparing to unpack .../13-plymouth-theme-ubuntu-text_24.004.60-2ubuntu3_amd64.deb ... 56s Unpacking plymouth-theme-ubuntu-text (24.004.60-2ubuntu3) over (24.004.60-1ubuntu11) ... 56s Preparing to unpack .../14-plymouth_24.004.60-2ubuntu3_amd64.deb ... 56s Unpacking plymouth (24.004.60-2ubuntu3) over (24.004.60-1ubuntu11) ... 56s Preparing to unpack .../15-bpftrace_0.21.2-2ubuntu3_amd64.deb ... 56s Unpacking bpftrace (0.21.2-2ubuntu3) over (0.21.2-2ubuntu2) ... 56s Preparing to unpack .../16-curl_8.9.1-2ubuntu3_amd64.deb ... 56s Unpacking curl (8.9.1-2ubuntu3) over (8.9.1-2ubuntu2) ... 56s Preparing to unpack .../17-libcurl4t64_8.9.1-2ubuntu3_amd64.deb ... 56s Unpacking libcurl4t64:amd64 (8.9.1-2ubuntu3) over (8.9.1-2ubuntu2) ... 56s Preparing to unpack .../18-fwupd-signed_1.55+1.7-1_amd64.deb ... 56s Unpacking fwupd-signed (1.55+1.7-1) over (1.54+1.6-1build1) ... 56s Preparing to unpack .../19-libcurl3t64-gnutls_8.9.1-2ubuntu3_amd64.deb ... 56s Unpacking libcurl3t64-gnutls:amd64 (8.9.1-2ubuntu3) over (8.9.1-2ubuntu2) ... 56s Selecting previously unselected package libsgutils2-1.48:amd64. 56s Preparing to unpack .../20-libsgutils2-1.48_1.48-0ubuntu1_amd64.deb ... 56s Unpacking libsgutils2-1.48:amd64 (1.48-0ubuntu1) ... 56s Preparing to unpack .../21-linux-base_4.10.1ubuntu1_all.deb ... 56s Unpacking linux-base (4.10.1ubuntu1) over (4.5ubuntu9) ... 57s Preparing to unpack .../22-lxd-installer_10_all.deb ... 57s Unpacking lxd-installer (10) over (9) ... 57s Preparing to unpack .../23-python3-blinker_1.9.0-1_all.deb ... 57s Unpacking python3-blinker (1.9.0-1) over (1.8.2-1) ... 57s Preparing to unpack .../24-python3-rpds-py_0.21.0-2ubuntu1_amd64.deb ... 57s Unpacking python3-rpds-py (0.21.0-2ubuntu1) over (0.20.0-0ubuntu3) ... 57s Preparing to unpack .../25-python3-jsonschema-specifications_2023.12.1-2_all.deb ... 57s Unpacking python3-jsonschema-specifications (2023.12.1-2) over (2023.12.1-1ubuntu1) ... 57s Preparing to unpack .../26-sg3-utils_1.48-0ubuntu1_amd64.deb ... 57s Unpacking sg3-utils (1.48-0ubuntu1) over (1.46-3ubuntu5) ... 57s Preparing to unpack .../27-sg3-utils-udev_1.48-0ubuntu1_all.deb ... 57s Unpacking sg3-utils-udev (1.48-0ubuntu1) over (1.46-3ubuntu5) ... 57s Preparing to unpack .../28-amd64-microcode_3.20240820.1ubuntu1_amd64.deb ... 57s Unpacking amd64-microcode (3.20240820.1ubuntu1) over (3.20240116.2+nmu1ubuntu1.1) ... 57s Preparing to unpack .../29-intel-microcode_3.20241112.1ubuntu2_amd64.deb ... 57s Unpacking intel-microcode (3.20241112.1ubuntu2) over (3.20240910.0ubuntu1) ... 57s Setting up distro-info (1.12) ... 57s Setting up linux-base (4.10.1ubuntu1) ... 57s Setting up libcurl4t64:amd64 (8.9.1-2ubuntu3) ... 57s Setting up bpftrace (0.21.2-2ubuntu3) ... 57s Setting up openssh-client (1:9.9p1-3ubuntu2) ... 57s Setting up intel-microcode (3.20241112.1ubuntu2) ... 57s intel-microcode: microcode will be updated at next boot 57s Setting up libcurl3t64-gnutls:amd64 (8.9.1-2ubuntu3) ... 57s Setting up fwupd-signed (1.55+1.7-1) ... 57s Setting up libsgutils2-1.48:amd64 (1.48-0ubuntu1) ... 57s Setting up debconf-i18n (1.5.87ubuntu1) ... 57s Setting up amd64-microcode (3.20240820.1ubuntu1) ... 57s amd64-microcode: microcode will be updated at next boot 57s Setting up xxd (2:9.1.0861-1ubuntu1) ... 57s Setting up libglib2.0-0t64:amd64 (2.82.2-3) ... 57s No schema files found: doing nothing. 57s Setting up libglib2.0-data (2.82.2-3) ... 57s Setting up vim-common (2:9.1.0861-1ubuntu1) ... 57s Setting up gir1.2-glib-2.0:amd64 (2.82.2-3) ... 57s Setting up lxd-installer (10) ... 58s Setting up libplymouth5:amd64 (24.004.60-2ubuntu3) ... 58s Setting up libgirepository-1.0-1:amd64 (1.82.0-2) ... 58s Setting up curl (8.9.1-2ubuntu3) ... 58s Setting up libpython3-stdlib:amd64 (3.12.7-1) ... 58s Setting up sg3-utils (1.48-0ubuntu1) ... 58s Setting up openssh-sftp-server (1:9.9p1-3ubuntu2) ... 58s Setting up openssh-server (1:9.9p1-3ubuntu2) ... 58s Installing new version of config file /etc/ssh/moduli ... 58s Replacing config file /etc/ssh/sshd_config with new version 59s Setting up plymouth (24.004.60-2ubuntu3) ... 59s update-initramfs: Generating /boot/initrd.img-6.11.0-8-generic 59s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 66s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 67s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 67s Setting up python3 (3.12.7-1) ... 67s Setting up vim-tiny (2:9.1.0861-1ubuntu1) ... 67s Setting up sg3-utils-udev (1.48-0ubuntu1) ... 67s update-initramfs: deferring update (trigger activated) 67s Setting up plymouth-theme-ubuntu-text (24.004.60-2ubuntu3) ... 67s update-initramfs: deferring update (trigger activated) 67s Setting up gir1.2-girepository-2.0:amd64 (1.82.0-2) ... 67s Setting up python3-gi (3.50.0-3build1) ... 67s Setting up python3-rpds-py (0.21.0-2ubuntu1) ... 67s Setting up python3-jsonschema-specifications (2023.12.1-2) ... 67s Setting up python3-blinker (1.9.0-1) ... 68s Setting up python3-dbus (1.3.2-5build4) ... 68s Setting up python3-debconf (1.5.87ubuntu1) ... 68s Setting up python3-yaml (6.0.2-1build1) ... 68s Processing triggers for man-db (2.13.0-1) ... 69s Processing triggers for debianutils (5.21) ... 69s Processing triggers for install-info (7.1.1-1) ... 69s Processing triggers for initramfs-tools (0.142ubuntu35) ... 69s update-initramfs: Generating /boot/initrd.img-6.11.0-8-generic 69s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 76s Processing triggers for libc-bin (2.40-1ubuntu3) ... 76s Processing triggers for ufw (0.36.2-8) ... 76s Reading package lists... 77s Building dependency tree... 77s Reading state information... 77s The following packages will be REMOVED: 77s libsgutils2-1.46-2* 77s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 77s After this operation, 294 kB disk space will be freed. 77s (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 ... 75656 files and directories currently installed.) 77s Removing libsgutils2-1.46-2:amd64 (1.46-3ubuntu5) ... 77s Processing triggers for libc-bin (2.40-1ubuntu3) ... 77s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 78s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 78s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 78s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 79s Reading package lists... 79s Reading package lists... 79s Building dependency tree... 79s Reading state information... 79s Calculating upgrade... 79s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 79s Reading package lists... 79s Building dependency tree... 79s Reading state information... 79s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 80s autopkgtest [20:36:06]: rebooting testbed after setup commands that affected boot 84s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 98s autopkgtest [20:36:24]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 100s autopkgtest [20:36:26]: @@@@@@@@@@@@@@@@@@@@ apt-source bpack 102s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (dsc) [3063 B] 102s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (tar) [62.0 kB] 102s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (diff) [3532 B] 102s gpgv: Signature made Tue Jun 18 21:16:10 2024 UTC 102s gpgv: using RSA key 8182DE417056408D614650D16750F10AE88D4AF1 102s gpgv: Can't check signature: No public key 102s dpkg-source: warning: cannot verify inline signature for ./bpack_1.1.0-2.dsc: no acceptable signature found 103s autopkgtest [20:36:29]: testing package bpack version 1.1.0-2 103s autopkgtest [20:36:29]: build not needed 104s autopkgtest [20:36:30]: test pybuild-autopkgtest: preparing testbed 107s Reading package lists... 108s Building dependency tree... 108s Reading state information... 108s Starting pkgProblemResolver with broken count: 0 108s Starting 2 pkgProblemResolver with broken count: 0 108s Done 109s The following additional packages will be installed: 109s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 109s cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 109s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz 109s fonts-font-awesome fonts-lato g++ g++-14 g++-14-x86-64-linux-gnu 109s g++-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu 109s gettext intltool-debian libarchive-zip-perl libasan8 libblas3 libcc1-0 109s libdebhelper-perl libfile-stripnondeterminism-perl libgcc-14-dev 109s libgfortran5 libgomp1 libhwasan0 libisl23 libitm1 libjs-jquery 109s libjs-sphinxdoc libjs-underscore libjson-perl liblapack3 liblsan0 libmpc3 109s libpython3.13-minimal libpython3.13-stdlib libquadmath0 libstdc++-14-dev 109s libtool libtsan2 libubsan1 m4 po-debconf pybuild-plugin-autopkgtest 109s pybuild-plugin-pyproject python-bpack-doc python3-alabaster python3-all 109s python3-bitarray python3-bitstruct python3-bpack python3-build 109s python3-defusedxml python3-docutils python3-imagesize python3-iniconfig 109s python3-installer python3-numpy python3-packaging python3-pluggy 109s python3-pyproject-hooks python3-pytest python3-roman python3-snowballstemmer 109s python3-sphinx python3-sphinx-rtd-theme python3-sphinxcontrib.jquery 109s python3-toml python3-wheel python3.13 python3.13-minimal sgml-base 109s sphinx-common sphinx-rtd-theme-common xml-core 109s Suggested packages: 109s autoconf-archive gnu-standards autoconf-doc cpp-doc gcc-14-locales 109s cpp-14-doc dh-make flit g++-multilib g++-14-multilib gcc-14-doc gcc-multilib 109s manpages-dev flex bison gdb gcc-doc gcc-14-multilib gdb-x86-64-linux-gnu 109s gettext-doc libasprintf-dev libgettextpo-dev libstdc++-14-doc libtool-doc 109s gfortran | fortran95-compiler gcj-jdk m4-doc libmail-box-perl www-browser 109s python3-pip python3-venv python-build-doc docutils-doc fonts-linuxlibertine 109s | ttf-linux-libertine texlive-lang-french texlive-latex-base 109s texlive-latex-recommended python-installer-doc gfortran python-numpy-doc 109s python3-dev python3-stemmer dvipng dvisvgm fonts-freefont-otf 109s imagemagick-6.q16 latexmk libjs-mathjax sphinx-doc tex-gyre 109s texlive-fonts-extra texlive-fonts-recommended texlive-latex-extra 109s texlive-plain-generic python3.13-venv python3.13-doc binfmt-support 109s sgml-base-doc 109s Recommended packages: 109s libarchive-cpio-perl javascript-common libjson-xs-perl libltdl-dev 109s libmail-sendmail-perl libpaper-utils python3-pil 109s The following NEW packages will be installed: 109s autoconf automake autopkgtest-satdep autopoint autotools-dev build-essential 109s cpp cpp-14 cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 109s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz 109s fonts-font-awesome fonts-lato g++ g++-14 g++-14-x86-64-linux-gnu 109s g++-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu 109s gettext intltool-debian libarchive-zip-perl libasan8 libblas3 libcc1-0 109s libdebhelper-perl libfile-stripnondeterminism-perl libgcc-14-dev 109s libgfortran5 libgomp1 libhwasan0 libisl23 libitm1 libjs-jquery 109s libjs-sphinxdoc libjs-underscore libjson-perl liblapack3 liblsan0 libmpc3 109s libpython3.13-minimal libpython3.13-stdlib libquadmath0 libstdc++-14-dev 109s libtool libtsan2 libubsan1 m4 po-debconf pybuild-plugin-autopkgtest 109s pybuild-plugin-pyproject python-bpack-doc python3-alabaster python3-all 109s python3-bitarray python3-bitstruct python3-bpack python3-build 109s python3-defusedxml python3-docutils python3-imagesize python3-iniconfig 109s python3-installer python3-numpy python3-packaging python3-pluggy 109s python3-pyproject-hooks python3-pytest python3-roman python3-snowballstemmer 109s python3-sphinx python3-sphinx-rtd-theme python3-sphinxcontrib.jquery 109s python3-toml python3-wheel python3.13 python3.13-minimal sgml-base 109s sphinx-common sphinx-rtd-theme-common xml-core 109s 0 upgraded, 89 newly installed, 0 to remove and 0 not upgraded. 109s Need to get 93.0 MB/93.0 MB of archives. 109s After this operation, 340 MB of additional disk space will be used. 109s Get:1 /tmp/autopkgtest.OSMHRm/1-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [844 B] 109s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 fonts-lato all 2.015-1 [2781 kB] 110s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libpython3.13-minimal amd64 3.13.0-2 [879 kB] 110s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.13-minimal amd64 3.13.0-2 [2188 kB] 111s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 sgml-base all 1.31 [11.4 kB] 111s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 m4 amd64 1.4.19-4build1 [244 kB] 111s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 autoconf all 2.72-3 [382 kB] 111s Get:8 http://ftpmaster.internal/ubuntu plucky/main amd64 autotools-dev all 20220109.1 [44.9 kB] 111s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 111s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 autopoint all 0.22.5-2 [616 kB] 111s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 libisl23 amd64 0.27-1 [685 kB] 111s Get:12 http://ftpmaster.internal/ubuntu plucky/main amd64 libmpc3 amd64 1.3.1-1build2 [55.3 kB] 111s Get:13 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-14-x86-64-linux-gnu amd64 14.2.0-8ubuntu1 [11.9 MB] 112s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-14 amd64 14.2.0-8ubuntu1 [1030 B] 112s Get:15 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [5452 B] 112s Get:16 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp amd64 4:14.1.0-2ubuntu1 [22.4 kB] 112s Get:17 http://ftpmaster.internal/ubuntu plucky/main amd64 libcc1-0 amd64 14.2.0-8ubuntu1 [47.6 kB] 112s Get:18 http://ftpmaster.internal/ubuntu plucky/main amd64 libgomp1 amd64 14.2.0-8ubuntu1 [148 kB] 112s Get:19 http://ftpmaster.internal/ubuntu plucky/main amd64 libitm1 amd64 14.2.0-8ubuntu1 [29.1 kB] 112s Get:20 http://ftpmaster.internal/ubuntu plucky/main amd64 libasan8 amd64 14.2.0-8ubuntu1 [2998 kB] 112s Get:21 http://ftpmaster.internal/ubuntu plucky/main amd64 liblsan0 amd64 14.2.0-8ubuntu1 [1317 kB] 112s Get:22 http://ftpmaster.internal/ubuntu plucky/main amd64 libtsan2 amd64 14.2.0-8ubuntu1 [2732 kB] 112s Get:23 http://ftpmaster.internal/ubuntu plucky/main amd64 libubsan1 amd64 14.2.0-8ubuntu1 [1177 kB] 113s Get:24 http://ftpmaster.internal/ubuntu plucky/main amd64 libhwasan0 amd64 14.2.0-8ubuntu1 [1634 kB] 113s Get:25 http://ftpmaster.internal/ubuntu plucky/main amd64 libquadmath0 amd64 14.2.0-8ubuntu1 [153 kB] 113s Get:26 http://ftpmaster.internal/ubuntu plucky/main amd64 libgcc-14-dev amd64 14.2.0-8ubuntu1 [2814 kB] 113s Get:27 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-14-x86-64-linux-gnu amd64 14.2.0-8ubuntu1 [23.3 MB] 113s Get:28 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-14 amd64 14.2.0-8ubuntu1 [528 kB] 113s Get:29 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [1214 B] 113s Get:30 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc amd64 4:14.1.0-2ubuntu1 [5000 B] 113s Get:31 http://ftpmaster.internal/ubuntu plucky/main amd64 libstdc++-14-dev amd64 14.2.0-8ubuntu1 [2504 kB] 113s Get:32 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-14-x86-64-linux-gnu amd64 14.2.0-8ubuntu1 [13.3 MB] 114s Get:33 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-14 amd64 14.2.0-8ubuntu1 [19.9 kB] 114s Get:34 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [966 B] 114s Get:35 http://ftpmaster.internal/ubuntu plucky/main amd64 g++ amd64 4:14.1.0-2ubuntu1 [1100 B] 114s Get:36 http://ftpmaster.internal/ubuntu plucky/main amd64 build-essential amd64 12.10ubuntu1 [4928 B] 114s Get:37 http://ftpmaster.internal/ubuntu plucky/main amd64 libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 114s Get:38 http://ftpmaster.internal/ubuntu plucky/main amd64 libtool all 2.4.7-8 [166 kB] 114s Get:39 http://ftpmaster.internal/ubuntu plucky/main amd64 dh-autoreconf all 20 [16.1 kB] 114s Get:40 http://ftpmaster.internal/ubuntu plucky/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 114s Get:41 http://ftpmaster.internal/ubuntu plucky/main amd64 libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 114s Get:42 http://ftpmaster.internal/ubuntu plucky/main amd64 dh-strip-nondeterminism all 1.14.0-1 [5058 B] 114s Get:43 http://ftpmaster.internal/ubuntu plucky/main amd64 debugedit amd64 1:5.1-1 [46.9 kB] 114s Get:44 http://ftpmaster.internal/ubuntu plucky/main amd64 dwz amd64 0.15-1build6 [115 kB] 114s Get:45 http://ftpmaster.internal/ubuntu plucky/main amd64 gettext amd64 0.22.5-2 [948 kB] 114s Get:46 http://ftpmaster.internal/ubuntu plucky/main amd64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 114s Get:47 http://ftpmaster.internal/ubuntu plucky/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] 114s Get:48 http://ftpmaster.internal/ubuntu plucky/main amd64 debhelper all 13.20ubuntu1 [893 kB] 114s Get:49 http://ftpmaster.internal/ubuntu plucky/universe amd64 dh-python all 6.20241024 [112 kB] 114s Get:50 http://ftpmaster.internal/ubuntu plucky/main amd64 xml-core all 0.19 [20.3 kB] 114s Get:51 http://ftpmaster.internal/ubuntu plucky/main amd64 docutils-common all 0.21.2+dfsg-2 [131 kB] 114s Get:52 http://ftpmaster.internal/ubuntu plucky/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 114s Get:53 http://ftpmaster.internal/ubuntu plucky/main amd64 libblas3 amd64 3.12.0-3build2 [247 kB] 114s Get:54 http://ftpmaster.internal/ubuntu plucky/main amd64 libgfortran5 amd64 14.2.0-8ubuntu1 [909 kB] 114s Get:55 http://ftpmaster.internal/ubuntu plucky/main amd64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 114s Get:56 http://ftpmaster.internal/ubuntu plucky/main amd64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 114s Get:57 http://ftpmaster.internal/ubuntu plucky/main amd64 libjs-sphinxdoc all 7.4.7-4 [158 kB] 114s Get:58 http://ftpmaster.internal/ubuntu plucky/main amd64 libjson-perl all 4.10000-1 [81.9 kB] 114s Get:59 http://ftpmaster.internal/ubuntu plucky/main amd64 liblapack3 amd64 3.12.0-3build2 [2668 kB] 114s Get:60 http://ftpmaster.internal/ubuntu plucky/main amd64 libpython3.13-stdlib amd64 3.13.0-2 [2107 kB] 114s Get:61 http://ftpmaster.internal/ubuntu plucky/universe amd64 pybuild-plugin-autopkgtest all 6.20241024 [1746 B] 114s Get:62 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-packaging all 24.2-1 [51.5 kB] 114s Get:63 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 114s Get:64 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-toml all 0.10.2-1 [16.5 kB] 114s Get:65 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-wheel all 0.45.0-1 [57.7 kB] 114s Get:66 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-build all 1.2.2-1 [31.0 kB] 114s Get:67 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 114s Get:68 http://ftpmaster.internal/ubuntu plucky/universe amd64 pybuild-plugin-pyproject all 6.20241024 [1728 B] 114s Get:69 http://ftpmaster.internal/ubuntu plucky/main amd64 sphinx-rtd-theme-common all 3.0.2+dfsg-1 [1014 kB] 114s Get:70 http://ftpmaster.internal/ubuntu plucky/universe amd64 python-bpack-doc all 1.1.0-2 [100 kB] 114s Get:71 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.13 amd64 3.13.0-2 [719 kB] 114s Get:72 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-all amd64 3.12.7-1 [890 B] 114s Get:73 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bitarray amd64 2.9.2-1build2 [163 kB] 114s Get:74 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bitstruct amd64 8.19.0-1build1 [25.4 kB] 114s Get:75 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bpack all 1.1.0-2 [34.5 kB] 114s Get:76 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-defusedxml all 0.7.1-2 [42.0 kB] 114s Get:77 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-roman all 4.2-1 [10.0 kB] 114s Get:78 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-docutils all 0.21.2+dfsg-2 [409 kB] 114s Get:79 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-imagesize all 1.4.1-1 [6844 B] 114s Get:80 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 114s Get:81 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-numpy amd64 1:1.26.4+ds-11ubuntu1 [5319 kB] 115s Get:82 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 115s Get:83 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest all 8.3.3-1 [251 kB] 115s Get:84 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 115s Get:85 http://ftpmaster.internal/ubuntu plucky/main amd64 sphinx-common all 7.4.7-4 [775 kB] 115s Get:86 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-alabaster all 0.7.16-0.1 [18.5 kB] 115s Get:87 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-sphinx all 7.4.7-4 [593 kB] 115s Get:88 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-sphinxcontrib.jquery all 4.1-5 [6678 B] 115s Get:89 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [23.5 kB] 115s Fetched 93.0 MB in 6s (15.7 MB/s) 115s Selecting previously unselected package fonts-lato. 115s (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 ... 75651 files and directories currently installed.) 115s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 115s Unpacking fonts-lato (2.015-1) ... 115s Selecting previously unselected package libpython3.13-minimal:amd64. 115s Preparing to unpack .../01-libpython3.13-minimal_3.13.0-2_amd64.deb ... 115s Unpacking libpython3.13-minimal:amd64 (3.13.0-2) ... 115s Selecting previously unselected package python3.13-minimal. 115s Preparing to unpack .../02-python3.13-minimal_3.13.0-2_amd64.deb ... 115s Unpacking python3.13-minimal (3.13.0-2) ... 115s Selecting previously unselected package sgml-base. 115s Preparing to unpack .../03-sgml-base_1.31_all.deb ... 115s Unpacking sgml-base (1.31) ... 115s Selecting previously unselected package m4. 115s Preparing to unpack .../04-m4_1.4.19-4build1_amd64.deb ... 115s Unpacking m4 (1.4.19-4build1) ... 115s Selecting previously unselected package autoconf. 115s Preparing to unpack .../05-autoconf_2.72-3_all.deb ... 115s Unpacking autoconf (2.72-3) ... 116s Selecting previously unselected package autotools-dev. 116s Preparing to unpack .../06-autotools-dev_20220109.1_all.deb ... 116s Unpacking autotools-dev (20220109.1) ... 116s Selecting previously unselected package automake. 116s Preparing to unpack .../07-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 116s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 116s Selecting previously unselected package autopoint. 116s Preparing to unpack .../08-autopoint_0.22.5-2_all.deb ... 116s Unpacking autopoint (0.22.5-2) ... 116s Selecting previously unselected package libisl23:amd64. 116s Preparing to unpack .../09-libisl23_0.27-1_amd64.deb ... 116s Unpacking libisl23:amd64 (0.27-1) ... 116s Selecting previously unselected package libmpc3:amd64. 116s Preparing to unpack .../10-libmpc3_1.3.1-1build2_amd64.deb ... 116s Unpacking libmpc3:amd64 (1.3.1-1build2) ... 116s Selecting previously unselected package cpp-14-x86-64-linux-gnu. 116s Preparing to unpack .../11-cpp-14-x86-64-linux-gnu_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking cpp-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package cpp-14. 116s Preparing to unpack .../12-cpp-14_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking cpp-14 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package cpp-x86-64-linux-gnu. 116s Preparing to unpack .../13-cpp-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 116s Unpacking cpp-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 116s Selecting previously unselected package cpp. 116s Preparing to unpack .../14-cpp_4%3a14.1.0-2ubuntu1_amd64.deb ... 116s Unpacking cpp (4:14.1.0-2ubuntu1) ... 116s Selecting previously unselected package libcc1-0:amd64. 116s Preparing to unpack .../15-libcc1-0_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libcc1-0:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libgomp1:amd64. 116s Preparing to unpack .../16-libgomp1_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libgomp1:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libitm1:amd64. 116s Preparing to unpack .../17-libitm1_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libitm1:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libasan8:amd64. 116s Preparing to unpack .../18-libasan8_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libasan8:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package liblsan0:amd64. 116s Preparing to unpack .../19-liblsan0_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking liblsan0:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libtsan2:amd64. 116s Preparing to unpack .../20-libtsan2_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libtsan2:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libubsan1:amd64. 116s Preparing to unpack .../21-libubsan1_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libubsan1:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libhwasan0:amd64. 116s Preparing to unpack .../22-libhwasan0_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libhwasan0:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libquadmath0:amd64. 116s Preparing to unpack .../23-libquadmath0_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libquadmath0:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package libgcc-14-dev:amd64. 116s Preparing to unpack .../24-libgcc-14-dev_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking libgcc-14-dev:amd64 (14.2.0-8ubuntu1) ... 116s Selecting previously unselected package gcc-14-x86-64-linux-gnu. 116s Preparing to unpack .../25-gcc-14-x86-64-linux-gnu_14.2.0-8ubuntu1_amd64.deb ... 116s Unpacking gcc-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 117s Selecting previously unselected package gcc-14. 117s Preparing to unpack .../26-gcc-14_14.2.0-8ubuntu1_amd64.deb ... 117s Unpacking gcc-14 (14.2.0-8ubuntu1) ... 117s Selecting previously unselected package gcc-x86-64-linux-gnu. 117s Preparing to unpack .../27-gcc-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 117s Unpacking gcc-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 117s Selecting previously unselected package gcc. 117s Preparing to unpack .../28-gcc_4%3a14.1.0-2ubuntu1_amd64.deb ... 117s Unpacking gcc (4:14.1.0-2ubuntu1) ... 117s Selecting previously unselected package libstdc++-14-dev:amd64. 117s Preparing to unpack .../29-libstdc++-14-dev_14.2.0-8ubuntu1_amd64.deb ... 117s Unpacking libstdc++-14-dev:amd64 (14.2.0-8ubuntu1) ... 117s Selecting previously unselected package g++-14-x86-64-linux-gnu. 117s Preparing to unpack .../30-g++-14-x86-64-linux-gnu_14.2.0-8ubuntu1_amd64.deb ... 117s Unpacking g++-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 117s Selecting previously unselected package g++-14. 117s Preparing to unpack .../31-g++-14_14.2.0-8ubuntu1_amd64.deb ... 117s Unpacking g++-14 (14.2.0-8ubuntu1) ... 117s Selecting previously unselected package g++-x86-64-linux-gnu. 117s Preparing to unpack .../32-g++-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 117s Unpacking g++-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 117s Selecting previously unselected package g++. 117s Preparing to unpack .../33-g++_4%3a14.1.0-2ubuntu1_amd64.deb ... 117s Unpacking g++ (4:14.1.0-2ubuntu1) ... 117s Selecting previously unselected package build-essential. 117s Preparing to unpack .../34-build-essential_12.10ubuntu1_amd64.deb ... 117s Unpacking build-essential (12.10ubuntu1) ... 117s Selecting previously unselected package libdebhelper-perl. 117s Preparing to unpack .../35-libdebhelper-perl_13.20ubuntu1_all.deb ... 117s Unpacking libdebhelper-perl (13.20ubuntu1) ... 117s Selecting previously unselected package libtool. 117s Preparing to unpack .../36-libtool_2.4.7-8_all.deb ... 117s Unpacking libtool (2.4.7-8) ... 117s Selecting previously unselected package dh-autoreconf. 117s Preparing to unpack .../37-dh-autoreconf_20_all.deb ... 117s Unpacking dh-autoreconf (20) ... 117s Selecting previously unselected package libarchive-zip-perl. 117s Preparing to unpack .../38-libarchive-zip-perl_1.68-1_all.deb ... 117s Unpacking libarchive-zip-perl (1.68-1) ... 117s Selecting previously unselected package libfile-stripnondeterminism-perl. 117s Preparing to unpack .../39-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 117s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 117s Selecting previously unselected package dh-strip-nondeterminism. 117s Preparing to unpack .../40-dh-strip-nondeterminism_1.14.0-1_all.deb ... 117s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 117s Selecting previously unselected package debugedit. 118s Preparing to unpack .../41-debugedit_1%3a5.1-1_amd64.deb ... 118s Unpacking debugedit (1:5.1-1) ... 118s Selecting previously unselected package dwz. 118s Preparing to unpack .../42-dwz_0.15-1build6_amd64.deb ... 118s Unpacking dwz (0.15-1build6) ... 118s Selecting previously unselected package gettext. 118s Preparing to unpack .../43-gettext_0.22.5-2_amd64.deb ... 118s Unpacking gettext (0.22.5-2) ... 118s Selecting previously unselected package intltool-debian. 118s Preparing to unpack .../44-intltool-debian_0.35.0+20060710.6_all.deb ... 118s Unpacking intltool-debian (0.35.0+20060710.6) ... 118s Selecting previously unselected package po-debconf. 118s Preparing to unpack .../45-po-debconf_1.0.21+nmu1_all.deb ... 118s Unpacking po-debconf (1.0.21+nmu1) ... 118s Selecting previously unselected package debhelper. 118s Preparing to unpack .../46-debhelper_13.20ubuntu1_all.deb ... 118s Unpacking debhelper (13.20ubuntu1) ... 118s Selecting previously unselected package dh-python. 118s Preparing to unpack .../47-dh-python_6.20241024_all.deb ... 118s Unpacking dh-python (6.20241024) ... 118s Selecting previously unselected package xml-core. 118s Preparing to unpack .../48-xml-core_0.19_all.deb ... 118s Unpacking xml-core (0.19) ... 118s Selecting previously unselected package docutils-common. 118s Preparing to unpack .../49-docutils-common_0.21.2+dfsg-2_all.deb ... 118s Unpacking docutils-common (0.21.2+dfsg-2) ... 118s Selecting previously unselected package fonts-font-awesome. 118s Preparing to unpack .../50-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 118s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 118s Selecting previously unselected package libblas3:amd64. 118s Preparing to unpack .../51-libblas3_3.12.0-3build2_amd64.deb ... 118s Unpacking libblas3:amd64 (3.12.0-3build2) ... 118s Selecting previously unselected package libgfortran5:amd64. 118s Preparing to unpack .../52-libgfortran5_14.2.0-8ubuntu1_amd64.deb ... 118s Unpacking libgfortran5:amd64 (14.2.0-8ubuntu1) ... 118s Selecting previously unselected package libjs-jquery. 118s Preparing to unpack .../53-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 118s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 118s Selecting previously unselected package libjs-underscore. 118s Preparing to unpack .../54-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 118s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 118s Selecting previously unselected package libjs-sphinxdoc. 118s Preparing to unpack .../55-libjs-sphinxdoc_7.4.7-4_all.deb ... 118s Unpacking libjs-sphinxdoc (7.4.7-4) ... 118s Selecting previously unselected package libjson-perl. 118s Preparing to unpack .../56-libjson-perl_4.10000-1_all.deb ... 118s Unpacking libjson-perl (4.10000-1) ... 118s Selecting previously unselected package liblapack3:amd64. 118s Preparing to unpack .../57-liblapack3_3.12.0-3build2_amd64.deb ... 118s Unpacking liblapack3:amd64 (3.12.0-3build2) ... 118s Selecting previously unselected package libpython3.13-stdlib:amd64. 118s Preparing to unpack .../58-libpython3.13-stdlib_3.13.0-2_amd64.deb ... 118s Unpacking libpython3.13-stdlib:amd64 (3.13.0-2) ... 118s Selecting previously unselected package pybuild-plugin-autopkgtest. 118s Preparing to unpack .../59-pybuild-plugin-autopkgtest_6.20241024_all.deb ... 118s Unpacking pybuild-plugin-autopkgtest (6.20241024) ... 118s Selecting previously unselected package python3-packaging. 118s Preparing to unpack .../60-python3-packaging_24.2-1_all.deb ... 118s Unpacking python3-packaging (24.2-1) ... 118s Selecting previously unselected package python3-pyproject-hooks. 118s Preparing to unpack .../61-python3-pyproject-hooks_1.2.0-1_all.deb ... 118s Unpacking python3-pyproject-hooks (1.2.0-1) ... 118s Selecting previously unselected package python3-toml. 118s Preparing to unpack .../62-python3-toml_0.10.2-1_all.deb ... 118s Unpacking python3-toml (0.10.2-1) ... 118s Selecting previously unselected package python3-wheel. 118s Preparing to unpack .../63-python3-wheel_0.45.0-1_all.deb ... 118s Unpacking python3-wheel (0.45.0-1) ... 118s Selecting previously unselected package python3-build. 118s Preparing to unpack .../64-python3-build_1.2.2-1_all.deb ... 118s Unpacking python3-build (1.2.2-1) ... 118s Selecting previously unselected package python3-installer. 118s Preparing to unpack .../65-python3-installer_0.7.0+dfsg1-3_all.deb ... 118s Unpacking python3-installer (0.7.0+dfsg1-3) ... 118s Selecting previously unselected package pybuild-plugin-pyproject. 118s Preparing to unpack .../66-pybuild-plugin-pyproject_6.20241024_all.deb ... 118s Unpacking pybuild-plugin-pyproject (6.20241024) ... 118s Selecting previously unselected package sphinx-rtd-theme-common. 118s Preparing to unpack .../67-sphinx-rtd-theme-common_3.0.2+dfsg-1_all.deb ... 118s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-1) ... 118s Selecting previously unselected package python-bpack-doc. 118s Preparing to unpack .../68-python-bpack-doc_1.1.0-2_all.deb ... 118s Unpacking python-bpack-doc (1.1.0-2) ... 119s Selecting previously unselected package python3.13. 119s Preparing to unpack .../69-python3.13_3.13.0-2_amd64.deb ... 119s Unpacking python3.13 (3.13.0-2) ... 119s Selecting previously unselected package python3-all. 119s Preparing to unpack .../70-python3-all_3.12.7-1_amd64.deb ... 119s Unpacking python3-all (3.12.7-1) ... 119s Selecting previously unselected package python3-bitarray. 119s Preparing to unpack .../71-python3-bitarray_2.9.2-1build2_amd64.deb ... 119s Unpacking python3-bitarray (2.9.2-1build2) ... 119s Selecting previously unselected package python3-bitstruct. 119s Preparing to unpack .../72-python3-bitstruct_8.19.0-1build1_amd64.deb ... 119s Unpacking python3-bitstruct (8.19.0-1build1) ... 119s Selecting previously unselected package python3-bpack. 119s Preparing to unpack .../73-python3-bpack_1.1.0-2_all.deb ... 119s Unpacking python3-bpack (1.1.0-2) ... 119s Selecting previously unselected package python3-defusedxml. 119s Preparing to unpack .../74-python3-defusedxml_0.7.1-2_all.deb ... 119s Unpacking python3-defusedxml (0.7.1-2) ... 119s Selecting previously unselected package python3-roman. 119s Preparing to unpack .../75-python3-roman_4.2-1_all.deb ... 119s Unpacking python3-roman (4.2-1) ... 119s Selecting previously unselected package python3-docutils. 119s Preparing to unpack .../76-python3-docutils_0.21.2+dfsg-2_all.deb ... 119s Unpacking python3-docutils (0.21.2+dfsg-2) ... 119s Selecting previously unselected package python3-imagesize. 119s Preparing to unpack .../77-python3-imagesize_1.4.1-1_all.deb ... 119s Unpacking python3-imagesize (1.4.1-1) ... 119s Selecting previously unselected package python3-iniconfig. 119s Preparing to unpack .../78-python3-iniconfig_1.1.1-2_all.deb ... 119s Unpacking python3-iniconfig (1.1.1-2) ... 119s Selecting previously unselected package python3-numpy. 119s Preparing to unpack .../79-python3-numpy_1%3a1.26.4+ds-11ubuntu1_amd64.deb ... 119s Unpacking python3-numpy (1:1.26.4+ds-11ubuntu1) ... 119s Selecting previously unselected package python3-pluggy. 119s Preparing to unpack .../80-python3-pluggy_1.5.0-1_all.deb ... 119s Unpacking python3-pluggy (1.5.0-1) ... 119s Selecting previously unselected package python3-pytest. 119s Preparing to unpack .../81-python3-pytest_8.3.3-1_all.deb ... 119s Unpacking python3-pytest (8.3.3-1) ... 119s Selecting previously unselected package python3-snowballstemmer. 119s Preparing to unpack .../82-python3-snowballstemmer_2.2.0-4build1_all.deb ... 119s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 119s Selecting previously unselected package sphinx-common. 119s Preparing to unpack .../83-sphinx-common_7.4.7-4_all.deb ... 119s Unpacking sphinx-common (7.4.7-4) ... 119s Selecting previously unselected package python3-alabaster. 119s Preparing to unpack .../84-python3-alabaster_0.7.16-0.1_all.deb ... 119s Unpacking python3-alabaster (0.7.16-0.1) ... 119s Selecting previously unselected package python3-sphinx. 119s Preparing to unpack .../85-python3-sphinx_7.4.7-4_all.deb ... 119s Unpacking python3-sphinx (7.4.7-4) ... 119s Selecting previously unselected package python3-sphinxcontrib.jquery. 119s Preparing to unpack .../86-python3-sphinxcontrib.jquery_4.1-5_all.deb ... 119s Unpacking python3-sphinxcontrib.jquery (4.1-5) ... 119s Selecting previously unselected package python3-sphinx-rtd-theme. 119s Preparing to unpack .../87-python3-sphinx-rtd-theme_3.0.2+dfsg-1_all.deb ... 119s Unpacking python3-sphinx-rtd-theme (3.0.2+dfsg-1) ... 119s Selecting previously unselected package autopkgtest-satdep. 119s Preparing to unpack .../88-1-autopkgtest-satdep.deb ... 119s Unpacking autopkgtest-satdep (0) ... 120s Setting up dh-python (6.20241024) ... 120s Setting up python3-iniconfig (1.1.1-2) ... 120s Setting up fonts-lato (2.015-1) ... 120s Setting up python3-defusedxml (0.7.1-2) ... 120s Setting up libarchive-zip-perl (1.68-1) ... 120s Setting up python3-alabaster (0.7.16-0.1) ... 120s Setting up libdebhelper-perl (13.20ubuntu1) ... 120s Setting up m4 (1.4.19-4build1) ... 120s Setting up libgomp1:amd64 (14.2.0-8ubuntu1) ... 120s Setting up python3-wheel (0.45.0-1) ... 120s Setting up python3-bpack (1.1.0-2) ... 121s Setting up libpython3.13-minimal:amd64 (3.13.0-2) ... 121s Setting up python3-bitarray (2.9.2-1build2) ... 121s Setting up python3-roman (4.2-1) ... 121s Setting up autotools-dev (20220109.1) ... 121s Setting up libblas3:amd64 (3.12.0-3build2) ... 121s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode 121s Setting up python3-packaging (24.2-1) ... 121s Setting up python3-pyproject-hooks (1.2.0-1) ... 121s Setting up python3-snowballstemmer (2.2.0-4build1) ... 122s Setting up libquadmath0:amd64 (14.2.0-8ubuntu1) ... 122s Setting up libmpc3:amd64 (1.3.1-1build2) ... 122s Setting up autopoint (0.22.5-2) ... 122s Setting up python3-toml (0.10.2-1) ... 122s Setting up python3-installer (0.7.0+dfsg1-3) ... 122s Setting up libgfortran5:amd64 (14.2.0-8ubuntu1) ... 122s Setting up python3-bitstruct (8.19.0-1build1) ... 122s Setting up autoconf (2.72-3) ... 122s Setting up python3-pluggy (1.5.0-1) ... 122s Setting up libubsan1:amd64 (14.2.0-8ubuntu1) ... 122s Setting up dwz (0.15-1build6) ... 122s Setting up libhwasan0:amd64 (14.2.0-8ubuntu1) ... 122s Setting up libasan8:amd64 (14.2.0-8ubuntu1) ... 122s Setting up libjson-perl (4.10000-1) ... 122s Setting up debugedit (1:5.1-1) ... 122s Setting up python3.13-minimal (3.13.0-2) ... 123s Setting up sgml-base (1.31) ... 123s Setting up libtsan2:amd64 (14.2.0-8ubuntu1) ... 123s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 123s Setting up libisl23:amd64 (0.27-1) ... 123s Setting up python3-build (1.2.2-1) ... 123s Setting up libpython3.13-stdlib:amd64 (3.13.0-2) ... 123s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 123s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-1) ... 123s Setting up libcc1-0:amd64 (14.2.0-8ubuntu1) ... 123s Setting up liblsan0:amd64 (14.2.0-8ubuntu1) ... 123s Setting up libitm1:amd64 (14.2.0-8ubuntu1) ... 123s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 123s Setting up python3-imagesize (1.4.1-1) ... 123s Setting up automake (1:1.16.5-1.3ubuntu1) ... 123s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 123s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 123s Setting up liblapack3:amd64 (3.12.0-3build2) ... 123s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode 123s Setting up gettext (0.22.5-2) ... 123s Setting up python3.13 (3.13.0-2) ... 124s Setting up pybuild-plugin-pyproject (6.20241024) ... 124s Setting up python3-pytest (8.3.3-1) ... 125s Setting up python3-all (3.12.7-1) ... 125s Setting up intltool-debian (0.35.0+20060710.6) ... 125s Setting up cpp-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 125s Setting up python3-numpy (1:1.26.4+ds-11ubuntu1) ... 127s Setting up libjs-sphinxdoc (7.4.7-4) ... 127s Setting up cpp-14 (14.2.0-8ubuntu1) ... 127s Setting up dh-strip-nondeterminism (1.14.0-1) ... 127s Setting up xml-core (0.19) ... 128s Setting up libgcc-14-dev:amd64 (14.2.0-8ubuntu1) ... 128s Setting up libstdc++-14-dev:amd64 (14.2.0-8ubuntu1) ... 128s Setting up cpp-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 128s Setting up po-debconf (1.0.21+nmu1) ... 128s Setting up python-bpack-doc (1.1.0-2) ... 128s Setting up sphinx-common (7.4.7-4) ... 128s Setting up cpp (4:14.1.0-2ubuntu1) ... 128s Setting up gcc-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 128s Setting up gcc-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 128s Setting up gcc-14 (14.2.0-8ubuntu1) ... 128s Setting up g++-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 128s Setting up g++-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 128s Setting up g++-14 (14.2.0-8ubuntu1) ... 128s Setting up libtool (2.4.7-8) ... 128s Setting up gcc (4:14.1.0-2ubuntu1) ... 128s Setting up dh-autoreconf (20) ... 128s Setting up g++ (4:14.1.0-2ubuntu1) ... 128s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 128s Setting up build-essential (12.10ubuntu1) ... 128s Setting up debhelper (13.20ubuntu1) ... 128s Setting up pybuild-plugin-autopkgtest (6.20241024) ... 128s Processing triggers for libc-bin (2.40-1ubuntu3) ... 128s Processing triggers for systemd (256.5-2ubuntu4) ... 128s Processing triggers for man-db (2.13.0-1) ... 129s Processing triggers for install-info (7.1.1-1) ... 129s Processing triggers for sgml-base (1.31) ... 129s Setting up docutils-common (0.21.2+dfsg-2) ... 129s Processing triggers for sgml-base (1.31) ... 129s Setting up python3-docutils (0.21.2+dfsg-2) ... 130s Setting up python3-sphinx (7.4.7-4) ... 131s Setting up python3-sphinxcontrib.jquery (4.1-5) ... 131s Setting up python3-sphinx-rtd-theme (3.0.2+dfsg-1) ... 131s Setting up autopkgtest-satdep (0) ... 134s (Reading database ... 81724 files and directories currently installed.) 134s Removing autopkgtest-satdep (0) ... 135s autopkgtest [20:37:01]: test pybuild-autopkgtest: pybuild-autopkgtest 135s autopkgtest [20:37:01]: test pybuild-autopkgtest: [----------------------- 135s pybuild-autopkgtest 136s I: pybuild base:311: cd /tmp/autopkgtest.OSMHRm/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 136s ============================= test session starts ============================== 136s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 136s rootdir: /tmp/autopkgtest.OSMHRm/autopkgtest_tmp/build 136s configfile: pyproject.toml 136s plugins: typeguard-4.4.1 136s collected 1709 items 136s 137s tests/test_backends_codec.py ....FFFF.........FFFFFFFFF........FFFFFFFFF [ 2%] 138s FFFFFF....FFFFFFFFF....FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] 138s tests/test_codecs.py FF [ 6%] 138s tests/test_decoder_ba.py FFF.... [ 6%] 138s tests/test_decoder_np.py F [ 6%] 138s tests/test_desctiptor_utils.py ......................... [ 8%] 138s tests/test_field_descriptor.py ......................................... [ 10%] 138s ............... [ 11%] 138s tests/test_packbits.py ................................................. [ 14%] 138s ........................................................................ [ 18%] 139s ........................................................................ [ 22%] 139s ........................................................................ [ 27%] 139s ........................................................................ [ 31%] 139s ........................................................................ [ 35%] 139s ........................................................................ [ 39%] 140s ........................................................................ [ 43%] 140s ........................................................................ [ 48%] 140s ........................................................................ [ 52%] 140s ........................................................................ [ 56%] 140s ........................................................................ [ 60%] 140s ........................................................................ [ 65%] 141s ........................................................................ [ 69%] 141s ........................................................................ [ 73%] 141s ........................................................................ [ 77%] 141s ........................................................................ [ 81%] 141s ........................................................ [ 85%] 141s tests/test_record_descriptor.py ........................................ [ 87%] 141s ................... [ 88%] 141s tests/test_typing.py ................................................... [ 91%] 141s ........................................................................ [ 95%] 141s .................................................... [ 98%] 141s tests/test_utils.py .................... [100%] 141s 141s =================================== FAILURES =================================== 141s ________________________________ test_attrs[bs] ________________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_attrs(backend): 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________________________ test_attrs[ba] ________________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_attrs(backend): 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________________________ test_attrs[st] ________________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_attrs(backend): 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________________________ test_attrs[np] ________________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_attrs(backend): 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_decoder_func[st BE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x00\x02\xff\xfe\x00\x02\x00\x00\x00\x04\xff\xff\xff\xfc\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x08I\x00B\xc8\x00\x00@\x8f@\x00\x00\x00\x00\x00abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_decoder_func[st LE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x02\x00\xfe\xff\x02\x00\x04\x00\x00\x00\xfc\xff\xff\xff\x04\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xff\x08\x00\x00\x00\x00\x00\x00\x00\x00I\x00\x00\xc8B\x00\x00\x00\x00\x00@\x8f@abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_decoder_func[np BE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x00\x02\xff\xfe\x00\x02\x00\x00\x00\x04\xff\xff\xff\xfc\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x08I\x00B\xc8\x00\x00@\x8f@\x00\x00\x00\x00\x00abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_decoder_func[np LE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x02\x00\xfe\xff\x02\x00\x04\x00\x00\x00\xfc\xff\xff\xff\x04\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xff\x08\x00\x00\x00\x00\x00\x00\x00\x00I\x00\x00\xc8B\x00\x00\x00\x00\x00@\x8f@abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_decoder_func[bs BE MSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_decoder_func[bs LE MSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_decoder_func[bs BE LSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x90\x01\x00\x00\x01\xfc\xc6F\x86\xc2B\x82\x0f\xff\xff\xfe\x10\x01\x00\x00\x00\x01\x90\x01\x00\x00\x00\x01' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_decoder_func[bs LE LSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x91\x00\xfc\x01\x00\x00\xc6F\x86\xc2B\x82\x0e\xff\xff\xff\x11\x00\x01\x00\x00\x00\x91\x00\x01\x00\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_decoder_func[ba BE MSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_ba, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="ba BE MSB", 141s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 141s decoded_data = Record() 141s 141s > record_type = backend.decoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_encoder_func[st BE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x00\x02\xff\xfe\x00\x02\x00\x00\x00\x04\xff\xff\xff\xfc\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x08I\x00B\xc8\x00\x00@\x8f@\x00\x00\x00\x00\x00abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_encoder_func[st LE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x02\x00\xfe\xff\x02\x00\x04\x00\x00\x00\xfc\xff\xff\xff\x04\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xff\x08\x00\x00\x00\x00\x00\x00\x00\x00I\x00\x00\xc8B\x00\x00\x00\x00\x00@\x8f@abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_encoder_func[np BE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x00\x02\xff\xfe\x00\x02\x00\x00\x00\x04\xff\xff\xff\xfc\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x08I\x00B\xc8\x00\x00@\x8f@\x00\x00\x00\x00\x00abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_encoder_func[np LE] ___________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x00\x01\xff\x01\x02\x00\xfe\xff\x02\x00\x04\x00\x00\x00\xfc\xff\xff\xff\x04\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00...\xff\xff\xff\xff\xff\xff\xff\x08\x00\x00\x00\x00\x00\x00\x00\x00I\x00\x00\xc8B\x00\x00\x00\x00\x00@\x8f@abcABCxxxx1234' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_encoder_func[bs BE MSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_encoder_func[bs LE MSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_encoder_func[bs BE LSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x90\x01\x00\x00\x01\xfc\xc6F\x86\xc2B\x82\x0f\xff\xff\xfe\x10\x01\x00\x00\x00\x01\x90\x01\x00\x00\x00\x01' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_encoder_func[bs LE LSB] _________________________ 141s 141s backend = 141s Record = 141s encoded_data = b'\x91\x00\xfc\x01\x00\x00\xc6F\x86\xc2B\x82\x0e\xff\xff\xff\x11\x00\x01\x00\x00\x00\x91\x00\x01\x00\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "backend, Record, encoded_data", 141s [ 141s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 141s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 141s pytest.param( 141s bpack_np, 141s ByteRecordBe, 141s BYTE_ENCODED_DATA_BE, 141s id="np BE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s ByteRecordLe, 141s BYTE_ENCODED_DATA_LE, 141s id="np LE", 141s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeMsb, 141s BIT_ENCODED_DATA_BE_MSB, 141s id="bs BE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeMsb, 141s BIT_ENCODED_DATA_LE_MSB, 141s id="bs LE MSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordBeLsb, 141s BIT_ENCODED_DATA_BE_LSB, 141s id="bs BE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_bs, 141s BitRecordLeLsb, 141s BIT_ENCODED_DATA_LE_LSB, 141s id="bs LE LSB", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 141s record = Record() 141s 141s > record_type = backend.encoder(Record) 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________ test_bit_decoder_decorator_frombytes[bs] ___________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BITS_BACKENDS) 141s def test_bit_decoder_decorator_frombytes(backend): 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:747: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________ test_bit_decoder_decorator_frombytes[ba] ___________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BITS_BACKENDS) 141s def test_bit_decoder_decorator_frombytes(backend): 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:747: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ____________________ test_bit_encoder_decorator_tobytes[bs] ____________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ) 141s ], 141s ) 141s def test_bit_encoder_decorator_tobytes(backend): 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:783: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________________ test_byte_decoder_decorator_frombytes[st] ___________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_decoder_decorator_frombytes(backend): 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:805: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________________ test_byte_decoder_decorator_frombytes[np] ___________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_decoder_decorator_frombytes(backend): 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:805: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________ test_byte_encoder_decorator_tobytes[st] ____________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_encoder_decorator_tobytes(backend): 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:825: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________ test_byte_encoder_decorator_tobytes[np] ____________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_encoder_decorator_tobytes(backend): 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:825: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ test_byte_decoder_native_byteorder_frombytes[st] _______________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_decoder_native_byteorder_frombytes(backend): 141s size = 4 141s value = 1 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:862: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ test_byte_decoder_native_byteorder_frombytes[np] _______________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_decoder_native_byteorder_frombytes(backend): 141s size = 4 141s value = 1 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:862: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________ test_byte_encoder_native_byteorder_tobytes[st] ________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_encoder_native_byteorder_tobytes(backend): 141s size = 4 141s value = 1 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:876: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________ test_byte_encoder_native_byteorder_tobytes[np] ________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 141s def test_byte_encoder_native_byteorder_tobytes(backend): 141s size = 4 141s value = 1 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:876: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ test_bit_decoder_native_byteorder_frombytes[bs] ________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ) 141s ], 141s ) 141s def test_bit_decoder_native_byteorder_frombytes(backend): 141s size = 64 141s value = 1 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:900: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________ test_bit_encoder_native_byteorder_tobytes[bs] _________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ) 141s ], 141s ) 141s def test_bit_encoder_native_byteorder_tobytes(backend): 141s size = 64 141s value = 1 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:927: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ test_bit_decoder_default_byteorder_frombytes[bs] _______________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BITS_BACKENDS) 141s def test_bit_decoder_default_byteorder_frombytes(backend): 141s size = 64 141s value = 1 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:946: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ test_bit_decoder_default_byteorder_frombytes[ba] _______________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", BITS_BACKENDS) 141s def test_bit_decoder_default_byteorder_frombytes(backend): 141s size = 64 141s value = 1 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:946: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________________ test_bit_encoder_default_byteorder_tobytes[bs] ________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ) 141s ], 141s ) 141s def test_bit_encoder_default_byteorder_tobytes(backend): 141s size = 64 141s value = 1 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:974: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_decoding_bytes[bs] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_enum_decoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s ) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s ) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_decoding_bytes[ba] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_enum_decoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s ) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s ) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_decoding_bytes[st] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_enum_decoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s ) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s ) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_decoding_bytes[np] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize("backend", ALL_BACKENDS) 141s def test_enum_decoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s ) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = b"".join( 141s [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s ) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_encoding_bytes[st] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s id="np", 141s marks=skipif(not bpack_np, reason="not available"), 141s ), 141s ], 141s ) 141s def test_enum_encoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s encoded_data = b"".join(encoded_data) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s encoded_data = b"".join(encoded_data) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_encoding_bytes[bs] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s id="np", 141s marks=skipif(not bpack_np, reason="not available"), 141s ), 141s ], 141s ) 141s def test_enum_encoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s encoded_data = b"".join(encoded_data) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s encoded_data = b"".join(encoded_data) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _________________________ test_enum_encoding_bytes[np] _________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s pytest.param( 141s bpack_np, 141s id="np", 141s marks=skipif(not bpack_np, reason="not available"), 141s ), 141s ], 141s ) 141s def test_enum_encoding_bytes(backend): 141s class EStrEnumType(enum.Enum): 141s A = "a" 141s B = "b" 141s 141s class EBytesEnumType(enum.Enum): 141s A = b"a" 141s B = b"b" 141s 141s class EIntEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s class EFlagEnumType(enum.Enum): 141s A = 1 141s B = 2 141s 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s ssize = 1 141s isize = 1 141s encoded_data = [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 141s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 141s ] 141s encoded_data = b"".join(encoded_data) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s ssize = 8 141s isize = 4 141s encoded_data = [ 141s EStrEnumType.A.value.encode("ascii"), 141s EBytesEnumType.A.value, 141s bytes([0b00010001]), 141s ] 141s encoded_data = b"".join(encoded_data) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_decode_sequence[st] ___________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decode_sequence(backend): 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s size = 1 141s repeat = 2 141s encoded_data = bytes([3, 3, 4, 4]) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s size = 4 141s repeat = 2 141s encoded_data = bytes([0b00110011, 0b01000100]) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_decode_sequence[bs] ___________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_decode_sequence(backend): 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s size = 1 141s repeat = 2 141s encoded_data = bytes([3, 3, 4, 4]) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s size = 4 141s repeat = 2 141s encoded_data = bytes([0b00110011, 0b01000100]) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_encode_sequence[st] ___________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encode_sequence(backend): 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s size = 1 141s repeat = 2 141s encoded_data = bytes([3, 3, 4, 4]) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s size = 4 141s repeat = 2 141s encoded_data = bytes([0b00110011, 0b01000100]) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ___________________________ test_encode_sequence[bs] ___________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_encode_sequence(backend): 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 141s bitorder = None 141s size = 1 141s repeat = 2 141s encoded_data = bytes([3, 3, 4, 4]) 141s else: 141s bitorder = bpack.EBitOrder.MSB 141s size = 4 141s repeat = 2 141s encoded_data = bytes([0b00110011, 0b01000100]) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_decoder[st] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_decoder(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s > @backend.decoder # NOTE: this is a decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_decoder[bs] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_decoder(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s > @backend.decoder # NOTE: this is a decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_decoder[np] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_decoder(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s > @backend.decoder # NOTE: this is a decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_encoder[st] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_encoder(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s > @backend.encoder # NOTE: this is an encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_encoder[bs] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_encoder(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s > @backend.encoder # NOTE: this is an encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_encoder[np] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_encoder(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s > @backend.encoder # NOTE: this is an encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ______________ TestNestedRecord.test_nested_record_frombytes[st] _______________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_frombytes(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s # NOTE: this time the inner record is not a decoder 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class Record: 141s field_1: int = bpack.field(size=4, default=1) 141s field_2: int = bpack.field(size=4, default=2) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ______________ TestNestedRecord.test_nested_record_frombytes[bs] _______________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_frombytes(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s # NOTE: this time the inner record is not a decoder 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class Record: 141s field_1: int = bpack.field(size=4, default=1) 141s field_2: int = bpack.field(size=4, default=2) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ______________ TestNestedRecord.test_nested_record_frombytes[np] _______________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_frombytes(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s # NOTE: this time the inner record is not a decoder 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class Record: 141s field_1: int = bpack.field(size=4, default=1) 141s field_2: int = bpack.field(size=4, default=2) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_tobytes[st] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_tobytes(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s # NOTE: this time the inner record is not a decoder 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class Record: 141s field_1: int = bpack.field(size=4, default=1) 141s field_2: int = bpack.field(size=4, default=2) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_tobytes[bs] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_tobytes(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s # NOTE: this time the inner record is not a decoder 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class Record: 141s field_1: int = bpack.field(size=4, default=1) 141s field_2: int = bpack.field(size=4, default=2) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______________ TestNestedRecord.test_nested_record_tobytes[np] ________________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_tobytes(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s 141s # NOTE: this time the inner record is not a decoder 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class Record: 141s field_1: int = bpack.field(size=4, default=1) 141s field_2: int = bpack.field(size=4, default=2) 141s 141s > @backend.encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________ TestNestedRecord.test_nested_record_decoder_with_order[st] __________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_decoder_with_order(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 141s kwargs = dict(bitorder=">", byteorder=">") 141s else: 141s # TODO: use the default byteorder (see get_encoded_data) 141s kwargs = dict(byteorder=bpack.EByteOrder.LE) 141s 141s > @backend.decoder # NOTE: this is a decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________ TestNestedRecord.test_nested_record_decoder_with_order[bs] __________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_decoder_with_order(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 141s kwargs = dict(bitorder=">", byteorder=">") 141s else: 141s # TODO: use the default byteorder (see get_encoded_data) 141s kwargs = dict(byteorder=bpack.EByteOrder.LE) 141s 141s > @backend.decoder # NOTE: this is a decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________ TestNestedRecord.test_nested_record_decoder_with_order[np] __________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_decoder_with_order(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 141s kwargs = dict(bitorder=">", byteorder=">") 141s else: 141s # TODO: use the default byteorder (see get_encoded_data) 141s kwargs = dict(byteorder=bpack.EByteOrder.LE) 141s 141s > @backend.decoder # NOTE: this is a decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________ TestNestedRecord.test_nested_record_encoder_with_order[st] __________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_encoder_with_order(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 141s kwargs = dict(bitorder=">", byteorder=">") 141s else: 141s # TODO: use the default byteorder (see get_encoded_data) 141s kwargs = dict(byteorder=bpack.EByteOrder.LE) 141s 141s > @backend.encoder # NOTE: this is a encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________ TestNestedRecord.test_nested_record_encoder_with_order[bs] __________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_encoder_with_order(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 141s kwargs = dict(bitorder=">", byteorder=">") 141s else: 141s # TODO: use the default byteorder (see get_encoded_data) 141s kwargs = dict(byteorder=bpack.EByteOrder.LE) 141s 141s > @backend.encoder # NOTE: this is a encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s __________ TestNestedRecord.test_nested_record_encoder_with_order[np] __________ 141s 141s self = 141s backend = 141s 141s def test_nested_record_encoder_with_order(self, backend): 141s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 141s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 141s kwargs = dict(bitorder=">", byteorder=">") 141s else: 141s # TODO: use the default byteorder (see get_encoded_data) 141s kwargs = dict(byteorder=bpack.EByteOrder.LE) 141s 141s > @backend.encoder # NOTE: this is a encoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[st] ________ 141s 141s self = 141s backend = 141s 141s def test_decode_nested_record_two_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s FOUR = 4 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_02: int = bpack.field(size=4, default=2) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[bs] ________ 141s 141s self = 141s backend = 141s 141s def test_decode_nested_record_two_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s FOUR = 4 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_02: int = bpack.field(size=4, default=2) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[st] ________ 141s 141s self = 141s backend = 141s 141s def test_encode_nested_record_two_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s FOUR = 4 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_02: int = bpack.field(size=4, default=2) 141s 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[bs] ________ 141s 141s self = 141s backend = 141s 141s def test_encode_nested_record_two_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s FOUR = 4 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_02: int = bpack.field(size=4, default=2) 141s 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[st] _______ 141s 141s self = 141s backend = 141s 141s def test_decode_nested_record_three_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s TWO = 2 141s SEVEN = 7 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 141s ) 141s field_03: int = bpack.field(size=4, default=4) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[bs] _______ 141s 141s self = 141s backend = 141s 141s def test_decode_nested_record_three_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s TWO = 2 141s SEVEN = 7 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 141s ) 141s field_03: int = bpack.field(size=4, default=4) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[st] _______ 141s 141s self = 141s backend = 141s 141s def test_encode_nested_record_three_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s TWO = 2 141s SEVEN = 7 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 141s ) 141s field_03: int = bpack.field(size=4, default=4) 141s 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[bs] _______ 141s 141s self = 141s backend = 141s 141s def test_encode_nested_record_three_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s TWO = 2 141s SEVEN = 7 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 141s ) 141s field_03: int = bpack.field(size=4, default=4) 141s 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[st] ________ 141s 141s self = 141s backend = 141s 141s def test_decode_nested_record_four_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s THREE = 3 141s TEN = 10 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel04: 141s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_0002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: int = bpack.field(size=4, default=1) 141s field_002: RecordLevel04 = bpack.field( 141s default_factory=RecordLevel04 141s ) 141s field_003: int = bpack.field(size=4, default=3) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial( 141s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 141s ) 141s ) 141s field_03: int = bpack.field(size=4, default=6) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[bs] ________ 141s 141s self = 141s backend = 141s 141s def test_decode_nested_record_four_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s THREE = 3 141s TEN = 10 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel04: 141s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_0002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: int = bpack.field(size=4, default=1) 141s field_002: RecordLevel04 = bpack.field( 141s default_factory=RecordLevel04 141s ) 141s field_003: int = bpack.field(size=4, default=3) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial( 141s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 141s ) 141s ) 141s field_03: int = bpack.field(size=4, default=6) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[st] ________ 141s 141s self = 141s backend = 141s 141s def test_encode_nested_record_four_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s THREE = 3 141s TEN = 10 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel04: 141s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_0002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: int = bpack.field(size=4, default=1) 141s field_002: RecordLevel04 = bpack.field( 141s default_factory=RecordLevel04 141s ) 141s field_003: int = bpack.field(size=4, default=3) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial( 141s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 141s ) 141s ) 141s field_03: int = bpack.field(size=4, default=6) 141s 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[bs] ________ 141s 141s self = 141s backend = 141s 141s def test_encode_nested_record_four_levels(self, backend): 141s class EEnum(enum.Enum): 141s ONE = 1 141s THREE = 3 141s TEN = 10 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel04: 141s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 141s field_0002: int = bpack.field(size=4, default=2) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel03: 141s field_001: int = bpack.field(size=4, default=1) 141s field_002: RecordLevel04 = bpack.field( 141s default_factory=RecordLevel04 141s ) 141s field_003: int = bpack.field(size=4, default=3) 141s 141s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 141s class RecordLevel02: 141s field_01: int = bpack.field(size=4, default=1) 141s field_02: RecordLevel03 = bpack.field( 141s default_factory=functools.partial( 141s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 141s ) 141s ) 141s field_03: int = bpack.field(size=4, default=6) 141s 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ____________________________ test_codec_helpers[st] ____________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_codec_helpers(backend): 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s ____________________________ test_codec_helpers[bs] ____________________________ 141s 141s backend = 141s 141s @pytest.mark.parametrize( 141s "backend", 141s [ 141s pytest.param(bpack.st, id="st"), 141s pytest.param( 141s bpack_bs, 141s id="bs", 141s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 141s ), 141s ], 141s ) 141s def test_codec_helpers(backend): 141s > @backend.codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _____________________________ test_float[float16] ______________________________ 141s 141s size = 16, data = b'<\x00' 141s 141s @pytest.mark.parametrize( 141s "size, data", 141s [ 141s # fmt: off 141s (16, bytes([0b00111100, 0b00000000])), 141s (32, bytes([0b00111111, 0b10000000, 0b00000000, 0b00000000])), 141s (64, bytes([0b00111111, 0b11110000, 0b00000000, 0b00000000, 141s 0b00000000, 0b00000000, 0b00000000, 0b00000000])), 141s # fmt: on 141s ], 141s ids=["float16", "float32", "float64"], 141s ) 141s def test_float(size, data): 141s backend = bpack_ba 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_ba.py:28: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _____________________________ test_float[float32] ______________________________ 141s 141s size = 32, data = b'?\x80\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "size, data", 141s [ 141s # fmt: off 141s (16, bytes([0b00111100, 0b00000000])), 141s (32, bytes([0b00111111, 0b10000000, 0b00000000, 0b00000000])), 141s (64, bytes([0b00111111, 0b11110000, 0b00000000, 0b00000000, 141s 0b00000000, 0b00000000, 0b00000000, 0b00000000])), 141s # fmt: on 141s ], 141s ids=["float16", "float32", "float64"], 141s ) 141s def test_float(size, data): 141s backend = bpack_ba 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_ba.py:28: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _____________________________ test_float[float64] ______________________________ 141s 141s size = 64, data = b'?\xf0\x00\x00\x00\x00\x00\x00' 141s 141s @pytest.mark.parametrize( 141s "size, data", 141s [ 141s # fmt: off 141s (16, bytes([0b00111100, 0b00000000])), 141s (32, bytes([0b00111111, 0b10000000, 0b00000000, 0b00000000])), 141s (64, bytes([0b00111111, 0b11110000, 0b00000000, 0b00000000, 141s 0b00000000, 0b00000000, 0b00000000, 0b00000000])), 141s # fmt: on 141s ], 141s ids=["float16", "float32", "float64"], 141s ) 141s def test_float(size, data): 141s backend = bpack_ba 141s codec = getattr(backend, "codec", backend.decoder) 141s 141s > @codec 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_ba.py:28: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s _____________________________ test_decode_sequence _____________________________ 141s 141s def test_decode_sequence(): 141s backend = bpack_np 141s bitorder = None 141s size = 1 141s repeat = 2 141s encoded_data = bytes([3, 3, 4, 4]) 141s 141s > @backend.decoder 141s 141s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_np.py:19: 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 141s return wrap(cls) 141s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 141s return func(klass, **kwargs) 141s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 141s decode_func = bpack.utils.create_fn( 141s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 141s 141s name = 'frombytes', args = ('cls', 'data') 141s body = ['return cls.__bpack_decoder__.decode(data)'] 141s 141s def create_fn( 141s name, 141s args, 141s body, 141s *, 141s globals=None, # noqa: A002 141s locals=None, # noqa: A002 141s return_type=dataclasses.MISSING, 141s ): 141s """Create a function object.""" 141s > return dataclasses._create_fn( 141s name, 141s args, 141s body, 141s globals=globals, 141s locals=locals, 141s return_type=return_type, 141s ) 141s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 141s 141s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 141s =========================== short test summary info ============================ 141s FAILED tests/test_backends_codec.py::test_attrs[bs] - AttributeError: module ... 141s FAILED tests/test_backends_codec.py::test_attrs[ba] - AttributeError: module ... 141s FAILED tests/test_backends_codec.py::test_attrs[st] - AttributeError: module ... 141s FAILED tests/test_backends_codec.py::test_attrs[np] - AttributeError: module ... 141s FAILED tests/test_backends_codec.py::test_decoder_func[st BE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_decoder_func[st LE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_decoder_func[np BE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_decoder_func[np LE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE MSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE MSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE LSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE LSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_decoder_func[ba BE MSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_encoder_func[st BE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_encoder_func[st LE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_encoder_func[np BE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_encoder_func[np LE] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE MSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE MSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE LSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE LSB] - Attribute... 141s FAILED tests/test_backends_codec.py::test_bit_decoder_decorator_frombytes[bs] 141s FAILED tests/test_backends_codec.py::test_bit_decoder_decorator_frombytes[ba] 141s FAILED tests/test_backends_codec.py::test_bit_encoder_decorator_tobytes[bs] 141s FAILED tests/test_backends_codec.py::test_byte_decoder_decorator_frombytes[st] 141s FAILED tests/test_backends_codec.py::test_byte_decoder_decorator_frombytes[np] 141s FAILED tests/test_backends_codec.py::test_byte_encoder_decorator_tobytes[st] 141s FAILED tests/test_backends_codec.py::test_byte_encoder_decorator_tobytes[np] 141s FAILED tests/test_backends_codec.py::test_byte_decoder_native_byteorder_frombytes[st] 141s FAILED tests/test_backends_codec.py::test_byte_decoder_native_byteorder_frombytes[np] 141s FAILED tests/test_backends_codec.py::test_byte_encoder_native_byteorder_tobytes[st] 141s FAILED tests/test_backends_codec.py::test_byte_encoder_native_byteorder_tobytes[np] 141s FAILED tests/test_backends_codec.py::test_bit_decoder_native_byteorder_frombytes[bs] 141s FAILED tests/test_backends_codec.py::test_bit_encoder_native_byteorder_tobytes[bs] 141s FAILED tests/test_backends_codec.py::test_bit_decoder_default_byteorder_frombytes[bs] 141s FAILED tests/test_backends_codec.py::test_bit_decoder_default_byteorder_frombytes[ba] 141s FAILED tests/test_backends_codec.py::test_bit_encoder_default_byteorder_tobytes[bs] 141s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[bs] - Attribute... 141s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[ba] - Attribute... 141s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[st] - Attribute... 141s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[np] - Attribute... 141s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[st] - Attribute... 141s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[bs] - Attribute... 141s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[np] - Attribute... 141s FAILED tests/test_backends_codec.py::test_decode_sequence[st] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_decode_sequence[bs] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_encode_sequence[st] - AttributeErro... 141s FAILED tests/test_backends_codec.py::test_encode_sequence[bs] - AttributeErro... 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[st] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[bs] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[np] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[st] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[bs] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[np] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[st] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[bs] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[np] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[st] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[bs] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[np] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[st] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[bs] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[np] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[st] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[bs] 141s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[np] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[st] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[bs] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[st] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[bs] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[st] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[bs] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[st] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[bs] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[st] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[bs] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[st] 141s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[bs] 141s FAILED tests/test_codecs.py::test_codec_helpers[st] - AttributeError: module ... 141s FAILED tests/test_codecs.py::test_codec_helpers[bs] - AttributeError: module ... 141s FAILED tests/test_decoder_ba.py::test_float[float16] - AttributeError: module... 141s FAILED tests/test_decoder_ba.py::test_float[float32] - AttributeError: module... 141s FAILED tests/test_decoder_ba.py::test_float[float64] - AttributeError: module... 141s FAILED tests/test_decoder_np.py::test_decode_sequence - AttributeError: modul... 141s ======================= 84 failed, 1625 passed in 5.62s ======================== 141s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.OSMHRm/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 141s I: pybuild base:311: cd /tmp/autopkgtest.OSMHRm/autopkgtest_tmp/build; python3.12 -m pytest --pyargs bpack 142s ============================= test session starts ============================== 142s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 142s rootdir: /tmp/autopkgtest.OSMHRm/autopkgtest_tmp/build 142s configfile: pyproject.toml 142s plugins: typeguard-4.4.1 142s collected 1709 items 142s 142s tests/test_backends_codec.py ........................................... [ 2%] 142s ................................................................ [ 6%] 142s tests/test_codecs.py .. [ 6%] 142s tests/test_decoder_ba.py ....... [ 6%] 142s tests/test_decoder_np.py . [ 6%] 142s tests/test_desctiptor_utils.py ......................... [ 8%] 142s tests/test_field_descriptor.py ......................................... [ 10%] 142s ............... [ 11%] 143s tests/test_packbits.py ................................................. [ 14%] 143s ........................................................................ [ 18%] 143s ........................................................................ [ 22%] 143s ........................................................................ [ 27%] 143s ........................................................................ [ 31%] 143s ........................................................................ [ 35%] 144s ........................................................................ [ 39%] 144s ........................................................................ [ 43%] 144s ........................................................................ [ 48%] 144s ........................................................................ [ 52%] 144s ........................................................................ [ 56%] 144s ........................................................................ [ 60%] 145s ........................................................................ [ 65%] 145s ........................................................................ [ 69%] 145s ........................................................................ [ 73%] 145s ........................................................................ [ 77%] 145s ........................................................................ [ 81%] 145s ........................................................ [ 85%] 146s tests/test_record_descriptor.py ........................................ [ 87%] 146s ................... [ 88%] 146s tests/test_typing.py ................................................... [ 91%] 146s ........................................................................ [ 95%] 146s .................................................... [ 98%] 146s tests/test_utils.py .................... [100%] 146s 146s ============================= 1709 passed in 4.00s ============================= 146s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 146s make: *** [/tmp/wOnsj0l3U1/run:4: pybuild-autopkgtest] Error 25 146s pybuild-autopkgtest: error: /tmp/wOnsj0l3U1/run pybuild-autopkgtest returned exit code 2 146s autopkgtest [20:37:12]: test pybuild-autopkgtest: -----------------------] 147s pybuild-autopkgtest FAIL non-zero exit status 25 147s autopkgtest [20:37:13]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 147s autopkgtest [20:37:13]: @@@@@@@@@@@@@@@@@@@@ summary 147s pybuild-autopkgtest FAIL non-zero exit status 25 159s nova [W] Skipping flock for amd64 159s Creating nova instance adt-plucky-amd64-bpack-20241123-203446-juju-7f2275-prod-proposed-migration-environment-15-80593af2-6041-4733-9671-e865a0e49cbb from image adt/ubuntu-plucky-amd64-server-20241119.img (UUID 2e5306de-7efa-448c-bc27-5518979e66f0)...