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