0s autopkgtest [11:15:10]: starting date and time: 2024-11-13 11:15:10+0000 0s autopkgtest [11:15:10]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [11:15:10]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.clun_f0v/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults,src:python3-stdlib-extensions --apt-upgrade bpack --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor builder-cpu2-ram4-disk20 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-9.secgroup --name adt-plucky-i386-bpack-20241113-111509-juju-7f2275-prod-proposed-migration-environment-15-05096dbc-98ac-4e4c-89fb-0756b99637c5 --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-amd64 -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 1266s autopkgtest [11:36:16]: testbed dpkg architecture: amd64 1266s autopkgtest [11:36:16]: testbed apt version: 2.9.8 1267s autopkgtest [11:36:17]: test architecture: i386 1267s autopkgtest [11:36:17]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1268s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 1268s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 1268s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 1268s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 1268s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 1269s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [111 kB] 1269s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [65.2 kB] 1269s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [32.6 kB] 1269s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [639 kB] 1269s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [255 kB] 1269s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [37.7 kB] 1269s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [13.0 kB] 1269s Fetched 2175 kB in 1s (1642 kB/s) 1269s Reading package lists... 1271s Reading package lists... 1271s Building dependency tree... 1271s Reading state information... 1271s Calculating upgrade... 1272s The following NEW packages will be installed: 1272s python3.13-gdbm 1272s The following packages will be upgraded: 1272s libgpgme11t64 libpython3-stdlib python3 python3-gdbm python3-minimal 1272s 5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1272s Need to get 253 kB of archives. 1272s After this operation, 147 kB of additional disk space will be used. 1272s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-minimal amd64 3.12.7-1 [27.4 kB] 1272s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3 amd64 3.12.7-1 [24.0 kB] 1272s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 libpython3-stdlib amd64 3.12.7-1 [10.0 kB] 1272s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.13-gdbm amd64 3.13.0-2 [31.3 kB] 1273s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-gdbm amd64 3.12.7-1 [8642 B] 1273s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 libgpgme11t64 amd64 1.23.2-5ubuntu4 [152 kB] 1273s Fetched 253 kB in 1s (251 kB/s) 1273s (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 ... 75541 files and directories currently installed.) 1273s Preparing to unpack .../python3-minimal_3.12.7-1_amd64.deb ... 1273s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 1273s Setting up python3-minimal (3.12.7-1) ... 1273s (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 ... 75541 files and directories currently installed.) 1273s Preparing to unpack .../python3_3.12.7-1_amd64.deb ... 1273s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 1273s Preparing to unpack .../libpython3-stdlib_3.12.7-1_amd64.deb ... 1273s Unpacking libpython3-stdlib:amd64 (3.12.7-1) over (3.12.6-0ubuntu1) ... 1273s Selecting previously unselected package python3.13-gdbm. 1273s Preparing to unpack .../python3.13-gdbm_3.13.0-2_amd64.deb ... 1273s Unpacking python3.13-gdbm (3.13.0-2) ... 1273s Preparing to unpack .../python3-gdbm_3.12.7-1_amd64.deb ... 1273s Unpacking python3-gdbm:amd64 (3.12.7-1) over (3.12.6-1ubuntu1) ... 1273s Preparing to unpack .../libgpgme11t64_1.23.2-5ubuntu4_amd64.deb ... 1273s Unpacking libgpgme11t64:amd64 (1.23.2-5ubuntu4) over (1.18.0-4.1ubuntu4) ... 1273s Setting up libgpgme11t64:amd64 (1.23.2-5ubuntu4) ... 1273s Setting up python3.13-gdbm (3.13.0-2) ... 1273s Setting up libpython3-stdlib:amd64 (3.12.7-1) ... 1273s Setting up python3 (3.12.7-1) ... 1274s Setting up python3-gdbm:amd64 (3.12.7-1) ... 1274s Processing triggers for man-db (2.12.1-3) ... 1274s Processing triggers for libc-bin (2.40-1ubuntu3) ... 1274s Reading package lists... 1274s Building dependency tree... 1274s Reading state information... 1275s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1275s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 1275s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 1275s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 1275s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 1276s Reading package lists... 1276s Reading package lists... 1276s Building dependency tree... 1276s Reading state information... 1276s Calculating upgrade... 1276s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1276s Reading package lists... 1277s Building dependency tree... 1277s Reading state information... 1277s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1280s autopkgtest [11:36:30]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 1280s autopkgtest [11:36:30]: @@@@@@@@@@@@@@@@@@@@ apt-source bpack 1282s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (dsc) [3063 B] 1282s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (tar) [62.0 kB] 1282s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (diff) [3532 B] 1282s gpgv: Signature made Tue Jun 18 21:16:10 2024 UTC 1282s gpgv: using RSA key 8182DE417056408D614650D16750F10AE88D4AF1 1282s gpgv: Can't check signature: No public key 1282s dpkg-source: warning: cannot verify inline signature for ./bpack_1.1.0-2.dsc: no acceptable signature found 1282s autopkgtest [11:36:32]: testing package bpack version 1.1.0-2 1282s autopkgtest [11:36:32]: build not needed 1283s autopkgtest [11:36:33]: test pybuild-autopkgtest: preparing testbed 1285s Note, using file '/tmp/autopkgtest.KHfkqX/1-autopkgtest-satdep.dsc' to get the build dependencies 1285s Reading package lists... 1285s Building dependency tree... 1285s Reading state information... 1285s Starting pkgProblemResolver with broken count: 0 1286s Starting 2 pkgProblemResolver with broken count: 0 1286s Done 1286s The following NEW packages will be installed: 1286s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 1286s cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 1286s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz 1286s fonts-font-awesome fonts-lato g++ g++-14 g++-14-x86-64-linux-gnu 1286s g++-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu 1286s gettext intltool-debian libarchive-zip-perl libasan8 libblas3 libcc1-0 1286s libdebhelper-perl libfile-stripnondeterminism-perl libgcc-14-dev 1286s libgfortran5 libgomp1 libhwasan0 libisl23 libitm1 libjs-jquery 1286s libjs-sphinxdoc libjs-underscore libjson-perl liblapack3 liblsan0 libmpc3 1286s libpython3.13-minimal libpython3.13-stdlib libquadmath0 libstdc++-14-dev 1286s libtool libtsan2 libubsan1 m4 po-debconf pybuild-plugin-autopkgtest 1286s pybuild-plugin-pyproject python-bpack-doc python3-alabaster python3-all 1286s python3-bitarray python3-bitstruct python3-bpack python3-build 1286s python3-defusedxml python3-docutils python3-imagesize python3-iniconfig 1286s python3-installer python3-numpy python3-packaging python3-pluggy 1286s python3-pyproject-hooks python3-pytest python3-roman python3-snowballstemmer 1286s python3-sphinx python3-sphinx-rtd-theme python3-sphinxcontrib.jquery 1286s python3-toml python3-wheel python3.13 python3.13-minimal sgml-base 1286s sphinx-common sphinx-rtd-theme-common xml-core 1287s 0 upgraded, 88 newly installed, 0 to remove and 0 not upgraded. 1287s Need to get 92.1 MB of archives. 1287s After this operation, 325 MB of additional disk space will be used. 1287s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 fonts-lato all 2.015-1 [2781 kB] 1288s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 libpython3.13-minimal amd64 3.13.0-2 [879 kB] 1288s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.13-minimal amd64 3.13.0-2 [2188 kB] 1289s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 sgml-base all 1.31 [11.4 kB] 1289s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 m4 amd64 1.4.19-4build1 [244 kB] 1289s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 autoconf all 2.72-3 [382 kB] 1289s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 autotools-dev all 20220109.1 [44.9 kB] 1289s Get:8 http://ftpmaster.internal/ubuntu plucky/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 1289s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 autopoint all 0.22.5-2 [616 kB] 1289s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 libisl23 amd64 0.27-1 [685 kB] 1289s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 libmpc3 amd64 1.3.1-1build2 [55.3 kB] 1289s Get:12 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-14-x86-64-linux-gnu amd64 14.2.0-8ubuntu1 [11.9 MB] 1290s Get:13 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-14 amd64 14.2.0-8ubuntu1 [1030 B] 1290s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [5452 B] 1290s Get:15 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp amd64 4:14.1.0-2ubuntu1 [22.4 kB] 1290s Get:16 http://ftpmaster.internal/ubuntu plucky/main amd64 libcc1-0 amd64 14.2.0-8ubuntu1 [47.6 kB] 1290s Get:17 http://ftpmaster.internal/ubuntu plucky/main amd64 libgomp1 amd64 14.2.0-8ubuntu1 [148 kB] 1290s Get:18 http://ftpmaster.internal/ubuntu plucky/main amd64 libitm1 amd64 14.2.0-8ubuntu1 [29.1 kB] 1290s Get:19 http://ftpmaster.internal/ubuntu plucky/main amd64 libasan8 amd64 14.2.0-8ubuntu1 [2998 kB] 1290s Get:20 http://ftpmaster.internal/ubuntu plucky/main amd64 liblsan0 amd64 14.2.0-8ubuntu1 [1317 kB] 1290s Get:21 http://ftpmaster.internal/ubuntu plucky/main amd64 libtsan2 amd64 14.2.0-8ubuntu1 [2732 kB] 1290s Get:22 http://ftpmaster.internal/ubuntu plucky/main amd64 libubsan1 amd64 14.2.0-8ubuntu1 [1177 kB] 1290s Get:23 http://ftpmaster.internal/ubuntu plucky/main amd64 libhwasan0 amd64 14.2.0-8ubuntu1 [1634 kB] 1291s Get:24 http://ftpmaster.internal/ubuntu plucky/main amd64 libquadmath0 amd64 14.2.0-8ubuntu1 [153 kB] 1291s Get:25 http://ftpmaster.internal/ubuntu plucky/main amd64 libgcc-14-dev amd64 14.2.0-8ubuntu1 [2814 kB] 1291s Get:26 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-14-x86-64-linux-gnu amd64 14.2.0-8ubuntu1 [23.3 MB] 1292s Get:27 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-14 amd64 14.2.0-8ubuntu1 [528 kB] 1292s Get:28 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [1214 B] 1292s Get:29 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc amd64 4:14.1.0-2ubuntu1 [5000 B] 1292s Get:30 http://ftpmaster.internal/ubuntu plucky/main amd64 libstdc++-14-dev amd64 14.2.0-8ubuntu1 [2504 kB] 1292s Get:31 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-14-x86-64-linux-gnu amd64 14.2.0-8ubuntu1 [13.3 MB] 1292s Get:32 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-14 amd64 14.2.0-8ubuntu1 [19.9 kB] 1292s Get:33 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [966 B] 1292s Get:34 http://ftpmaster.internal/ubuntu plucky/main amd64 g++ amd64 4:14.1.0-2ubuntu1 [1100 B] 1292s Get:35 http://ftpmaster.internal/ubuntu plucky/main amd64 build-essential amd64 12.10ubuntu1 [4928 B] 1292s Get:36 http://ftpmaster.internal/ubuntu plucky/main amd64 libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 1292s Get:37 http://ftpmaster.internal/ubuntu plucky/main amd64 libtool all 2.4.7-7build1 [166 kB] 1292s Get:38 http://ftpmaster.internal/ubuntu plucky/main amd64 dh-autoreconf all 20 [16.1 kB] 1292s Get:39 http://ftpmaster.internal/ubuntu plucky/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 1292s Get:40 http://ftpmaster.internal/ubuntu plucky/main amd64 libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 1292s Get:41 http://ftpmaster.internal/ubuntu plucky/main amd64 dh-strip-nondeterminism all 1.14.0-1 [5058 B] 1292s Get:42 http://ftpmaster.internal/ubuntu plucky/main amd64 debugedit amd64 1:5.1-1 [46.9 kB] 1292s Get:43 http://ftpmaster.internal/ubuntu plucky/main amd64 dwz amd64 0.15-1build6 [115 kB] 1292s Get:44 http://ftpmaster.internal/ubuntu plucky/main amd64 gettext amd64 0.22.5-2 [948 kB] 1292s Get:45 http://ftpmaster.internal/ubuntu plucky/main amd64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 1292s Get:46 http://ftpmaster.internal/ubuntu plucky/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] 1292s Get:47 http://ftpmaster.internal/ubuntu plucky/main amd64 debhelper all 13.20ubuntu1 [893 kB] 1292s Get:48 http://ftpmaster.internal/ubuntu plucky/universe amd64 dh-python all 6.20241024 [112 kB] 1292s Get:49 http://ftpmaster.internal/ubuntu plucky/main amd64 xml-core all 0.19 [20.3 kB] 1292s Get:50 http://ftpmaster.internal/ubuntu plucky/main amd64 docutils-common all 0.21.2+dfsg-2 [131 kB] 1292s Get:51 http://ftpmaster.internal/ubuntu plucky/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 1292s Get:52 http://ftpmaster.internal/ubuntu plucky/main amd64 libblas3 amd64 3.12.0-3build2 [247 kB] 1292s Get:53 http://ftpmaster.internal/ubuntu plucky/main amd64 libgfortran5 amd64 14.2.0-8ubuntu1 [909 kB] 1292s Get:54 http://ftpmaster.internal/ubuntu plucky/main amd64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 1292s Get:55 http://ftpmaster.internal/ubuntu plucky/main amd64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 1293s Get:56 http://ftpmaster.internal/ubuntu plucky/main amd64 libjs-sphinxdoc all 7.4.7-4 [158 kB] 1293s Get:57 http://ftpmaster.internal/ubuntu plucky/main amd64 libjson-perl all 4.10000-1 [81.9 kB] 1293s Get:58 http://ftpmaster.internal/ubuntu plucky/main amd64 liblapack3 amd64 3.12.0-3build2 [2668 kB] 1293s Get:59 http://ftpmaster.internal/ubuntu plucky/main amd64 libpython3.13-stdlib amd64 3.13.0-2 [2107 kB] 1293s Get:60 http://ftpmaster.internal/ubuntu plucky/universe amd64 pybuild-plugin-autopkgtest all 6.20241024 [1746 B] 1293s Get:61 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-packaging all 24.1-1 [41.4 kB] 1293s Get:62 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 1293s Get:63 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-toml all 0.10.2-1 [16.5 kB] 1293s Get:64 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-wheel all 0.44.0-1 [54.2 kB] 1293s Get:65 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-build all 1.2.2-1 [31.0 kB] 1293s Get:66 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 1293s Get:67 http://ftpmaster.internal/ubuntu plucky/universe amd64 pybuild-plugin-pyproject all 6.20241024 [1728 B] 1293s Get:68 http://ftpmaster.internal/ubuntu plucky/main amd64 sphinx-rtd-theme-common all 3.0.1+dfsg-1 [1012 kB] 1293s Get:69 http://ftpmaster.internal/ubuntu plucky/universe amd64 python-bpack-doc all 1.1.0-2 [100 kB] 1293s Get:70 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.13 amd64 3.13.0-2 [719 kB] 1293s Get:71 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-all amd64 3.12.7-1 [890 B] 1293s Get:72 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bitarray amd64 2.9.2-1build1 [149 kB] 1293s Get:73 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bitstruct amd64 8.19.0-1 [24.7 kB] 1293s Get:74 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bpack all 1.1.0-2 [34.5 kB] 1293s Get:75 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-defusedxml all 0.7.1-2 [42.0 kB] 1293s Get:76 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-roman all 4.2-1 [10.0 kB] 1293s Get:77 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-docutils all 0.21.2+dfsg-2 [409 kB] 1293s Get:78 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-imagesize all 1.4.1-1 [6844 B] 1293s Get:79 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 1293s Get:80 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-numpy amd64 1:1.26.4+ds-11build1 [4479 kB] 1293s Get:81 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 1293s Get:82 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest all 8.3.3-1 [251 kB] 1293s Get:83 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 1293s Get:84 http://ftpmaster.internal/ubuntu plucky/main amd64 sphinx-common all 7.4.7-4 [775 kB] 1293s Get:85 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-alabaster all 0.7.16-0.1 [18.5 kB] 1293s Get:86 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-sphinx all 7.4.7-4 [593 kB] 1293s Get:87 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-sphinxcontrib.jquery all 4.1-5 [6678 B] 1293s Get:88 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-sphinx-rtd-theme all 3.0.1+dfsg-1 [23.5 kB] 1293s Fetched 92.1 MB in 7s (12.8 MB/s) 1293s Selecting previously unselected package fonts-lato. 1293s (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 ... 75548 files and directories currently installed.) 1293s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 1293s Unpacking fonts-lato (2.015-1) ... 1293s Selecting previously unselected package libpython3.13-minimal:amd64. 1293s Preparing to unpack .../01-libpython3.13-minimal_3.13.0-2_amd64.deb ... 1293s Unpacking libpython3.13-minimal:amd64 (3.13.0-2) ... 1294s Selecting previously unselected package python3.13-minimal. 1294s Preparing to unpack .../02-python3.13-minimal_3.13.0-2_amd64.deb ... 1294s Unpacking python3.13-minimal (3.13.0-2) ... 1294s Selecting previously unselected package sgml-base. 1294s Preparing to unpack .../03-sgml-base_1.31_all.deb ... 1294s Unpacking sgml-base (1.31) ... 1294s Selecting previously unselected package m4. 1294s Preparing to unpack .../04-m4_1.4.19-4build1_amd64.deb ... 1294s Unpacking m4 (1.4.19-4build1) ... 1294s Selecting previously unselected package autoconf. 1294s Preparing to unpack .../05-autoconf_2.72-3_all.deb ... 1294s Unpacking autoconf (2.72-3) ... 1294s Selecting previously unselected package autotools-dev. 1294s Preparing to unpack .../06-autotools-dev_20220109.1_all.deb ... 1294s Unpacking autotools-dev (20220109.1) ... 1294s Selecting previously unselected package automake. 1294s Preparing to unpack .../07-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 1294s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 1294s Selecting previously unselected package autopoint. 1294s Preparing to unpack .../08-autopoint_0.22.5-2_all.deb ... 1294s Unpacking autopoint (0.22.5-2) ... 1294s Selecting previously unselected package libisl23:amd64. 1294s Preparing to unpack .../09-libisl23_0.27-1_amd64.deb ... 1294s Unpacking libisl23:amd64 (0.27-1) ... 1294s Selecting previously unselected package libmpc3:amd64. 1294s Preparing to unpack .../10-libmpc3_1.3.1-1build2_amd64.deb ... 1294s Unpacking libmpc3:amd64 (1.3.1-1build2) ... 1294s Selecting previously unselected package cpp-14-x86-64-linux-gnu. 1294s Preparing to unpack .../11-cpp-14-x86-64-linux-gnu_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking cpp-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package cpp-14. 1294s Preparing to unpack .../12-cpp-14_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking cpp-14 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package cpp-x86-64-linux-gnu. 1294s Preparing to unpack .../13-cpp-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 1294s Unpacking cpp-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 1294s Selecting previously unselected package cpp. 1294s Preparing to unpack .../14-cpp_4%3a14.1.0-2ubuntu1_amd64.deb ... 1294s Unpacking cpp (4:14.1.0-2ubuntu1) ... 1294s Selecting previously unselected package libcc1-0:amd64. 1294s Preparing to unpack .../15-libcc1-0_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libcc1-0:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libgomp1:amd64. 1294s Preparing to unpack .../16-libgomp1_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libgomp1:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libitm1:amd64. 1294s Preparing to unpack .../17-libitm1_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libitm1:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libasan8:amd64. 1294s Preparing to unpack .../18-libasan8_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libasan8:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package liblsan0:amd64. 1294s Preparing to unpack .../19-liblsan0_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking liblsan0:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libtsan2:amd64. 1294s Preparing to unpack .../20-libtsan2_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libtsan2:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libubsan1:amd64. 1294s Preparing to unpack .../21-libubsan1_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libubsan1:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libhwasan0:amd64. 1294s Preparing to unpack .../22-libhwasan0_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libhwasan0:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libquadmath0:amd64. 1294s Preparing to unpack .../23-libquadmath0_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libquadmath0:amd64 (14.2.0-8ubuntu1) ... 1294s Selecting previously unselected package libgcc-14-dev:amd64. 1294s Preparing to unpack .../24-libgcc-14-dev_14.2.0-8ubuntu1_amd64.deb ... 1294s Unpacking libgcc-14-dev:amd64 (14.2.0-8ubuntu1) ... 1295s Selecting previously unselected package gcc-14-x86-64-linux-gnu. 1295s Preparing to unpack .../25-gcc-14-x86-64-linux-gnu_14.2.0-8ubuntu1_amd64.deb ... 1295s Unpacking gcc-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 1295s Selecting previously unselected package gcc-14. 1295s Preparing to unpack .../26-gcc-14_14.2.0-8ubuntu1_amd64.deb ... 1295s Unpacking gcc-14 (14.2.0-8ubuntu1) ... 1295s Selecting previously unselected package gcc-x86-64-linux-gnu. 1295s Preparing to unpack .../27-gcc-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 1295s Unpacking gcc-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 1295s Selecting previously unselected package gcc. 1295s Preparing to unpack .../28-gcc_4%3a14.1.0-2ubuntu1_amd64.deb ... 1295s Unpacking gcc (4:14.1.0-2ubuntu1) ... 1295s Selecting previously unselected package libstdc++-14-dev:amd64. 1295s Preparing to unpack .../29-libstdc++-14-dev_14.2.0-8ubuntu1_amd64.deb ... 1295s Unpacking libstdc++-14-dev:amd64 (14.2.0-8ubuntu1) ... 1295s Selecting previously unselected package g++-14-x86-64-linux-gnu. 1295s Preparing to unpack .../30-g++-14-x86-64-linux-gnu_14.2.0-8ubuntu1_amd64.deb ... 1295s Unpacking g++-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 1295s Selecting previously unselected package g++-14. 1295s Preparing to unpack .../31-g++-14_14.2.0-8ubuntu1_amd64.deb ... 1295s Unpacking g++-14 (14.2.0-8ubuntu1) ... 1295s Selecting previously unselected package g++-x86-64-linux-gnu. 1295s Preparing to unpack .../32-g++-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 1295s Unpacking g++-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 1295s Selecting previously unselected package g++. 1295s Preparing to unpack .../33-g++_4%3a14.1.0-2ubuntu1_amd64.deb ... 1295s Unpacking g++ (4:14.1.0-2ubuntu1) ... 1295s Selecting previously unselected package build-essential. 1295s Preparing to unpack .../34-build-essential_12.10ubuntu1_amd64.deb ... 1295s Unpacking build-essential (12.10ubuntu1) ... 1295s Selecting previously unselected package libdebhelper-perl. 1295s Preparing to unpack .../35-libdebhelper-perl_13.20ubuntu1_all.deb ... 1295s Unpacking libdebhelper-perl (13.20ubuntu1) ... 1295s Selecting previously unselected package libtool. 1295s Preparing to unpack .../36-libtool_2.4.7-7build1_all.deb ... 1295s Unpacking libtool (2.4.7-7build1) ... 1295s Selecting previously unselected package dh-autoreconf. 1295s Preparing to unpack .../37-dh-autoreconf_20_all.deb ... 1295s Unpacking dh-autoreconf (20) ... 1295s Selecting previously unselected package libarchive-zip-perl. 1295s Preparing to unpack .../38-libarchive-zip-perl_1.68-1_all.deb ... 1295s Unpacking libarchive-zip-perl (1.68-1) ... 1295s Selecting previously unselected package libfile-stripnondeterminism-perl. 1295s Preparing to unpack .../39-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 1295s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 1295s Selecting previously unselected package dh-strip-nondeterminism. 1295s Preparing to unpack .../40-dh-strip-nondeterminism_1.14.0-1_all.deb ... 1295s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 1295s Selecting previously unselected package debugedit. 1295s Preparing to unpack .../41-debugedit_1%3a5.1-1_amd64.deb ... 1295s Unpacking debugedit (1:5.1-1) ... 1295s Selecting previously unselected package dwz. 1295s Preparing to unpack .../42-dwz_0.15-1build6_amd64.deb ... 1295s Unpacking dwz (0.15-1build6) ... 1295s Selecting previously unselected package gettext. 1295s Preparing to unpack .../43-gettext_0.22.5-2_amd64.deb ... 1295s Unpacking gettext (0.22.5-2) ... 1296s Selecting previously unselected package intltool-debian. 1296s Preparing to unpack .../44-intltool-debian_0.35.0+20060710.6_all.deb ... 1296s Unpacking intltool-debian (0.35.0+20060710.6) ... 1296s Selecting previously unselected package po-debconf. 1296s Preparing to unpack .../45-po-debconf_1.0.21+nmu1_all.deb ... 1296s Unpacking po-debconf (1.0.21+nmu1) ... 1296s Selecting previously unselected package debhelper. 1296s Preparing to unpack .../46-debhelper_13.20ubuntu1_all.deb ... 1296s Unpacking debhelper (13.20ubuntu1) ... 1296s Selecting previously unselected package dh-python. 1296s Preparing to unpack .../47-dh-python_6.20241024_all.deb ... 1296s Unpacking dh-python (6.20241024) ... 1296s Selecting previously unselected package xml-core. 1296s Preparing to unpack .../48-xml-core_0.19_all.deb ... 1296s Unpacking xml-core (0.19) ... 1296s Selecting previously unselected package docutils-common. 1296s Preparing to unpack .../49-docutils-common_0.21.2+dfsg-2_all.deb ... 1296s Unpacking docutils-common (0.21.2+dfsg-2) ... 1296s Selecting previously unselected package fonts-font-awesome. 1296s Preparing to unpack .../50-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 1296s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 1296s Selecting previously unselected package libblas3:amd64. 1296s Preparing to unpack .../51-libblas3_3.12.0-3build2_amd64.deb ... 1296s Unpacking libblas3:amd64 (3.12.0-3build2) ... 1296s Selecting previously unselected package libgfortran5:amd64. 1296s Preparing to unpack .../52-libgfortran5_14.2.0-8ubuntu1_amd64.deb ... 1296s Unpacking libgfortran5:amd64 (14.2.0-8ubuntu1) ... 1296s Selecting previously unselected package libjs-jquery. 1296s Preparing to unpack .../53-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 1296s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 1296s Selecting previously unselected package libjs-underscore. 1296s Preparing to unpack .../54-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 1296s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 1296s Selecting previously unselected package libjs-sphinxdoc. 1296s Preparing to unpack .../55-libjs-sphinxdoc_7.4.7-4_all.deb ... 1296s Unpacking libjs-sphinxdoc (7.4.7-4) ... 1296s Selecting previously unselected package libjson-perl. 1296s Preparing to unpack .../56-libjson-perl_4.10000-1_all.deb ... 1296s Unpacking libjson-perl (4.10000-1) ... 1296s Selecting previously unselected package liblapack3:amd64. 1296s Preparing to unpack .../57-liblapack3_3.12.0-3build2_amd64.deb ... 1296s Unpacking liblapack3:amd64 (3.12.0-3build2) ... 1296s Selecting previously unselected package libpython3.13-stdlib:amd64. 1296s Preparing to unpack .../58-libpython3.13-stdlib_3.13.0-2_amd64.deb ... 1296s Unpacking libpython3.13-stdlib:amd64 (3.13.0-2) ... 1296s Selecting previously unselected package pybuild-plugin-autopkgtest. 1296s Preparing to unpack .../59-pybuild-plugin-autopkgtest_6.20241024_all.deb ... 1296s Unpacking pybuild-plugin-autopkgtest (6.20241024) ... 1296s Selecting previously unselected package python3-packaging. 1296s Preparing to unpack .../60-python3-packaging_24.1-1_all.deb ... 1296s Unpacking python3-packaging (24.1-1) ... 1296s Selecting previously unselected package python3-pyproject-hooks. 1296s Preparing to unpack .../61-python3-pyproject-hooks_1.2.0-1_all.deb ... 1296s Unpacking python3-pyproject-hooks (1.2.0-1) ... 1296s Selecting previously unselected package python3-toml. 1296s Preparing to unpack .../62-python3-toml_0.10.2-1_all.deb ... 1296s Unpacking python3-toml (0.10.2-1) ... 1296s Selecting previously unselected package python3-wheel. 1296s Preparing to unpack .../63-python3-wheel_0.44.0-1_all.deb ... 1296s Unpacking python3-wheel (0.44.0-1) ... 1296s Selecting previously unselected package python3-build. 1296s Preparing to unpack .../64-python3-build_1.2.2-1_all.deb ... 1296s Unpacking python3-build (1.2.2-1) ... 1296s Selecting previously unselected package python3-installer. 1296s Preparing to unpack .../65-python3-installer_0.7.0+dfsg1-3_all.deb ... 1296s Unpacking python3-installer (0.7.0+dfsg1-3) ... 1296s Selecting previously unselected package pybuild-plugin-pyproject. 1296s Preparing to unpack .../66-pybuild-plugin-pyproject_6.20241024_all.deb ... 1296s Unpacking pybuild-plugin-pyproject (6.20241024) ... 1296s Selecting previously unselected package sphinx-rtd-theme-common. 1296s Preparing to unpack .../67-sphinx-rtd-theme-common_3.0.1+dfsg-1_all.deb ... 1296s Unpacking sphinx-rtd-theme-common (3.0.1+dfsg-1) ... 1296s Selecting previously unselected package python-bpack-doc. 1296s Preparing to unpack .../68-python-bpack-doc_1.1.0-2_all.deb ... 1296s Unpacking python-bpack-doc (1.1.0-2) ... 1296s Selecting previously unselected package python3.13. 1296s Preparing to unpack .../69-python3.13_3.13.0-2_amd64.deb ... 1296s Unpacking python3.13 (3.13.0-2) ... 1296s Selecting previously unselected package python3-all. 1296s Preparing to unpack .../70-python3-all_3.12.7-1_amd64.deb ... 1296s Unpacking python3-all (3.12.7-1) ... 1296s Selecting previously unselected package python3-bitarray. 1296s Preparing to unpack .../71-python3-bitarray_2.9.2-1build1_amd64.deb ... 1296s Unpacking python3-bitarray (2.9.2-1build1) ... 1296s Selecting previously unselected package python3-bitstruct. 1296s Preparing to unpack .../72-python3-bitstruct_8.19.0-1_amd64.deb ... 1296s Unpacking python3-bitstruct (8.19.0-1) ... 1296s Selecting previously unselected package python3-bpack. 1296s Preparing to unpack .../73-python3-bpack_1.1.0-2_all.deb ... 1296s Unpacking python3-bpack (1.1.0-2) ... 1296s Selecting previously unselected package python3-defusedxml. 1296s Preparing to unpack .../74-python3-defusedxml_0.7.1-2_all.deb ... 1296s Unpacking python3-defusedxml (0.7.1-2) ... 1296s Selecting previously unselected package python3-roman. 1296s Preparing to unpack .../75-python3-roman_4.2-1_all.deb ... 1296s Unpacking python3-roman (4.2-1) ... 1296s Selecting previously unselected package python3-docutils. 1296s Preparing to unpack .../76-python3-docutils_0.21.2+dfsg-2_all.deb ... 1296s Unpacking python3-docutils (0.21.2+dfsg-2) ... 1296s Selecting previously unselected package python3-imagesize. 1296s Preparing to unpack .../77-python3-imagesize_1.4.1-1_all.deb ... 1296s Unpacking python3-imagesize (1.4.1-1) ... 1296s Selecting previously unselected package python3-iniconfig. 1297s Preparing to unpack .../78-python3-iniconfig_1.1.1-2_all.deb ... 1297s Unpacking python3-iniconfig (1.1.1-2) ... 1297s Selecting previously unselected package python3-numpy. 1297s Preparing to unpack .../79-python3-numpy_1%3a1.26.4+ds-11build1_amd64.deb ... 1297s Unpacking python3-numpy (1:1.26.4+ds-11build1) ... 1297s Selecting previously unselected package python3-pluggy. 1297s Preparing to unpack .../80-python3-pluggy_1.5.0-1_all.deb ... 1297s Unpacking python3-pluggy (1.5.0-1) ... 1297s Selecting previously unselected package python3-pytest. 1297s Preparing to unpack .../81-python3-pytest_8.3.3-1_all.deb ... 1297s Unpacking python3-pytest (8.3.3-1) ... 1297s Selecting previously unselected package python3-snowballstemmer. 1297s Preparing to unpack .../82-python3-snowballstemmer_2.2.0-4build1_all.deb ... 1297s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 1297s Selecting previously unselected package sphinx-common. 1297s Preparing to unpack .../83-sphinx-common_7.4.7-4_all.deb ... 1297s Unpacking sphinx-common (7.4.7-4) ... 1297s Selecting previously unselected package python3-alabaster. 1297s Preparing to unpack .../84-python3-alabaster_0.7.16-0.1_all.deb ... 1297s Unpacking python3-alabaster (0.7.16-0.1) ... 1297s Selecting previously unselected package python3-sphinx. 1297s Preparing to unpack .../85-python3-sphinx_7.4.7-4_all.deb ... 1297s Unpacking python3-sphinx (7.4.7-4) ... 1297s Selecting previously unselected package python3-sphinxcontrib.jquery. 1297s Preparing to unpack .../86-python3-sphinxcontrib.jquery_4.1-5_all.deb ... 1297s Unpacking python3-sphinxcontrib.jquery (4.1-5) ... 1297s Selecting previously unselected package python3-sphinx-rtd-theme. 1297s Preparing to unpack .../87-python3-sphinx-rtd-theme_3.0.1+dfsg-1_all.deb ... 1297s Unpacking python3-sphinx-rtd-theme (3.0.1+dfsg-1) ... 1297s Setting up dh-python (6.20241024) ... 1297s Setting up python3-iniconfig (1.1.1-2) ... 1297s Setting up fonts-lato (2.015-1) ... 1297s Setting up python3-defusedxml (0.7.1-2) ... 1297s Setting up libarchive-zip-perl (1.68-1) ... 1297s Setting up python3-alabaster (0.7.16-0.1) ... 1298s Setting up libdebhelper-perl (13.20ubuntu1) ... 1298s Setting up m4 (1.4.19-4build1) ... 1298s Setting up libgomp1:amd64 (14.2.0-8ubuntu1) ... 1298s Setting up python3-wheel (0.44.0-1) ... 1298s Setting up python3-bpack (1.1.0-2) ... 1298s Setting up libpython3.13-minimal:amd64 (3.13.0-2) ... 1298s Setting up python3-bitarray (2.9.2-1build1) ... 1298s Setting up python3-roman (4.2-1) ... 1298s Setting up autotools-dev (20220109.1) ... 1298s Setting up libblas3:amd64 (3.12.0-3build2) ... 1298s 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 1298s Setting up python3-packaging (24.1-1) ... 1299s Setting up python3-pyproject-hooks (1.2.0-1) ... 1299s Setting up python3-snowballstemmer (2.2.0-4build1) ... 1299s Setting up libquadmath0:amd64 (14.2.0-8ubuntu1) ... 1299s Setting up libmpc3:amd64 (1.3.1-1build2) ... 1299s Setting up autopoint (0.22.5-2) ... 1299s Setting up python3-toml (0.10.2-1) ... 1299s Setting up python3-installer (0.7.0+dfsg1-3) ... 1299s Setting up libgfortran5:amd64 (14.2.0-8ubuntu1) ... 1299s Setting up python3-bitstruct (8.19.0-1) ... 1300s Setting up autoconf (2.72-3) ... 1300s Setting up python3-pluggy (1.5.0-1) ... 1300s Setting up libubsan1:amd64 (14.2.0-8ubuntu1) ... 1300s Setting up dwz (0.15-1build6) ... 1300s Setting up libhwasan0:amd64 (14.2.0-8ubuntu1) ... 1300s Setting up libasan8:amd64 (14.2.0-8ubuntu1) ... 1300s Setting up libjson-perl (4.10000-1) ... 1300s Setting up debugedit (1:5.1-1) ... 1300s Setting up python3.13-minimal (3.13.0-2) ... 1300s Setting up sgml-base (1.31) ... 1300s Setting up libtsan2:amd64 (14.2.0-8ubuntu1) ... 1300s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 1300s Setting up libisl23:amd64 (0.27-1) ... 1300s Setting up python3-build (1.2.2-1) ... 1300s Setting up libpython3.13-stdlib:amd64 (3.13.0-2) ... 1300s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 1301s Setting up sphinx-rtd-theme-common (3.0.1+dfsg-1) ... 1301s Setting up libcc1-0:amd64 (14.2.0-8ubuntu1) ... 1301s Setting up liblsan0:amd64 (14.2.0-8ubuntu1) ... 1301s Setting up libitm1:amd64 (14.2.0-8ubuntu1) ... 1301s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 1301s Setting up python3-imagesize (1.4.1-1) ... 1301s Setting up automake (1:1.16.5-1.3ubuntu1) ... 1301s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 1301s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 1301s Setting up liblapack3:amd64 (3.12.0-3build2) ... 1301s 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 1301s Setting up gettext (0.22.5-2) ... 1301s Setting up python3.13 (3.13.0-2) ... 1301s Setting up pybuild-plugin-pyproject (6.20241024) ... 1301s Setting up python3-pytest (8.3.3-1) ... 1302s Setting up python3-all (3.12.7-1) ... 1302s Setting up intltool-debian (0.35.0+20060710.6) ... 1302s Setting up cpp-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 1302s Setting up python3-numpy (1:1.26.4+ds-11build1) ... 1305s Setting up libjs-sphinxdoc (7.4.7-4) ... 1305s Setting up cpp-14 (14.2.0-8ubuntu1) ... 1305s Setting up dh-strip-nondeterminism (1.14.0-1) ... 1305s Setting up xml-core (0.19) ... 1305s Setting up libgcc-14-dev:amd64 (14.2.0-8ubuntu1) ... 1305s Setting up libstdc++-14-dev:amd64 (14.2.0-8ubuntu1) ... 1305s Setting up cpp-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 1305s Setting up po-debconf (1.0.21+nmu1) ... 1305s Setting up python-bpack-doc (1.1.0-2) ... 1305s Setting up sphinx-common (7.4.7-4) ... 1305s Setting up cpp (4:14.1.0-2ubuntu1) ... 1305s Setting up gcc-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 1305s Setting up gcc-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 1305s Setting up gcc-14 (14.2.0-8ubuntu1) ... 1305s Setting up g++-14-x86-64-linux-gnu (14.2.0-8ubuntu1) ... 1305s Setting up g++-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 1305s Setting up g++-14 (14.2.0-8ubuntu1) ... 1305s Setting up libtool (2.4.7-7build1) ... 1305s Setting up gcc (4:14.1.0-2ubuntu1) ... 1305s Setting up dh-autoreconf (20) ... 1305s Setting up g++ (4:14.1.0-2ubuntu1) ... 1305s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 1305s Setting up build-essential (12.10ubuntu1) ... 1305s Setting up debhelper (13.20ubuntu1) ... 1305s Setting up pybuild-plugin-autopkgtest (6.20241024) ... 1305s Processing triggers for install-info (7.1.1-1) ... 1305s Processing triggers for libc-bin (2.40-1ubuntu3) ... 1305s Processing triggers for systemd (256.5-2ubuntu4) ... 1305s Processing triggers for man-db (2.12.1-3) ... 1307s Processing triggers for sgml-base (1.31) ... 1307s Setting up docutils-common (0.21.2+dfsg-2) ... 1307s Processing triggers for sgml-base (1.31) ... 1307s Setting up python3-docutils (0.21.2+dfsg-2) ... 1307s Setting up python3-sphinx (7.4.7-4) ... 1308s Setting up python3-sphinxcontrib.jquery (4.1-5) ... 1308s Setting up python3-sphinx-rtd-theme (3.0.1+dfsg-1) ... 1311s Reading package lists... 1311s Building dependency tree... 1311s Reading state information... 1311s Starting pkgProblemResolver with broken count: 0 1311s Starting 2 pkgProblemResolver with broken count: 0 1311s Done 1311s The following NEW packages will be installed: 1311s autopkgtest-satdep 1311s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1311s Need to get 0 B/700 B of archives. 1311s After this operation, 0 B of additional disk space will be used. 1311s Get:1 /tmp/autopkgtest.KHfkqX/2-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [700 B] 1311s Selecting previously unselected package autopkgtest-satdep. 1311s (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 ... 81590 files and directories currently installed.) 1311s Preparing to unpack .../2-autopkgtest-satdep.deb ... 1311s Unpacking autopkgtest-satdep (0) ... 1312s Setting up autopkgtest-satdep (0) ... 1313s (Reading database ... 81590 files and directories currently installed.) 1313s Removing autopkgtest-satdep (0) ... 1314s autopkgtest [11:37:04]: test pybuild-autopkgtest: pybuild-autopkgtest 1314s autopkgtest [11:37:04]: test pybuild-autopkgtest: [----------------------- 1314s pybuild-autopkgtest 1315s I: pybuild base:311: cd /tmp/autopkgtest.KHfkqX/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 1315s ============================= test session starts ============================== 1315s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 1315s rootdir: /tmp/autopkgtest.KHfkqX/autopkgtest_tmp/build 1315s configfile: pyproject.toml 1315s plugins: typeguard-4.4.1 1315s collected 1701 items / 2 skipped 1315s 1316s tests/test_backends_codec.py .s.sFsFs..ss....sFFssFFFFs..ss....FFssFFFFF [ 2%] 1317s sFFsFs.s.sFsFsFFFsF.s.sFsFsFFsFFFFFFsFFsFFsFFsFFsFFsFFFFFFFFFFFF [ 6%] 1317s tests/test_codecs.py FF [ 6%] 1317s tests/test_desctiptor_utils.py ......................... [ 7%] 1317s tests/test_field_descriptor.py ......................................... [ 10%] 1317s ............... [ 11%] 1317s tests/test_packbits.py .........s.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss [ 14%] 1317s .sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 18%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 22%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 26%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 30%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 35%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 39%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 43%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 47%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 52%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 56%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 60%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 64%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 69%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 73%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 77%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 81%] 1317s ssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 85%] 1318s tests/test_record_descriptor.py ........................................ [ 87%] 1318s ................... [ 88%] 1318s tests/test_typing.py ................................................... [ 91%] 1318s ........................................................................ [ 95%] 1318s .................................................... [ 98%] 1318s tests/test_utils.py .................... [100%] 1318s 1318s =================================== FAILURES =================================== 1318s ________________________________ test_attrs[bs] ________________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 1318s def test_attrs(backend): 1318s codec = getattr(backend, "codec", backend.decoder) 1318s 1318s > @codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________________________________ test_attrs[st] ________________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 1318s def test_attrs(backend): 1318s codec = getattr(backend, "codec", backend.decoder) 1318s 1318s > @codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_decoder_func[st BE] ___________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_ba, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="ba BE MSB", 1318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 1318s decoded_data = Record() 1318s 1318s > record_type = backend.decoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_decoder_func[st LE] ___________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_ba, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="ba BE MSB", 1318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 1318s decoded_data = Record() 1318s 1318s > record_type = backend.decoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_decoder_func[bs BE MSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_ba, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="ba BE MSB", 1318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 1318s decoded_data = Record() 1318s 1318s > record_type = backend.decoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_decoder_func[bs LE MSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_ba, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="ba BE MSB", 1318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 1318s decoded_data = Record() 1318s 1318s > record_type = backend.decoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_decoder_func[bs BE LSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_ba, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="ba BE MSB", 1318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 1318s decoded_data = Record() 1318s 1318s > record_type = backend.decoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_decoder_func[bs LE LSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_ba, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="ba BE MSB", 1318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 1318s decoded_data = Record() 1318s 1318s > record_type = backend.decoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_encoder_func[st BE] ___________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 1318s record = Record() 1318s 1318s > record_type = backend.encoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_encoder_func[st LE] ___________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 1318s record = Record() 1318s 1318s > record_type = backend.encoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_encoder_func[bs BE MSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 1318s record = Record() 1318s 1318s > record_type = backend.encoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_encoder_func[bs LE MSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 1318s record = Record() 1318s 1318s > record_type = backend.encoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_encoder_func[bs BE LSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 1318s record = Record() 1318s 1318s > record_type = backend.encoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_encoder_func[bs LE LSB] _________________________ 1318s 1318s backend = 1318s Record = 1318s 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' 1318s 1318s @pytest.mark.parametrize( 1318s "backend, Record, encoded_data", 1318s [ 1318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 1318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordBe, 1318s BYTE_ENCODED_DATA_BE, 1318s id="np BE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s ByteRecordLe, 1318s BYTE_ENCODED_DATA_LE, 1318s id="np LE", 1318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeMsb, 1318s BIT_ENCODED_DATA_BE_MSB, 1318s id="bs BE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeMsb, 1318s BIT_ENCODED_DATA_LE_MSB, 1318s id="bs LE MSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordBeLsb, 1318s BIT_ENCODED_DATA_BE_LSB, 1318s id="bs BE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_bs, 1318s BitRecordLeLsb, 1318s BIT_ENCODED_DATA_LE_LSB, 1318s id="bs LE LSB", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 1318s record = Record() 1318s 1318s > record_type = backend.encoder(Record) 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________ test_bit_decoder_decorator_frombytes[bs] ___________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", BITS_BACKENDS) 1318s def test_bit_decoder_decorator_frombytes(backend): 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:747: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ____________________ test_bit_encoder_decorator_tobytes[bs] ____________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ) 1318s ], 1318s ) 1318s def test_bit_encoder_decorator_tobytes(backend): 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:783: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s __________________ test_byte_decoder_decorator_frombytes[st] ___________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 1318s def test_byte_decoder_decorator_frombytes(backend): 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:805: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________ test_byte_encoder_decorator_tobytes[st] ____________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 1318s def test_byte_encoder_decorator_tobytes(backend): 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:825: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ test_byte_decoder_native_byteorder_frombytes[st] _______________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 1318s def test_byte_decoder_native_byteorder_frombytes(backend): 1318s size = 4 1318s value = 1 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:862: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________________ test_byte_encoder_native_byteorder_tobytes[st] ________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 1318s def test_byte_encoder_native_byteorder_tobytes(backend): 1318s size = 4 1318s value = 1 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:876: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ test_bit_decoder_native_byteorder_frombytes[bs] ________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ) 1318s ], 1318s ) 1318s def test_bit_decoder_native_byteorder_frombytes(backend): 1318s size = 64 1318s value = 1 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:900: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________________ test_bit_encoder_native_byteorder_tobytes[bs] _________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ) 1318s ], 1318s ) 1318s def test_bit_encoder_native_byteorder_tobytes(backend): 1318s size = 64 1318s value = 1 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:927: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ test_bit_decoder_default_byteorder_frombytes[bs] _______________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", BITS_BACKENDS) 1318s def test_bit_decoder_default_byteorder_frombytes(backend): 1318s size = 64 1318s value = 1 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:946: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________________ test_bit_encoder_default_byteorder_tobytes[bs] ________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ) 1318s ], 1318s ) 1318s def test_bit_encoder_default_byteorder_tobytes(backend): 1318s size = 64 1318s value = 1 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:974: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_enum_decoding_bytes[bs] _________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 1318s def test_enum_decoding_bytes(backend): 1318s class EStrEnumType(enum.Enum): 1318s A = "a" 1318s B = "b" 1318s 1318s class EBytesEnumType(enum.Enum): 1318s A = b"a" 1318s B = b"b" 1318s 1318s class EIntEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s class EFlagEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s ssize = 1 1318s isize = 1 1318s encoded_data = b"".join( 1318s [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 1318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 1318s ] 1318s ) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s ssize = 8 1318s isize = 4 1318s encoded_data = b"".join( 1318s [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s bytes([0b00010001]), 1318s ] 1318s ) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_enum_decoding_bytes[st] _________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 1318s def test_enum_decoding_bytes(backend): 1318s class EStrEnumType(enum.Enum): 1318s A = "a" 1318s B = "b" 1318s 1318s class EBytesEnumType(enum.Enum): 1318s A = b"a" 1318s B = b"b" 1318s 1318s class EIntEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s class EFlagEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s ssize = 1 1318s isize = 1 1318s encoded_data = b"".join( 1318s [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 1318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 1318s ] 1318s ) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s ssize = 8 1318s isize = 4 1318s encoded_data = b"".join( 1318s [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s bytes([0b00010001]), 1318s ] 1318s ) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_enum_encoding_bytes[st] _________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s id="np", 1318s marks=skipif(not bpack_np, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_enum_encoding_bytes(backend): 1318s class EStrEnumType(enum.Enum): 1318s A = "a" 1318s B = "b" 1318s 1318s class EBytesEnumType(enum.Enum): 1318s A = b"a" 1318s B = b"b" 1318s 1318s class EIntEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s class EFlagEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s ssize = 1 1318s isize = 1 1318s encoded_data = [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 1318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 1318s ] 1318s encoded_data = b"".join(encoded_data) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s ssize = 8 1318s isize = 4 1318s encoded_data = [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s bytes([0b00010001]), 1318s ] 1318s encoded_data = b"".join(encoded_data) 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _________________________ test_enum_encoding_bytes[bs] _________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ), 1318s pytest.param( 1318s bpack_np, 1318s id="np", 1318s marks=skipif(not bpack_np, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_enum_encoding_bytes(backend): 1318s class EStrEnumType(enum.Enum): 1318s A = "a" 1318s B = "b" 1318s 1318s class EBytesEnumType(enum.Enum): 1318s A = b"a" 1318s B = b"b" 1318s 1318s class EIntEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s class EFlagEnumType(enum.Enum): 1318s A = 1 1318s B = 2 1318s 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s ssize = 1 1318s isize = 1 1318s encoded_data = [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 1318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 1318s ] 1318s encoded_data = b"".join(encoded_data) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s ssize = 8 1318s isize = 4 1318s encoded_data = [ 1318s EStrEnumType.A.value.encode("ascii"), 1318s EBytesEnumType.A.value, 1318s bytes([0b00010001]), 1318s ] 1318s encoded_data = b"".join(encoded_data) 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_decode_sequence[st] ___________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decode_sequence(backend): 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s size = 1 1318s repeat = 2 1318s encoded_data = bytes([3, 3, 4, 4]) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s size = 4 1318s repeat = 2 1318s encoded_data = bytes([0b00110011, 0b01000100]) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_decode_sequence[bs] ___________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_decode_sequence(backend): 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s size = 1 1318s repeat = 2 1318s encoded_data = bytes([3, 3, 4, 4]) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s size = 4 1318s repeat = 2 1318s encoded_data = bytes([0b00110011, 0b01000100]) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_encode_sequence[st] ___________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encode_sequence(backend): 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s size = 1 1318s repeat = 2 1318s encoded_data = bytes([3, 3, 4, 4]) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s size = 4 1318s repeat = 2 1318s encoded_data = bytes([0b00110011, 0b01000100]) 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ___________________________ test_encode_sequence[bs] ___________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_encode_sequence(backend): 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 1318s bitorder = None 1318s size = 1 1318s repeat = 2 1318s encoded_data = bytes([3, 3, 4, 4]) 1318s else: 1318s bitorder = bpack.EBitOrder.MSB 1318s size = 4 1318s repeat = 2 1318s encoded_data = bytes([0b00110011, 0b01000100]) 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ TestNestedRecord.test_nested_record_decoder[st] ________________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_decoder(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s > @backend.decoder # NOTE: this is a decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ TestNestedRecord.test_nested_record_decoder[bs] ________________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_decoder(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s > @backend.decoder # NOTE: this is a decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ TestNestedRecord.test_nested_record_encoder[st] ________________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_encoder(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s > @backend.encoder # NOTE: this is an encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ TestNestedRecord.test_nested_record_encoder[bs] ________________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_encoder(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s > @backend.encoder # NOTE: this is an encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ______________ TestNestedRecord.test_nested_record_frombytes[st] _______________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_frombytes(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s # NOTE: this time the inner record is not a decoder 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class Record: 1318s field_1: int = bpack.field(size=4, default=1) 1318s field_2: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ______________ TestNestedRecord.test_nested_record_frombytes[bs] _______________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_frombytes(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s # NOTE: this time the inner record is not a decoder 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class Record: 1318s field_1: int = bpack.field(size=4, default=1) 1318s field_2: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ TestNestedRecord.test_nested_record_tobytes[st] ________________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_tobytes(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s # NOTE: this time the inner record is not a decoder 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class Record: 1318s field_1: int = bpack.field(size=4, default=1) 1318s field_2: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______________ TestNestedRecord.test_nested_record_tobytes[bs] ________________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_tobytes(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s 1318s # NOTE: this time the inner record is not a decoder 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class Record: 1318s field_1: int = bpack.field(size=4, default=1) 1318s field_2: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s __________ TestNestedRecord.test_nested_record_decoder_with_order[st] __________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_decoder_with_order(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 1318s kwargs = dict(bitorder=">", byteorder=">") 1318s else: 1318s # TODO: use the default byteorder (see get_encoded_data) 1318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 1318s 1318s > @backend.decoder # NOTE: this is a decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s __________ TestNestedRecord.test_nested_record_decoder_with_order[bs] __________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_decoder_with_order(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 1318s kwargs = dict(bitorder=">", byteorder=">") 1318s else: 1318s # TODO: use the default byteorder (see get_encoded_data) 1318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 1318s 1318s > @backend.decoder # NOTE: this is a decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s __________ TestNestedRecord.test_nested_record_encoder_with_order[st] __________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_encoder_with_order(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 1318s kwargs = dict(bitorder=">", byteorder=">") 1318s else: 1318s # TODO: use the default byteorder (see get_encoded_data) 1318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 1318s 1318s > @backend.encoder # NOTE: this is a encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s __________ TestNestedRecord.test_nested_record_encoder_with_order[bs] __________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_nested_record_encoder_with_order(self, backend): 1318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 1318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 1318s kwargs = dict(bitorder=">", byteorder=">") 1318s else: 1318s # TODO: use the default byteorder (see get_encoded_data) 1318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 1318s 1318s > @backend.encoder # NOTE: this is a encoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[st] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_decode_nested_record_two_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s FOUR = 4 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_02: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[bs] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_decode_nested_record_two_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s FOUR = 4 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_02: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[st] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_encode_nested_record_two_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s FOUR = 4 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_02: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[bs] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_encode_nested_record_two_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s FOUR = 4 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_02: int = bpack.field(size=4, default=2) 1318s 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[st] _______ 1318s 1318s self = 1318s backend = 1318s 1318s def test_decode_nested_record_three_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s TWO = 2 1318s SEVEN = 7 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 1318s ) 1318s field_03: int = bpack.field(size=4, default=4) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[bs] _______ 1318s 1318s self = 1318s backend = 1318s 1318s def test_decode_nested_record_three_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s TWO = 2 1318s SEVEN = 7 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 1318s ) 1318s field_03: int = bpack.field(size=4, default=4) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[st] _______ 1318s 1318s self = 1318s backend = 1318s 1318s def test_encode_nested_record_three_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s TWO = 2 1318s SEVEN = 7 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 1318s ) 1318s field_03: int = bpack.field(size=4, default=4) 1318s 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[bs] _______ 1318s 1318s self = 1318s backend = 1318s 1318s def test_encode_nested_record_three_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s TWO = 2 1318s SEVEN = 7 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 1318s ) 1318s field_03: int = bpack.field(size=4, default=4) 1318s 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[st] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_decode_nested_record_four_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s THREE = 3 1318s TEN = 10 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel04: 1318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_0002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: int = bpack.field(size=4, default=1) 1318s field_002: RecordLevel04 = bpack.field( 1318s default_factory=RecordLevel04 1318s ) 1318s field_003: int = bpack.field(size=4, default=3) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial( 1318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 1318s ) 1318s ) 1318s field_03: int = bpack.field(size=4, default=6) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[bs] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_decode_nested_record_four_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s THREE = 3 1318s TEN = 10 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel04: 1318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_0002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: int = bpack.field(size=4, default=1) 1318s field_002: RecordLevel04 = bpack.field( 1318s default_factory=RecordLevel04 1318s ) 1318s field_003: int = bpack.field(size=4, default=3) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial( 1318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 1318s ) 1318s ) 1318s field_03: int = bpack.field(size=4, default=6) 1318s 1318s > @backend.decoder 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[st] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_encode_nested_record_four_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s THREE = 3 1318s TEN = 10 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel04: 1318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_0002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: int = bpack.field(size=4, default=1) 1318s field_002: RecordLevel04 = bpack.field( 1318s default_factory=RecordLevel04 1318s ) 1318s field_003: int = bpack.field(size=4, default=3) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial( 1318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 1318s ) 1318s ) 1318s field_03: int = bpack.field(size=4, default=6) 1318s 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[bs] ________ 1318s 1318s self = 1318s backend = 1318s 1318s def test_encode_nested_record_four_levels(self, backend): 1318s class EEnum(enum.Enum): 1318s ONE = 1 1318s THREE = 3 1318s TEN = 10 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel04: 1318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 1318s field_0002: int = bpack.field(size=4, default=2) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel03: 1318s field_001: int = bpack.field(size=4, default=1) 1318s field_002: RecordLevel04 = bpack.field( 1318s default_factory=RecordLevel04 1318s ) 1318s field_003: int = bpack.field(size=4, default=3) 1318s 1318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 1318s class RecordLevel02: 1318s field_01: int = bpack.field(size=4, default=1) 1318s field_02: RecordLevel03 = bpack.field( 1318s default_factory=functools.partial( 1318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 1318s ) 1318s ) 1318s field_03: int = bpack.field(size=4, default=6) 1318s 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ____________________________ test_codec_helpers[st] ____________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_codec_helpers(backend): 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s ____________________________ test_codec_helpers[bs] ____________________________ 1318s 1318s backend = 1318s 1318s @pytest.mark.parametrize( 1318s "backend", 1318s [ 1318s pytest.param(bpack.st, id="st"), 1318s pytest.param( 1318s bpack_bs, 1318s id="bs", 1318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 1318s ), 1318s ], 1318s ) 1318s def test_codec_helpers(backend): 1318s > @backend.codec 1318s 1318s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 1318s return wrap(cls) 1318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 1318s return func(klass, **kwargs) 1318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 1318s decode_func = bpack.utils.create_fn( 1318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1318s 1318s name = 'frombytes', args = ('cls', 'data') 1318s body = ['return cls.__bpack_decoder__.decode(data)'] 1318s 1318s def create_fn( 1318s name, 1318s args, 1318s body, 1318s *, 1318s globals=None, # noqa: A002 1318s locals=None, # noqa: A002 1318s return_type=dataclasses.MISSING, 1318s ): 1318s """Create a function object.""" 1318s > return dataclasses._create_fn( 1318s name, 1318s args, 1318s body, 1318s globals=globals, 1318s locals=locals, 1318s return_type=return_type, 1318s ) 1318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 1318s 1318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 1318s =============================== warnings summary =============================== 1318s ../../../../usr/lib/python3/dist-packages/bpack/tests/test_decoder_np.py:9 1318s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_np.py:9: PytestDeprecationWarning: 1318s Module 'bpack.np' was found, but when imported by pytest it raised: 1318s ImportError('Error importing numpy: you should not try to import numpy from\n its source directory; please exit the numpy source tree, and relaunch\n your python interpreter from there.') 1318s In pytest 9.1 this warning will become an error by default. 1318s You can fix the underlying problem, or alternatively overwrite this behavior and silence this warning by passing exc_type=ImportError explicitly. 1318s See https://docs.pytest.org/en/stable/deprecations.html#pytest-importorskip-default-behavior-regarding-importerror 1318s bpack_np = pytest.importorskip("bpack.np") 1318s 1318s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1318s =========================== short test summary info ============================ 1318s FAILED tests/test_backends_codec.py::test_attrs[bs] - AttributeError: module ... 1318s FAILED tests/test_backends_codec.py::test_attrs[st] - AttributeError: module ... 1318s FAILED tests/test_backends_codec.py::test_decoder_func[st BE] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_decoder_func[st LE] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE MSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE MSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE LSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE LSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_encoder_func[st BE] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_encoder_func[st LE] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE MSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE MSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE LSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE LSB] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_bit_decoder_decorator_frombytes[bs] 1318s FAILED tests/test_backends_codec.py::test_bit_encoder_decorator_tobytes[bs] 1318s FAILED tests/test_backends_codec.py::test_byte_decoder_decorator_frombytes[st] 1318s FAILED tests/test_backends_codec.py::test_byte_encoder_decorator_tobytes[st] 1318s FAILED tests/test_backends_codec.py::test_byte_decoder_native_byteorder_frombytes[st] 1318s FAILED tests/test_backends_codec.py::test_byte_encoder_native_byteorder_tobytes[st] 1318s FAILED tests/test_backends_codec.py::test_bit_decoder_native_byteorder_frombytes[bs] 1318s FAILED tests/test_backends_codec.py::test_bit_encoder_native_byteorder_tobytes[bs] 1318s FAILED tests/test_backends_codec.py::test_bit_decoder_default_byteorder_frombytes[bs] 1318s FAILED tests/test_backends_codec.py::test_bit_encoder_default_byteorder_tobytes[bs] 1318s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[bs] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[st] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[st] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[bs] - Attribute... 1318s FAILED tests/test_backends_codec.py::test_decode_sequence[st] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_decode_sequence[bs] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_encode_sequence[st] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::test_encode_sequence[bs] - AttributeErro... 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[st] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[bs] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[st] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[bs] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[st] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[bs] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[st] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[bs] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[st] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[bs] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[st] 1318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[bs] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[st] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[bs] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[st] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[bs] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[st] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[bs] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[st] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[bs] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[st] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[bs] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[st] 1318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[bs] 1318s FAILED tests/test_codecs.py::test_codec_helpers[st] - AttributeError: module ... 1318s FAILED tests/test_codecs.py::test_codec_helpers[bs] - AttributeError: module ... 1318s =========== 58 failed, 376 passed, 1269 skipped, 1 warning in 2.71s ============ 1318s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.KHfkqX/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 1318s I: pybuild base:311: cd /tmp/autopkgtest.KHfkqX/autopkgtest_tmp/build; python3.12 -m pytest --pyargs bpack 1318s ============================= test session starts ============================== 1318s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 1318s rootdir: /tmp/autopkgtest.KHfkqX/autopkgtest_tmp/build 1318s configfile: pyproject.toml 1318s plugins: typeguard-4.4.1 1318s collected 1709 items 1318s 1318s tests/test_backends_codec.py ........................................... [ 2%] 1319s ................................................................ [ 6%] 1319s tests/test_codecs.py .. [ 6%] 1319s tests/test_decoder_ba.py ....... [ 6%] 1319s tests/test_decoder_np.py . [ 6%] 1319s tests/test_desctiptor_utils.py ......................... [ 8%] 1319s tests/test_field_descriptor.py ......................................... [ 10%] 1319s ............... [ 11%] 1319s tests/test_packbits.py ................................................. [ 14%] 1319s ........................................................................ [ 18%] 1319s ........................................................................ [ 22%] 1319s ........................................................................ [ 27%] 1319s ........................................................................ [ 31%] 1320s ........................................................................ [ 35%] 1320s ........................................................................ [ 39%] 1320s ........................................................................ [ 43%] 1320s ........................................................................ [ 48%] 1321s ........................................................................ [ 52%] 1321s ........................................................................ [ 56%] 1321s ........................................................................ [ 60%] 1321s ........................................................................ [ 65%] 1321s ........................................................................ [ 69%] 1321s ........................................................................ [ 73%] 1321s ........................................................................ [ 77%] 1322s ........................................................................ [ 81%] 1322s ........................................................ [ 85%] 1322s tests/test_record_descriptor.py ........................................ [ 87%] 1322s ................... [ 88%] 1322s tests/test_typing.py ................................................... [ 91%] 1322s ........................................................................ [ 95%] 1322s .................................................... [ 98%] 1322s tests/test_utils.py .................... [100%] 1322s 1322s ============================= 1709 passed in 4.00s ============================= 1322s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 1322s make: *** [/tmp/ZYFrz9xQ9C/run:4: pybuild-autopkgtest] Error 25 1322s pybuild-autopkgtest: error: /tmp/ZYFrz9xQ9C/run pybuild-autopkgtest returned exit code 2 1322s autopkgtest [11:37:12]: test pybuild-autopkgtest: -----------------------] 1323s pybuild-autopkgtest FAIL non-zero exit status 25 1323s autopkgtest [11:37:13]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 1323s autopkgtest [11:37:13]: @@@@@@@@@@@@@@@@@@@@ summary 1323s pybuild-autopkgtest FAIL non-zero exit status 25 1461s nova [W] Skipping flock for amd64 1461s Creating nova instance adt-plucky-i386-bpack-20241113-111509-juju-7f2275-prod-proposed-migration-environment-15-05096dbc-98ac-4e4c-89fb-0756b99637c5 from image adt/ubuntu-plucky-amd64-server-20241113.img (UUID 62c21ac4-2290-4c8d-8313-dddd18eacff4)...