0s autopkgtest [20:36:03]: starting date and time: 2024-11-23 20:36:03+0000 0s autopkgtest [20:36:03]: git checkout: 6408f825 Correct logic in old-systemd fallback code 0s autopkgtest [20:36:03]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.qg4ax26x/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_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\n" >> /etc/environment' --apt-pocket=proposed=src:python3-defaults --apt-upgrade bpack --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 -- lxd -r lxd-armhf-10.145.243.149 lxd-armhf-10.145.243.149:autopkgtest/ubuntu/plucky/armhf 54s autopkgtest [20:36:57]: testbed dpkg architecture: armhf 56s autopkgtest [20:36:59]: testbed apt version: 2.9.8 56s autopkgtest [20:36:59]: @@@@@@@@@@@@@@@@@@@@ test bed setup 65s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 65s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [13.6 kB] 65s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [930 kB] 65s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [54.8 kB] 65s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9704 B] 65s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [63.6 kB] 65s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf Packages [756 B] 65s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [727 kB] 65s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [5924 B] 65s Fetched 1879 kB in 1s (1978 kB/s) 65s Reading package lists... 83s tee: /proc/self/fd/2: Permission denied 108s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 108s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 108s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 108s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 109s Reading package lists... 109s Reading package lists... 110s Building dependency tree... 110s Reading state information... 110s Calculating upgrade... 111s The following packages will be upgraded: 111s bash debconf debconf-i18n libpython3-stdlib python3 python3-blinker 111s python3-debconf python3-minimal vim-common vim-tiny xxd 111s 11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 111s Need to get 2233 kB of archives. 111s After this operation, 1024 B disk space will be freed. 111s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf bash armhf 5.2.32-1ubuntu2 [673 kB] 111s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3-minimal armhf 3.12.7-1 [27.4 kB] 111s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3 armhf 3.12.7-1 [24.0 kB] 112s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libpython3-stdlib armhf 3.12.7-1 [10.0 kB] 112s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf debconf-i18n all 1.5.87ubuntu1 [204 kB] 112s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf python3-debconf all 1.5.87ubuntu1 [4156 B] 112s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf debconf all 1.5.87ubuntu1 [124 kB] 112s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf vim-tiny armhf 2:9.1.0861-1ubuntu1 [694 kB] 112s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf vim-common all 2:9.1.0861-1ubuntu1 [395 kB] 112s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf xxd armhf 2:9.1.0861-1ubuntu1 [67.0 kB] 112s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf python3-blinker all 1.9.0-1 [10.7 kB] 112s Preconfiguring packages ... 113s Fetched 2233 kB in 2s (1416 kB/s) 113s (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 ... 59616 files and directories currently installed.) 113s Preparing to unpack .../bash_5.2.32-1ubuntu2_armhf.deb ... 113s Unpacking bash (5.2.32-1ubuntu2) over (5.2.32-1ubuntu1) ... 113s Setting up bash (5.2.32-1ubuntu2) ... 113s update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode 113s (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 ... 59616 files and directories currently installed.) 113s Preparing to unpack .../python3-minimal_3.12.7-1_armhf.deb ... 113s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 113s Setting up python3-minimal (3.12.7-1) ... 113s (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 ... 59616 files and directories currently installed.) 113s Preparing to unpack .../python3_3.12.7-1_armhf.deb ... 113s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 113s Preparing to unpack .../libpython3-stdlib_3.12.7-1_armhf.deb ... 113s Unpacking libpython3-stdlib:armhf (3.12.7-1) over (3.12.6-0ubuntu1) ... 113s Preparing to unpack .../debconf-i18n_1.5.87ubuntu1_all.deb ... 113s Unpacking debconf-i18n (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 113s Preparing to unpack .../python3-debconf_1.5.87ubuntu1_all.deb ... 113s Unpacking python3-debconf (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 113s Preparing to unpack .../debconf_1.5.87ubuntu1_all.deb ... 113s Unpacking debconf (1.5.87ubuntu1) over (1.5.86ubuntu1) ... 113s Setting up debconf (1.5.87ubuntu1) ... 114s (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 ... 59616 files and directories currently installed.) 114s Preparing to unpack .../vim-tiny_2%3a9.1.0861-1ubuntu1_armhf.deb ... 114s Unpacking vim-tiny (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 114s Preparing to unpack .../vim-common_2%3a9.1.0861-1ubuntu1_all.deb ... 114s Unpacking vim-common (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 114s Preparing to unpack .../xxd_2%3a9.1.0861-1ubuntu1_armhf.deb ... 114s Unpacking xxd (2:9.1.0861-1ubuntu1) over (2:9.1.0777-1ubuntu1) ... 114s Preparing to unpack .../python3-blinker_1.9.0-1_all.deb ... 114s Unpacking python3-blinker (1.9.0-1) over (1.8.2-1) ... 114s Setting up debconf-i18n (1.5.87ubuntu1) ... 114s Setting up xxd (2:9.1.0861-1ubuntu1) ... 114s Setting up vim-common (2:9.1.0861-1ubuntu1) ... 114s Setting up libpython3-stdlib:armhf (3.12.7-1) ... 114s Setting up python3 (3.12.7-1) ... 114s Setting up vim-tiny (2:9.1.0861-1ubuntu1) ... 114s Setting up python3-blinker (1.9.0-1) ... 114s Setting up python3-debconf (1.5.87ubuntu1) ... 114s Processing triggers for debianutils (5.21) ... 115s Processing triggers for install-info (7.1.1-1) ... 115s Processing triggers for man-db (2.13.0-1) ... 116s Reading package lists... 116s Building dependency tree... 116s Reading state information... 117s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 119s autopkgtest [20:38:02]: rebooting testbed after setup commands that affected boot 188s autopkgtest [20:39:11]: testbed running kernel: Linux 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 18:12:14 UTC 2 218s autopkgtest [20:39:41]: @@@@@@@@@@@@@@@@@@@@ apt-source bpack 233s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (dsc) [3063 B] 233s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (tar) [62.0 kB] 233s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (diff) [3532 B] 233s gpgv: Signature made Tue Jun 18 21:16:10 2024 UTC 233s gpgv: using RSA key 8182DE417056408D614650D16750F10AE88D4AF1 233s gpgv: Can't check signature: No public key 233s dpkg-source: warning: cannot verify inline signature for ./bpack_1.1.0-2.dsc: no acceptable signature found 234s autopkgtest [20:39:57]: testing package bpack version 1.1.0-2 236s autopkgtest [20:39:59]: build not needed 239s autopkgtest [20:40:02]: test pybuild-autopkgtest: preparing testbed 253s Reading package lists... 253s Building dependency tree... 253s Reading state information... 253s Starting pkgProblemResolver with broken count: 0 253s Starting 2 pkgProblemResolver with broken count: 0 253s Done 254s The following additional packages will be installed: 254s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 254s cpp-14-arm-linux-gnueabihf cpp-arm-linux-gnueabihf debhelper debugedit 254s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz 254s fonts-font-awesome fonts-lato g++ g++-14 g++-14-arm-linux-gnueabihf 254s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 254s gcc-arm-linux-gnueabihf gettext intltool-debian libarchive-zip-perl libasan8 254s libblas3 libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libdebhelper-perl 254s libfile-stripnondeterminism-perl libgcc-14-dev libgfortran5 libgomp1 254s libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl 254s liblapack3 libmpc3 libpython3.13-minimal libpython3.13-stdlib 254s libstdc++-14-dev libtool libubsan1 linux-libc-dev m4 po-debconf 254s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python-bpack-doc 254s python3-alabaster python3-all python3-bitarray python3-bitstruct 254s python3-bpack python3-build python3-defusedxml python3-docutils 254s python3-imagesize python3-iniconfig python3-installer python3-numpy 254s python3-packaging python3-pluggy python3-pyproject-hooks python3-pytest 254s python3-roman python3-snowballstemmer python3-sphinx 254s python3-sphinx-rtd-theme python3-sphinxcontrib.jquery python3-toml 254s python3-wheel python3.13 python3.13-minimal rpcsvc-proto sgml-base 254s sphinx-common sphinx-rtd-theme-common xml-core 254s Suggested packages: 254s autoconf-archive gnu-standards autoconf-doc cpp-doc gcc-14-locales 254s cpp-14-doc dh-make flit gcc-14-doc gcc-multilib manpages-dev flex bison gdb 254s gcc-doc gdb-arm-linux-gnueabihf gettext-doc libasprintf-dev libgettextpo-dev 254s libc-devtools glibc-doc libstdc++-14-doc libtool-doc gfortran 254s | fortran95-compiler gcj-jdk m4-doc libmail-box-perl www-browser python3-pip 254s python3-venv python-build-doc docutils-doc fonts-linuxlibertine 254s | ttf-linux-libertine texlive-lang-french texlive-latex-base 254s texlive-latex-recommended python-installer-doc gfortran python-numpy-doc 254s python3-dev python3-stemmer dvipng dvisvgm fonts-freefont-otf 254s imagemagick-6.q16 latexmk libjs-mathjax sphinx-doc tex-gyre 254s texlive-fonts-extra texlive-fonts-recommended texlive-latex-extra 254s texlive-plain-generic python3.13-venv python3.13-doc binfmt-support 254s sgml-base-doc 254s Recommended packages: 254s manpages manpages-dev libarchive-cpio-perl javascript-common libjson-xs-perl 254s libltdl-dev libmail-sendmail-perl libpaper-utils python3-pil 254s The following NEW packages will be installed: 254s autoconf automake autopkgtest-satdep autopoint autotools-dev build-essential 254s cpp cpp-14 cpp-14-arm-linux-gnueabihf cpp-arm-linux-gnueabihf debhelper 254s debugedit dh-autoreconf dh-python dh-strip-nondeterminism docutils-common 254s dwz fonts-font-awesome fonts-lato g++ g++-14 g++-14-arm-linux-gnueabihf 254s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 254s gcc-arm-linux-gnueabihf gettext intltool-debian libarchive-zip-perl libasan8 254s libblas3 libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libdebhelper-perl 254s libfile-stripnondeterminism-perl libgcc-14-dev libgfortran5 libgomp1 254s libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl 254s liblapack3 libmpc3 libpython3.13-minimal libpython3.13-stdlib 254s libstdc++-14-dev libtool libubsan1 linux-libc-dev m4 po-debconf 254s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python-bpack-doc 254s python3-alabaster python3-all python3-bitarray python3-bitstruct 254s python3-bpack python3-build python3-defusedxml python3-docutils 254s python3-imagesize python3-iniconfig python3-installer python3-numpy 254s python3-packaging python3-pluggy python3-pyproject-hooks python3-pytest 254s python3-roman python3-snowballstemmer python3-sphinx 254s python3-sphinx-rtd-theme python3-sphinxcontrib.jquery python3-toml 254s python3-wheel python3.13 python3.13-minimal rpcsvc-proto sgml-base 254s sphinx-common sphinx-rtd-theme-common xml-core 254s 0 upgraded, 89 newly installed, 0 to remove and 0 not upgraded. 254s Need to get 74.1 MB/74.1 MB of archives. 254s After this operation, 235 MB of additional disk space will be used. 254s Get:1 /tmp/autopkgtest.s49zwe/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [840 B] 254s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-lato all 2.015-1 [2781 kB] 255s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libpython3.13-minimal armhf 3.13.0-2 [866 kB] 255s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf python3.13-minimal armhf 3.13.0-2 [1854 kB] 255s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf sgml-base all 1.31 [11.4 kB] 255s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf m4 armhf 1.4.19-4build1 [235 kB] 255s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf autoconf all 2.72-3 [382 kB] 255s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf autotools-dev all 20220109.1 [44.9 kB] 255s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf automake all 1:1.16.5-1.3ubuntu1 [558 kB] 255s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf autopoint all 0.22.5-2 [616 kB] 255s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf libc-dev-bin armhf 2.40-1ubuntu3 [19.2 kB] 255s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf linux-libc-dev armhf 6.11.0-8.8 [1628 kB] 255s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libcrypt-dev armhf 1:4.4.36-5 [119 kB] 255s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 255s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libc6-dev armhf 2.40-1ubuntu3 [1370 kB] 255s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libisl23 armhf 0.27-1 [546 kB] 255s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 255s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-8ubuntu1 [9219 kB] 255s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14 armhf 14.2.0-8ubuntu1 [1032 B] 255s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-arm-linux-gnueabihf armhf 4:14.1.0-2ubuntu1 [5464 B] 255s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf cpp armhf 4:14.1.0-2ubuntu1 [22.4 kB] 255s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf libcc1-0 armhf 14.2.0-8ubuntu1 [43.3 kB] 255s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf libgomp1 armhf 14.2.0-8ubuntu1 [125 kB] 255s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf libasan8 armhf 14.2.0-8ubuntu1 [2901 kB] 255s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf libubsan1 armhf 14.2.0-8ubuntu1 [1150 kB] 255s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf libgcc-14-dev armhf 14.2.0-8ubuntu1 [897 kB] 255s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-8ubuntu1 [18.0 MB] 256s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14 armhf 14.2.0-8ubuntu1 [498 kB] 256s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-arm-linux-gnueabihf armhf 4:14.1.0-2ubuntu1 [1222 B] 256s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf gcc armhf 4:14.1.0-2ubuntu1 [5002 B] 256s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf libstdc++-14-dev armhf 14.2.0-8ubuntu1 [2569 kB] 256s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-8ubuntu1 [10.5 MB] 256s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14 armhf 14.2.0-8ubuntu1 [19.9 kB] 256s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf g++-arm-linux-gnueabihf armhf 4:14.1.0-2ubuntu1 [968 B] 256s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf g++ armhf 4:14.1.0-2ubuntu1 [1084 B] 256s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 256s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 256s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libtool all 2.4.7-8 [166 kB] 256s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf dh-autoreconf all 20 [16.1 kB] 256s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf libarchive-zip-perl all 1.68-1 [90.2 kB] 256s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 256s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf dh-strip-nondeterminism all 1.14.0-1 [5058 B] 256s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf debugedit armhf 1:5.1-1 [46.5 kB] 256s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf dwz armhf 0.15-1build6 [116 kB] 256s Get:45 http://ftpmaster.internal/ubuntu plucky/main armhf gettext armhf 0.22.5-2 [995 kB] 256s Get:46 http://ftpmaster.internal/ubuntu plucky/main armhf intltool-debian all 0.35.0+20060710.6 [23.2 kB] 256s Get:47 http://ftpmaster.internal/ubuntu plucky/main armhf po-debconf all 1.0.21+nmu1 [233 kB] 256s Get:48 http://ftpmaster.internal/ubuntu plucky/main armhf debhelper all 13.20ubuntu1 [893 kB] 256s Get:49 http://ftpmaster.internal/ubuntu plucky/universe armhf dh-python all 6.20241024 [112 kB] 256s Get:50 http://ftpmaster.internal/ubuntu plucky/main armhf xml-core all 0.19 [20.3 kB] 256s Get:51 http://ftpmaster.internal/ubuntu plucky/main armhf docutils-common all 0.21.2+dfsg-2 [131 kB] 256s Get:52 http://ftpmaster.internal/ubuntu plucky/main armhf fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 256s Get:53 http://ftpmaster.internal/ubuntu plucky/main armhf libblas3 armhf 3.12.0-3build2 [126 kB] 256s Get:54 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran5 armhf 14.2.0-8ubuntu1 [311 kB] 256s Get:55 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 256s Get:56 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 256s Get:57 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-sphinxdoc all 7.4.7-4 [158 kB] 256s Get:58 http://ftpmaster.internal/ubuntu plucky/main armhf libjson-perl all 4.10000-1 [81.9 kB] 256s Get:59 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack3 armhf 3.12.0-3build2 [2086 kB] 257s Get:60 http://ftpmaster.internal/ubuntu plucky/main armhf libpython3.13-stdlib armhf 3.13.0-2 [1972 kB] 257s Get:61 http://ftpmaster.internal/ubuntu plucky/universe armhf pybuild-plugin-autopkgtest all 6.20241024 [1746 B] 257s Get:62 http://ftpmaster.internal/ubuntu plucky/main armhf python3-packaging all 24.2-1 [51.5 kB] 257s Get:63 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 257s Get:64 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-toml all 0.10.2-1 [16.5 kB] 257s Get:65 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-wheel all 0.45.0-1 [57.7 kB] 257s Get:66 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-build all 1.2.2-1 [31.0 kB] 257s Get:67 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 257s Get:68 http://ftpmaster.internal/ubuntu plucky/universe armhf pybuild-plugin-pyproject all 6.20241024 [1728 B] 257s Get:69 http://ftpmaster.internal/ubuntu plucky/main armhf sphinx-rtd-theme-common all 3.0.2+dfsg-1 [1014 kB] 257s Get:70 http://ftpmaster.internal/ubuntu plucky/universe armhf python-bpack-doc all 1.1.0-2 [100 kB] 257s Get:71 http://ftpmaster.internal/ubuntu plucky/main armhf python3.13 armhf 3.13.0-2 [719 kB] 257s Get:72 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3-all armhf 3.12.7-1 [890 B] 257s Get:73 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-bitarray armhf 2.9.2-1build2 [147 kB] 257s Get:74 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-bitstruct armhf 8.19.0-1build1 [22.3 kB] 257s Get:75 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-bpack all 1.1.0-2 [34.5 kB] 257s Get:76 http://ftpmaster.internal/ubuntu plucky/main armhf python3-defusedxml all 0.7.1-2 [42.0 kB] 257s Get:77 http://ftpmaster.internal/ubuntu plucky/main armhf python3-roman all 4.2-1 [10.0 kB] 257s Get:78 http://ftpmaster.internal/ubuntu plucky/main armhf python3-docutils all 0.21.2+dfsg-2 [409 kB] 257s Get:79 http://ftpmaster.internal/ubuntu plucky/main armhf python3-imagesize all 1.4.1-1 [6844 B] 257s Get:80 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 257s Get:81 http://ftpmaster.internal/ubuntu plucky/main armhf python3-numpy armhf 1:1.26.4+ds-11ubuntu1 [3975 kB] 257s Get:82 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 257s Get:83 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest all 8.3.3-1 [251 kB] 257s Get:84 http://ftpmaster.internal/ubuntu plucky/main armhf python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 257s Get:85 http://ftpmaster.internal/ubuntu plucky/main armhf sphinx-common all 7.4.7-4 [775 kB] 257s Get:86 http://ftpmaster.internal/ubuntu plucky/main armhf python3-alabaster all 0.7.16-0.1 [18.5 kB] 257s Get:87 http://ftpmaster.internal/ubuntu plucky/main armhf python3-sphinx all 7.4.7-4 [593 kB] 257s Get:88 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-sphinxcontrib.jquery all 4.1-5 [6678 B] 257s Get:89 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [23.5 kB] 258s Fetched 74.1 MB in 3s (24.3 MB/s) 258s Selecting previously unselected package fonts-lato. 258s (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 ... 59616 files and directories currently installed.) 258s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 258s Unpacking fonts-lato (2.015-1) ... 258s Selecting previously unselected package libpython3.13-minimal:armhf. 258s Preparing to unpack .../01-libpython3.13-minimal_3.13.0-2_armhf.deb ... 258s Unpacking libpython3.13-minimal:armhf (3.13.0-2) ... 258s Selecting previously unselected package python3.13-minimal. 258s Preparing to unpack .../02-python3.13-minimal_3.13.0-2_armhf.deb ... 258s Unpacking python3.13-minimal (3.13.0-2) ... 258s Selecting previously unselected package sgml-base. 258s Preparing to unpack .../03-sgml-base_1.31_all.deb ... 258s Unpacking sgml-base (1.31) ... 258s Selecting previously unselected package m4. 258s Preparing to unpack .../04-m4_1.4.19-4build1_armhf.deb ... 258s Unpacking m4 (1.4.19-4build1) ... 258s Selecting previously unselected package autoconf. 258s Preparing to unpack .../05-autoconf_2.72-3_all.deb ... 258s Unpacking autoconf (2.72-3) ... 258s Selecting previously unselected package autotools-dev. 258s Preparing to unpack .../06-autotools-dev_20220109.1_all.deb ... 258s Unpacking autotools-dev (20220109.1) ... 258s Selecting previously unselected package automake. 258s Preparing to unpack .../07-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 258s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 258s Selecting previously unselected package autopoint. 258s Preparing to unpack .../08-autopoint_0.22.5-2_all.deb ... 258s Unpacking autopoint (0.22.5-2) ... 258s Selecting previously unselected package libc-dev-bin. 258s Preparing to unpack .../09-libc-dev-bin_2.40-1ubuntu3_armhf.deb ... 258s Unpacking libc-dev-bin (2.40-1ubuntu3) ... 258s Selecting previously unselected package linux-libc-dev:armhf. 258s Preparing to unpack .../10-linux-libc-dev_6.11.0-8.8_armhf.deb ... 258s Unpacking linux-libc-dev:armhf (6.11.0-8.8) ... 259s Selecting previously unselected package libcrypt-dev:armhf. 259s Preparing to unpack .../11-libcrypt-dev_1%3a4.4.36-5_armhf.deb ... 259s Unpacking libcrypt-dev:armhf (1:4.4.36-5) ... 259s Selecting previously unselected package rpcsvc-proto. 259s Preparing to unpack .../12-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 259s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 259s Selecting previously unselected package libc6-dev:armhf. 259s Preparing to unpack .../13-libc6-dev_2.40-1ubuntu3_armhf.deb ... 259s Unpacking libc6-dev:armhf (2.40-1ubuntu3) ... 259s Selecting previously unselected package libisl23:armhf. 259s Preparing to unpack .../14-libisl23_0.27-1_armhf.deb ... 259s Unpacking libisl23:armhf (0.27-1) ... 259s Selecting previously unselected package libmpc3:armhf. 259s Preparing to unpack .../15-libmpc3_1.3.1-1build2_armhf.deb ... 259s Unpacking libmpc3:armhf (1.3.1-1build2) ... 259s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 259s Preparing to unpack .../16-cpp-14-arm-linux-gnueabihf_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package cpp-14. 259s Preparing to unpack .../17-cpp-14_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking cpp-14 (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package cpp-arm-linux-gnueabihf. 259s Preparing to unpack .../18-cpp-arm-linux-gnueabihf_4%3a14.1.0-2ubuntu1_armhf.deb ... 259s Unpacking cpp-arm-linux-gnueabihf (4:14.1.0-2ubuntu1) ... 259s Selecting previously unselected package cpp. 259s Preparing to unpack .../19-cpp_4%3a14.1.0-2ubuntu1_armhf.deb ... 259s Unpacking cpp (4:14.1.0-2ubuntu1) ... 259s Selecting previously unselected package libcc1-0:armhf. 259s Preparing to unpack .../20-libcc1-0_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking libcc1-0:armhf (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package libgomp1:armhf. 259s Preparing to unpack .../21-libgomp1_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking libgomp1:armhf (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package libasan8:armhf. 259s Preparing to unpack .../22-libasan8_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking libasan8:armhf (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package libubsan1:armhf. 259s Preparing to unpack .../23-libubsan1_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking libubsan1:armhf (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package libgcc-14-dev:armhf. 259s Preparing to unpack .../24-libgcc-14-dev_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking libgcc-14-dev:armhf (14.2.0-8ubuntu1) ... 259s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 259s Preparing to unpack .../25-gcc-14-arm-linux-gnueabihf_14.2.0-8ubuntu1_armhf.deb ... 259s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-8ubuntu1) ... 260s Selecting previously unselected package gcc-14. 260s Preparing to unpack .../26-gcc-14_14.2.0-8ubuntu1_armhf.deb ... 260s Unpacking gcc-14 (14.2.0-8ubuntu1) ... 260s Selecting previously unselected package gcc-arm-linux-gnueabihf. 260s Preparing to unpack .../27-gcc-arm-linux-gnueabihf_4%3a14.1.0-2ubuntu1_armhf.deb ... 260s Unpacking gcc-arm-linux-gnueabihf (4:14.1.0-2ubuntu1) ... 260s Selecting previously unselected package gcc. 260s Preparing to unpack .../28-gcc_4%3a14.1.0-2ubuntu1_armhf.deb ... 260s Unpacking gcc (4:14.1.0-2ubuntu1) ... 260s Selecting previously unselected package libstdc++-14-dev:armhf. 260s Preparing to unpack .../29-libstdc++-14-dev_14.2.0-8ubuntu1_armhf.deb ... 260s Unpacking libstdc++-14-dev:armhf (14.2.0-8ubuntu1) ... 260s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 260s Preparing to unpack .../30-g++-14-arm-linux-gnueabihf_14.2.0-8ubuntu1_armhf.deb ... 260s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-8ubuntu1) ... 260s Selecting previously unselected package g++-14. 260s Preparing to unpack .../31-g++-14_14.2.0-8ubuntu1_armhf.deb ... 260s Unpacking g++-14 (14.2.0-8ubuntu1) ... 260s Selecting previously unselected package g++-arm-linux-gnueabihf. 260s Preparing to unpack .../32-g++-arm-linux-gnueabihf_4%3a14.1.0-2ubuntu1_armhf.deb ... 260s Unpacking g++-arm-linux-gnueabihf (4:14.1.0-2ubuntu1) ... 260s Selecting previously unselected package g++. 260s Preparing to unpack .../33-g++_4%3a14.1.0-2ubuntu1_armhf.deb ... 260s Unpacking g++ (4:14.1.0-2ubuntu1) ... 260s Selecting previously unselected package build-essential. 260s Preparing to unpack .../34-build-essential_12.10ubuntu1_armhf.deb ... 260s Unpacking build-essential (12.10ubuntu1) ... 260s Selecting previously unselected package libdebhelper-perl. 260s Preparing to unpack .../35-libdebhelper-perl_13.20ubuntu1_all.deb ... 260s Unpacking libdebhelper-perl (13.20ubuntu1) ... 260s Selecting previously unselected package libtool. 260s Preparing to unpack .../36-libtool_2.4.7-8_all.deb ... 260s Unpacking libtool (2.4.7-8) ... 260s Selecting previously unselected package dh-autoreconf. 260s Preparing to unpack .../37-dh-autoreconf_20_all.deb ... 260s Unpacking dh-autoreconf (20) ... 261s Selecting previously unselected package libarchive-zip-perl. 261s Preparing to unpack .../38-libarchive-zip-perl_1.68-1_all.deb ... 261s Unpacking libarchive-zip-perl (1.68-1) ... 261s Selecting previously unselected package libfile-stripnondeterminism-perl. 261s Preparing to unpack .../39-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 261s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 261s Selecting previously unselected package dh-strip-nondeterminism. 261s Preparing to unpack .../40-dh-strip-nondeterminism_1.14.0-1_all.deb ... 261s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 261s Selecting previously unselected package debugedit. 261s Preparing to unpack .../41-debugedit_1%3a5.1-1_armhf.deb ... 261s Unpacking debugedit (1:5.1-1) ... 261s Selecting previously unselected package dwz. 261s Preparing to unpack .../42-dwz_0.15-1build6_armhf.deb ... 261s Unpacking dwz (0.15-1build6) ... 261s Selecting previously unselected package gettext. 261s Preparing to unpack .../43-gettext_0.22.5-2_armhf.deb ... 261s Unpacking gettext (0.22.5-2) ... 261s Selecting previously unselected package intltool-debian. 261s Preparing to unpack .../44-intltool-debian_0.35.0+20060710.6_all.deb ... 261s Unpacking intltool-debian (0.35.0+20060710.6) ... 261s Selecting previously unselected package po-debconf. 261s Preparing to unpack .../45-po-debconf_1.0.21+nmu1_all.deb ... 261s Unpacking po-debconf (1.0.21+nmu1) ... 261s Selecting previously unselected package debhelper. 261s Preparing to unpack .../46-debhelper_13.20ubuntu1_all.deb ... 261s Unpacking debhelper (13.20ubuntu1) ... 261s Selecting previously unselected package dh-python. 261s Preparing to unpack .../47-dh-python_6.20241024_all.deb ... 261s Unpacking dh-python (6.20241024) ... 261s Selecting previously unselected package xml-core. 261s Preparing to unpack .../48-xml-core_0.19_all.deb ... 261s Unpacking xml-core (0.19) ... 261s Selecting previously unselected package docutils-common. 261s Preparing to unpack .../49-docutils-common_0.21.2+dfsg-2_all.deb ... 261s Unpacking docutils-common (0.21.2+dfsg-2) ... 261s Selecting previously unselected package fonts-font-awesome. 261s Preparing to unpack .../50-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 261s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 261s Selecting previously unselected package libblas3:armhf. 261s Preparing to unpack .../51-libblas3_3.12.0-3build2_armhf.deb ... 261s Unpacking libblas3:armhf (3.12.0-3build2) ... 261s Selecting previously unselected package libgfortran5:armhf. 261s Preparing to unpack .../52-libgfortran5_14.2.0-8ubuntu1_armhf.deb ... 261s Unpacking libgfortran5:armhf (14.2.0-8ubuntu1) ... 261s Selecting previously unselected package libjs-jquery. 261s Preparing to unpack .../53-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 261s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 261s Selecting previously unselected package libjs-underscore. 261s Preparing to unpack .../54-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 261s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 261s Selecting previously unselected package libjs-sphinxdoc. 261s Preparing to unpack .../55-libjs-sphinxdoc_7.4.7-4_all.deb ... 261s Unpacking libjs-sphinxdoc (7.4.7-4) ... 261s Selecting previously unselected package libjson-perl. 261s Preparing to unpack .../56-libjson-perl_4.10000-1_all.deb ... 261s Unpacking libjson-perl (4.10000-1) ... 261s Selecting previously unselected package liblapack3:armhf. 261s Preparing to unpack .../57-liblapack3_3.12.0-3build2_armhf.deb ... 261s Unpacking liblapack3:armhf (3.12.0-3build2) ... 261s Selecting previously unselected package libpython3.13-stdlib:armhf. 261s Preparing to unpack .../58-libpython3.13-stdlib_3.13.0-2_armhf.deb ... 261s Unpacking libpython3.13-stdlib:armhf (3.13.0-2) ... 262s Selecting previously unselected package pybuild-plugin-autopkgtest. 262s Preparing to unpack .../59-pybuild-plugin-autopkgtest_6.20241024_all.deb ... 262s Unpacking pybuild-plugin-autopkgtest (6.20241024) ... 262s Selecting previously unselected package python3-packaging. 262s Preparing to unpack .../60-python3-packaging_24.2-1_all.deb ... 262s Unpacking python3-packaging (24.2-1) ... 262s Selecting previously unselected package python3-pyproject-hooks. 262s Preparing to unpack .../61-python3-pyproject-hooks_1.2.0-1_all.deb ... 262s Unpacking python3-pyproject-hooks (1.2.0-1) ... 262s Selecting previously unselected package python3-toml. 262s Preparing to unpack .../62-python3-toml_0.10.2-1_all.deb ... 262s Unpacking python3-toml (0.10.2-1) ... 262s Selecting previously unselected package python3-wheel. 262s Preparing to unpack .../63-python3-wheel_0.45.0-1_all.deb ... 262s Unpacking python3-wheel (0.45.0-1) ... 262s Selecting previously unselected package python3-build. 262s Preparing to unpack .../64-python3-build_1.2.2-1_all.deb ... 262s Unpacking python3-build (1.2.2-1) ... 262s Selecting previously unselected package python3-installer. 262s Preparing to unpack .../65-python3-installer_0.7.0+dfsg1-3_all.deb ... 262s Unpacking python3-installer (0.7.0+dfsg1-3) ... 262s Selecting previously unselected package pybuild-plugin-pyproject. 262s Preparing to unpack .../66-pybuild-plugin-pyproject_6.20241024_all.deb ... 262s Unpacking pybuild-plugin-pyproject (6.20241024) ... 262s Selecting previously unselected package sphinx-rtd-theme-common. 262s Preparing to unpack .../67-sphinx-rtd-theme-common_3.0.2+dfsg-1_all.deb ... 262s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-1) ... 262s Selecting previously unselected package python-bpack-doc. 262s Preparing to unpack .../68-python-bpack-doc_1.1.0-2_all.deb ... 262s Unpacking python-bpack-doc (1.1.0-2) ... 262s Selecting previously unselected package python3.13. 262s Preparing to unpack .../69-python3.13_3.13.0-2_armhf.deb ... 262s Unpacking python3.13 (3.13.0-2) ... 262s Selecting previously unselected package python3-all. 262s Preparing to unpack .../70-python3-all_3.12.7-1_armhf.deb ... 262s Unpacking python3-all (3.12.7-1) ... 262s Selecting previously unselected package python3-bitarray. 262s Preparing to unpack .../71-python3-bitarray_2.9.2-1build2_armhf.deb ... 262s Unpacking python3-bitarray (2.9.2-1build2) ... 262s Selecting previously unselected package python3-bitstruct. 262s Preparing to unpack .../72-python3-bitstruct_8.19.0-1build1_armhf.deb ... 262s Unpacking python3-bitstruct (8.19.0-1build1) ... 262s Selecting previously unselected package python3-bpack. 262s Preparing to unpack .../73-python3-bpack_1.1.0-2_all.deb ... 262s Unpacking python3-bpack (1.1.0-2) ... 262s Selecting previously unselected package python3-defusedxml. 262s Preparing to unpack .../74-python3-defusedxml_0.7.1-2_all.deb ... 262s Unpacking python3-defusedxml (0.7.1-2) ... 262s Selecting previously unselected package python3-roman. 262s Preparing to unpack .../75-python3-roman_4.2-1_all.deb ... 262s Unpacking python3-roman (4.2-1) ... 262s Selecting previously unselected package python3-docutils. 262s Preparing to unpack .../76-python3-docutils_0.21.2+dfsg-2_all.deb ... 262s Unpacking python3-docutils (0.21.2+dfsg-2) ... 262s Selecting previously unselected package python3-imagesize. 262s Preparing to unpack .../77-python3-imagesize_1.4.1-1_all.deb ... 262s Unpacking python3-imagesize (1.4.1-1) ... 262s Selecting previously unselected package python3-iniconfig. 262s Preparing to unpack .../78-python3-iniconfig_1.1.1-2_all.deb ... 262s Unpacking python3-iniconfig (1.1.1-2) ... 262s Selecting previously unselected package python3-numpy. 262s Preparing to unpack .../79-python3-numpy_1%3a1.26.4+ds-11ubuntu1_armhf.deb ... 262s Unpacking python3-numpy (1:1.26.4+ds-11ubuntu1) ... 263s Selecting previously unselected package python3-pluggy. 263s Preparing to unpack .../80-python3-pluggy_1.5.0-1_all.deb ... 263s Unpacking python3-pluggy (1.5.0-1) ... 263s Selecting previously unselected package python3-pytest. 263s Preparing to unpack .../81-python3-pytest_8.3.3-1_all.deb ... 263s Unpacking python3-pytest (8.3.3-1) ... 263s Selecting previously unselected package python3-snowballstemmer. 263s Preparing to unpack .../82-python3-snowballstemmer_2.2.0-4build1_all.deb ... 263s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 263s Selecting previously unselected package sphinx-common. 263s Preparing to unpack .../83-sphinx-common_7.4.7-4_all.deb ... 263s Unpacking sphinx-common (7.4.7-4) ... 263s Selecting previously unselected package python3-alabaster. 263s Preparing to unpack .../84-python3-alabaster_0.7.16-0.1_all.deb ... 263s Unpacking python3-alabaster (0.7.16-0.1) ... 263s Selecting previously unselected package python3-sphinx. 263s Preparing to unpack .../85-python3-sphinx_7.4.7-4_all.deb ... 263s Unpacking python3-sphinx (7.4.7-4) ... 263s Selecting previously unselected package python3-sphinxcontrib.jquery. 263s Preparing to unpack .../86-python3-sphinxcontrib.jquery_4.1-5_all.deb ... 263s Unpacking python3-sphinxcontrib.jquery (4.1-5) ... 263s Selecting previously unselected package python3-sphinx-rtd-theme. 263s Preparing to unpack .../87-python3-sphinx-rtd-theme_3.0.2+dfsg-1_all.deb ... 263s Unpacking python3-sphinx-rtd-theme (3.0.2+dfsg-1) ... 263s Selecting previously unselected package autopkgtest-satdep. 263s Preparing to unpack .../88-1-autopkgtest-satdep.deb ... 263s Unpacking autopkgtest-satdep (0) ... 263s Setting up dh-python (6.20241024) ... 263s Setting up python3-iniconfig (1.1.1-2) ... 264s Setting up fonts-lato (2.015-1) ... 264s Setting up python3-defusedxml (0.7.1-2) ... 264s Setting up libarchive-zip-perl (1.68-1) ... 264s Setting up python3-alabaster (0.7.16-0.1) ... 264s Setting up libdebhelper-perl (13.20ubuntu1) ... 264s Setting up linux-libc-dev:armhf (6.11.0-8.8) ... 264s Setting up m4 (1.4.19-4build1) ... 264s Setting up libgomp1:armhf (14.2.0-8ubuntu1) ... 264s Setting up python3-wheel (0.45.0-1) ... 264s Setting up python3-bpack (1.1.0-2) ... 265s Setting up libpython3.13-minimal:armhf (3.13.0-2) ... 265s Setting up python3-bitarray (2.9.2-1build2) ... 265s Setting up python3-roman (4.2-1) ... 265s Setting up autotools-dev (20220109.1) ... 265s Setting up libblas3:armhf (3.12.0-3build2) ... 265s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 265s Setting up python3-packaging (24.2-1) ... 265s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 265s Setting up python3-pyproject-hooks (1.2.0-1) ... 266s Setting up python3-snowballstemmer (2.2.0-4build1) ... 266s Setting up libmpc3:armhf (1.3.1-1build2) ... 266s Setting up autopoint (0.22.5-2) ... 266s Setting up python3-toml (0.10.2-1) ... 266s Setting up python3-installer (0.7.0+dfsg1-3) ... 267s Setting up libgfortran5:armhf (14.2.0-8ubuntu1) ... 267s Setting up python3-bitstruct (8.19.0-1build1) ... 267s Setting up autoconf (2.72-3) ... 267s Setting up python3-pluggy (1.5.0-1) ... 267s Setting up libubsan1:armhf (14.2.0-8ubuntu1) ... 267s Setting up dwz (0.15-1build6) ... 267s Setting up libcrypt-dev:armhf (1:4.4.36-5) ... 267s Setting up libasan8:armhf (14.2.0-8ubuntu1) ... 267s Setting up libjson-perl (4.10000-1) ... 267s Setting up debugedit (1:5.1-1) ... 267s Setting up python3.13-minimal (3.13.0-2) ... 268s Setting up sgml-base (1.31) ... 268s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 268s Setting up libgcc-14-dev:armhf (14.2.0-8ubuntu1) ... 268s Setting up libisl23:armhf (0.27-1) ... 268s Setting up python3-build (1.2.2-1) ... 268s Setting up libc-dev-bin (2.40-1ubuntu3) ... 268s Setting up libpython3.13-stdlib:armhf (3.13.0-2) ... 268s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 268s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-1) ... 268s Setting up libcc1-0:armhf (14.2.0-8ubuntu1) ... 268s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-8ubuntu1) ... 268s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 268s Setting up python3-imagesize (1.4.1-1) ... 268s Setting up automake (1:1.16.5-1.3ubuntu1) ... 268s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 268s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 268s Setting up liblapack3:armhf (3.12.0-3build2) ... 268s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 268s Setting up gettext (0.22.5-2) ... 268s Setting up python3.13 (3.13.0-2) ... 269s Setting up pybuild-plugin-pyproject (6.20241024) ... 269s Setting up python3-pytest (8.3.3-1) ... 270s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-8ubuntu1) ... 270s Setting up python3-all (3.12.7-1) ... 270s Setting up intltool-debian (0.35.0+20060710.6) ... 270s Setting up python3-numpy (1:1.26.4+ds-11ubuntu1) ... 274s Setting up libjs-sphinxdoc (7.4.7-4) ... 274s Setting up cpp-14 (14.2.0-8ubuntu1) ... 274s Setting up dh-strip-nondeterminism (1.14.0-1) ... 274s Setting up xml-core (0.19) ... 274s Setting up libc6-dev:armhf (2.40-1ubuntu3) ... 274s Setting up libstdc++-14-dev:armhf (14.2.0-8ubuntu1) ... 274s Setting up cpp-arm-linux-gnueabihf (4:14.1.0-2ubuntu1) ... 274s Setting up gcc-arm-linux-gnueabihf (4:14.1.0-2ubuntu1) ... 274s Setting up g++-14-arm-linux-gnueabihf (14.2.0-8ubuntu1) ... 274s Setting up po-debconf (1.0.21+nmu1) ... 274s Setting up gcc-14 (14.2.0-8ubuntu1) ... 274s Setting up python-bpack-doc (1.1.0-2) ... 274s Setting up sphinx-common (7.4.7-4) ... 274s Setting up cpp (4:14.1.0-2ubuntu1) ... 274s Setting up g++-14 (14.2.0-8ubuntu1) ... 274s Setting up g++-arm-linux-gnueabihf (4:14.1.0-2ubuntu1) ... 274s Setting up libtool (2.4.7-8) ... 274s Setting up gcc (4:14.1.0-2ubuntu1) ... 274s Setting up dh-autoreconf (20) ... 274s Setting up g++ (4:14.1.0-2ubuntu1) ... 274s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 274s Setting up build-essential (12.10ubuntu1) ... 274s Setting up debhelper (13.20ubuntu1) ... 274s Setting up pybuild-plugin-autopkgtest (6.20241024) ... 274s Processing triggers for libc-bin (2.40-1ubuntu3) ... 275s Processing triggers for systemd (256.5-2ubuntu4) ... 275s Processing triggers for man-db (2.13.0-1) ... 276s Processing triggers for install-info (7.1.1-1) ... 276s Processing triggers for sgml-base (1.31) ... 276s Setting up docutils-common (0.21.2+dfsg-2) ... 276s Processing triggers for sgml-base (1.31) ... 276s Setting up python3-docutils (0.21.2+dfsg-2) ... 277s Setting up python3-sphinx (7.4.7-4) ... 279s Setting up python3-sphinxcontrib.jquery (4.1-5) ... 279s Setting up python3-sphinx-rtd-theme (3.0.2+dfsg-1) ... 279s Setting up autopkgtest-satdep (0) ... 298s (Reading database ... 67146 files and directories currently installed.) 298s Removing autopkgtest-satdep (0) ... 305s autopkgtest [20:41:08]: test pybuild-autopkgtest: pybuild-autopkgtest 305s autopkgtest [20:41:08]: test pybuild-autopkgtest: [----------------------- 307s pybuild-autopkgtest 308s I: pybuild base:311: cd /tmp/autopkgtest.s49zwe/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 309s ============================= test session starts ============================== 309s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 309s rootdir: /tmp/autopkgtest.s49zwe/autopkgtest_tmp/build 309s configfile: pyproject.toml 309s plugins: typeguard-4.4.1 309s collected 1709 items 309s 310s tests/test_backends_codec.py ....FFFF.........FFFFFFFFF........FFFFFFFFF [ 2%] 312s FFFFFF....FFFFFFFFF....FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] 312s tests/test_codecs.py FF [ 6%] 312s tests/test_decoder_ba.py FFF.... [ 6%] 312s tests/test_decoder_np.py F [ 6%] 312s tests/test_desctiptor_utils.py ......................... [ 8%] 312s tests/test_field_descriptor.py ......................................... [ 10%] 312s ............... [ 11%] 313s tests/test_packbits.py ................................................. [ 14%] 313s ........................................................................ [ 18%] 313s ........................................................................ [ 22%] 313s ........................................................................ [ 27%] 313s ........................................................................ [ 31%] 314s ........................................................................ [ 35%] 314s ........................................................................ [ 39%] 315s ........................................................................ [ 43%] 315s ........................................................................ [ 48%] 315s ........................................................................ [ 52%] 315s ........................................................................ [ 56%] 316s ........................................................................ [ 60%] 316s ........................................................................ [ 65%] 316s ........................................................................ [ 69%] 316s ........................................................................ [ 73%] 317s ........................................................................ [ 77%] 317s ........................................................................ [ 81%] 317s ........................................................ [ 85%] 317s tests/test_record_descriptor.py ........................................ [ 87%] 317s ................... [ 88%] 317s tests/test_typing.py ................................................... [ 91%] 318s ........................................................................ [ 95%] 318s .................................................... [ 98%] 318s tests/test_utils.py .................... [100%] 318s 318s =================================== FAILURES =================================== 318s ________________________________ test_attrs[bs] ________________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_attrs(backend): 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________________________ test_attrs[ba] ________________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_attrs(backend): 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________________________ test_attrs[st] ________________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_attrs(backend): 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________________________ test_attrs[np] ________________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_attrs(backend): 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_decoder_func[st BE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_decoder_func[st LE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_decoder_func[np BE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_decoder_func[np LE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_decoder_func[bs BE MSB] _________________________ 318s 318s backend = 318s Record = 318s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_decoder_func[bs LE MSB] _________________________ 318s 318s backend = 318s Record = 318s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_decoder_func[bs BE LSB] _________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_decoder_func[bs LE LSB] _________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_decoder_func[ba BE MSB] _________________________ 318s 318s backend = 318s Record = 318s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_ba, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="ba BE MSB", 318s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 318s decoded_data = Record() 318s 318s > record_type = backend.decoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_encoder_func[st BE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_encoder_func[st LE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_encoder_func[np BE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_encoder_func[np LE] ___________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_encoder_func[bs BE MSB] _________________________ 318s 318s backend = 318s Record = 318s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_encoder_func[bs LE MSB] _________________________ 318s 318s backend = 318s Record = 318s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_encoder_func[bs BE LSB] _________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_encoder_func[bs LE LSB] _________________________ 318s 318s backend = 318s Record = 318s 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' 318s 318s @pytest.mark.parametrize( 318s "backend, Record, encoded_data", 318s [ 318s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 318s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 318s pytest.param( 318s bpack_np, 318s ByteRecordBe, 318s BYTE_ENCODED_DATA_BE, 318s id="np BE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s ByteRecordLe, 318s BYTE_ENCODED_DATA_LE, 318s id="np LE", 318s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeMsb, 318s BIT_ENCODED_DATA_BE_MSB, 318s id="bs BE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeMsb, 318s BIT_ENCODED_DATA_LE_MSB, 318s id="bs LE MSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordBeLsb, 318s BIT_ENCODED_DATA_BE_LSB, 318s id="bs BE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_bs, 318s BitRecordLeLsb, 318s BIT_ENCODED_DATA_LE_LSB, 318s id="bs LE LSB", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 318s record = Record() 318s 318s > record_type = backend.encoder(Record) 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________ test_bit_decoder_decorator_frombytes[bs] ___________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BITS_BACKENDS) 318s def test_bit_decoder_decorator_frombytes(backend): 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:747: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________ test_bit_decoder_decorator_frombytes[ba] ___________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BITS_BACKENDS) 318s def test_bit_decoder_decorator_frombytes(backend): 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:747: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ____________________ test_bit_encoder_decorator_tobytes[bs] ____________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ) 318s ], 318s ) 318s def test_bit_encoder_decorator_tobytes(backend): 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:783: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________________ test_byte_decoder_decorator_frombytes[st] ___________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_decoder_decorator_frombytes(backend): 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:805: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________________ test_byte_decoder_decorator_frombytes[np] ___________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_decoder_decorator_frombytes(backend): 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:805: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________ test_byte_encoder_decorator_tobytes[st] ____________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_encoder_decorator_tobytes(backend): 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:825: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________ test_byte_encoder_decorator_tobytes[np] ____________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_encoder_decorator_tobytes(backend): 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:825: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ test_byte_decoder_native_byteorder_frombytes[st] _______________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_decoder_native_byteorder_frombytes(backend): 318s size = 4 318s value = 1 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:862: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ test_byte_decoder_native_byteorder_frombytes[np] _______________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_decoder_native_byteorder_frombytes(backend): 318s size = 4 318s value = 1 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:862: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________ test_byte_encoder_native_byteorder_tobytes[st] ________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_encoder_native_byteorder_tobytes(backend): 318s size = 4 318s value = 1 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:876: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________ test_byte_encoder_native_byteorder_tobytes[np] ________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 318s def test_byte_encoder_native_byteorder_tobytes(backend): 318s size = 4 318s value = 1 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:876: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ test_bit_decoder_native_byteorder_frombytes[bs] ________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ) 318s ], 318s ) 318s def test_bit_decoder_native_byteorder_frombytes(backend): 318s size = 64 318s value = 1 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:900: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________ test_bit_encoder_native_byteorder_tobytes[bs] _________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ) 318s ], 318s ) 318s def test_bit_encoder_native_byteorder_tobytes(backend): 318s size = 64 318s value = 1 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:927: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ test_bit_decoder_default_byteorder_frombytes[bs] _______________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BITS_BACKENDS) 318s def test_bit_decoder_default_byteorder_frombytes(backend): 318s size = 64 318s value = 1 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:946: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ test_bit_decoder_default_byteorder_frombytes[ba] _______________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", BITS_BACKENDS) 318s def test_bit_decoder_default_byteorder_frombytes(backend): 318s size = 64 318s value = 1 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:946: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________________ test_bit_encoder_default_byteorder_tobytes[bs] ________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ) 318s ], 318s ) 318s def test_bit_encoder_default_byteorder_tobytes(backend): 318s size = 64 318s value = 1 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:974: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_decoding_bytes[bs] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_enum_decoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s ) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s ) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_decoding_bytes[ba] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_enum_decoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s ) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s ) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_decoding_bytes[st] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_enum_decoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s ) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s ) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_decoding_bytes[np] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize("backend", ALL_BACKENDS) 318s def test_enum_decoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s ) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = b"".join( 318s [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s ) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_encoding_bytes[st] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s id="np", 318s marks=skipif(not bpack_np, reason="not available"), 318s ), 318s ], 318s ) 318s def test_enum_encoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s encoded_data = b"".join(encoded_data) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s encoded_data = b"".join(encoded_data) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_encoding_bytes[bs] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s id="np", 318s marks=skipif(not bpack_np, reason="not available"), 318s ), 318s ], 318s ) 318s def test_enum_encoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s encoded_data = b"".join(encoded_data) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s encoded_data = b"".join(encoded_data) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _________________________ test_enum_encoding_bytes[np] _________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s pytest.param( 318s bpack_np, 318s id="np", 318s marks=skipif(not bpack_np, reason="not available"), 318s ), 318s ], 318s ) 318s def test_enum_encoding_bytes(backend): 318s class EStrEnumType(enum.Enum): 318s A = "a" 318s B = "b" 318s 318s class EBytesEnumType(enum.Enum): 318s A = b"a" 318s B = b"b" 318s 318s class EIntEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s class EFlagEnumType(enum.Enum): 318s A = 1 318s B = 2 318s 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s ssize = 1 318s isize = 1 318s encoded_data = [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 318s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 318s ] 318s encoded_data = b"".join(encoded_data) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s ssize = 8 318s isize = 4 318s encoded_data = [ 318s EStrEnumType.A.value.encode("ascii"), 318s EBytesEnumType.A.value, 318s bytes([0b00010001]), 318s ] 318s encoded_data = b"".join(encoded_data) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_decode_sequence[st] ___________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decode_sequence(backend): 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s size = 1 318s repeat = 2 318s encoded_data = bytes([3, 3, 4, 4]) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s size = 4 318s repeat = 2 318s encoded_data = bytes([0b00110011, 0b01000100]) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_decode_sequence[bs] ___________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_decode_sequence(backend): 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s size = 1 318s repeat = 2 318s encoded_data = bytes([3, 3, 4, 4]) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s size = 4 318s repeat = 2 318s encoded_data = bytes([0b00110011, 0b01000100]) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_encode_sequence[st] ___________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encode_sequence(backend): 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s size = 1 318s repeat = 2 318s encoded_data = bytes([3, 3, 4, 4]) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s size = 4 318s repeat = 2 318s encoded_data = bytes([0b00110011, 0b01000100]) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ___________________________ test_encode_sequence[bs] ___________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_encode_sequence(backend): 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 318s bitorder = None 318s size = 1 318s repeat = 2 318s encoded_data = bytes([3, 3, 4, 4]) 318s else: 318s bitorder = bpack.EBitOrder.MSB 318s size = 4 318s repeat = 2 318s encoded_data = bytes([0b00110011, 0b01000100]) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_decoder[st] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_decoder(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s > @backend.decoder # NOTE: this is a decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_decoder[bs] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_decoder(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s > @backend.decoder # NOTE: this is a decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_decoder[np] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_decoder(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s > @backend.decoder # NOTE: this is a decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_encoder[st] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_encoder(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s > @backend.encoder # NOTE: this is an encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_encoder[bs] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_encoder(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s > @backend.encoder # NOTE: this is an encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_encoder[np] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_encoder(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s > @backend.encoder # NOTE: this is an encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ______________ TestNestedRecord.test_nested_record_frombytes[st] _______________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_frombytes(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s # NOTE: this time the inner record is not a decoder 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class Record: 318s field_1: int = bpack.field(size=4, default=1) 318s field_2: int = bpack.field(size=4, default=2) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ______________ TestNestedRecord.test_nested_record_frombytes[bs] _______________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_frombytes(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s # NOTE: this time the inner record is not a decoder 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class Record: 318s field_1: int = bpack.field(size=4, default=1) 318s field_2: int = bpack.field(size=4, default=2) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ______________ TestNestedRecord.test_nested_record_frombytes[np] _______________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_frombytes(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s # NOTE: this time the inner record is not a decoder 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class Record: 318s field_1: int = bpack.field(size=4, default=1) 318s field_2: int = bpack.field(size=4, default=2) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_tobytes[st] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_tobytes(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s # NOTE: this time the inner record is not a decoder 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class Record: 318s field_1: int = bpack.field(size=4, default=1) 318s field_2: int = bpack.field(size=4, default=2) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_tobytes[bs] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_tobytes(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s # NOTE: this time the inner record is not a decoder 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class Record: 318s field_1: int = bpack.field(size=4, default=1) 318s field_2: int = bpack.field(size=4, default=2) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______________ TestNestedRecord.test_nested_record_tobytes[np] ________________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_tobytes(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s 318s # NOTE: this time the inner record is not a decoder 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class Record: 318s field_1: int = bpack.field(size=4, default=1) 318s field_2: int = bpack.field(size=4, default=2) 318s 318s > @backend.encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________ TestNestedRecord.test_nested_record_decoder_with_order[st] __________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_decoder_with_order(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 318s kwargs = dict(bitorder=">", byteorder=">") 318s else: 318s # TODO: use the default byteorder (see get_encoded_data) 318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 318s 318s > @backend.decoder # NOTE: this is a decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________ TestNestedRecord.test_nested_record_decoder_with_order[bs] __________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_decoder_with_order(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 318s kwargs = dict(bitorder=">", byteorder=">") 318s else: 318s # TODO: use the default byteorder (see get_encoded_data) 318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 318s 318s > @backend.decoder # NOTE: this is a decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________ TestNestedRecord.test_nested_record_decoder_with_order[np] __________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_decoder_with_order(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 318s kwargs = dict(bitorder=">", byteorder=">") 318s else: 318s # TODO: use the default byteorder (see get_encoded_data) 318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 318s 318s > @backend.decoder # NOTE: this is a decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________ TestNestedRecord.test_nested_record_encoder_with_order[st] __________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_encoder_with_order(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 318s kwargs = dict(bitorder=">", byteorder=">") 318s else: 318s # TODO: use the default byteorder (see get_encoded_data) 318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 318s 318s > @backend.encoder # NOTE: this is a encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________ TestNestedRecord.test_nested_record_encoder_with_order[bs] __________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_encoder_with_order(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 318s kwargs = dict(bitorder=">", byteorder=">") 318s else: 318s # TODO: use the default byteorder (see get_encoded_data) 318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 318s 318s > @backend.encoder # NOTE: this is a encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s __________ TestNestedRecord.test_nested_record_encoder_with_order[np] __________ 318s 318s self = 318s backend = 318s 318s def test_nested_record_encoder_with_order(self, backend): 318s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 318s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 318s kwargs = dict(bitorder=">", byteorder=">") 318s else: 318s # TODO: use the default byteorder (see get_encoded_data) 318s kwargs = dict(byteorder=bpack.EByteOrder.LE) 318s 318s > @backend.encoder # NOTE: this is a encoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[st] ________ 318s 318s self = 318s backend = 318s 318s def test_decode_nested_record_two_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s FOUR = 4 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_02: int = bpack.field(size=4, default=2) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[bs] ________ 318s 318s self = 318s backend = 318s 318s def test_decode_nested_record_two_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s FOUR = 4 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_02: int = bpack.field(size=4, default=2) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[st] ________ 318s 318s self = 318s backend = 318s 318s def test_encode_nested_record_two_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s FOUR = 4 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_02: int = bpack.field(size=4, default=2) 318s 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[bs] ________ 318s 318s self = 318s backend = 318s 318s def test_encode_nested_record_two_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s FOUR = 4 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_02: int = bpack.field(size=4, default=2) 318s 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[st] _______ 318s 318s self = 318s backend = 318s 318s def test_decode_nested_record_three_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s TWO = 2 318s SEVEN = 7 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 318s ) 318s field_03: int = bpack.field(size=4, default=4) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[bs] _______ 318s 318s self = 318s backend = 318s 318s def test_decode_nested_record_three_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s TWO = 2 318s SEVEN = 7 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 318s ) 318s field_03: int = bpack.field(size=4, default=4) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[st] _______ 318s 318s self = 318s backend = 318s 318s def test_encode_nested_record_three_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s TWO = 2 318s SEVEN = 7 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 318s ) 318s field_03: int = bpack.field(size=4, default=4) 318s 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[bs] _______ 318s 318s self = 318s backend = 318s 318s def test_encode_nested_record_three_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s TWO = 2 318s SEVEN = 7 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 318s ) 318s field_03: int = bpack.field(size=4, default=4) 318s 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[st] ________ 318s 318s self = 318s backend = 318s 318s def test_decode_nested_record_four_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s THREE = 3 318s TEN = 10 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel04: 318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_0002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: int = bpack.field(size=4, default=1) 318s field_002: RecordLevel04 = bpack.field( 318s default_factory=RecordLevel04 318s ) 318s field_003: int = bpack.field(size=4, default=3) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial( 318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 318s ) 318s ) 318s field_03: int = bpack.field(size=4, default=6) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[bs] ________ 318s 318s self = 318s backend = 318s 318s def test_decode_nested_record_four_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s THREE = 3 318s TEN = 10 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel04: 318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_0002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: int = bpack.field(size=4, default=1) 318s field_002: RecordLevel04 = bpack.field( 318s default_factory=RecordLevel04 318s ) 318s field_003: int = bpack.field(size=4, default=3) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial( 318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 318s ) 318s ) 318s field_03: int = bpack.field(size=4, default=6) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[st] ________ 318s 318s self = 318s backend = 318s 318s def test_encode_nested_record_four_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s THREE = 3 318s TEN = 10 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel04: 318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_0002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: int = bpack.field(size=4, default=1) 318s field_002: RecordLevel04 = bpack.field( 318s default_factory=RecordLevel04 318s ) 318s field_003: int = bpack.field(size=4, default=3) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial( 318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 318s ) 318s ) 318s field_03: int = bpack.field(size=4, default=6) 318s 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[bs] ________ 318s 318s self = 318s backend = 318s 318s def test_encode_nested_record_four_levels(self, backend): 318s class EEnum(enum.Enum): 318s ONE = 1 318s THREE = 3 318s TEN = 10 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel04: 318s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 318s field_0002: int = bpack.field(size=4, default=2) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel03: 318s field_001: int = bpack.field(size=4, default=1) 318s field_002: RecordLevel04 = bpack.field( 318s default_factory=RecordLevel04 318s ) 318s field_003: int = bpack.field(size=4, default=3) 318s 318s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 318s class RecordLevel02: 318s field_01: int = bpack.field(size=4, default=1) 318s field_02: RecordLevel03 = bpack.field( 318s default_factory=functools.partial( 318s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 318s ) 318s ) 318s field_03: int = bpack.field(size=4, default=6) 318s 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ____________________________ test_codec_helpers[st] ____________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_codec_helpers(backend): 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s ____________________________ test_codec_helpers[bs] ____________________________ 318s 318s backend = 318s 318s @pytest.mark.parametrize( 318s "backend", 318s [ 318s pytest.param(bpack.st, id="st"), 318s pytest.param( 318s bpack_bs, 318s id="bs", 318s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 318s ), 318s ], 318s ) 318s def test_codec_helpers(backend): 318s > @backend.codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _____________________________ test_float[float16] ______________________________ 318s 318s size = 16, data = b'<\x00' 318s 318s @pytest.mark.parametrize( 318s "size, data", 318s [ 318s # fmt: off 318s (16, bytes([0b00111100, 0b00000000])), 318s (32, bytes([0b00111111, 0b10000000, 0b00000000, 0b00000000])), 318s (64, bytes([0b00111111, 0b11110000, 0b00000000, 0b00000000, 318s 0b00000000, 0b00000000, 0b00000000, 0b00000000])), 318s # fmt: on 318s ], 318s ids=["float16", "float32", "float64"], 318s ) 318s def test_float(size, data): 318s backend = bpack_ba 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_ba.py:28: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _____________________________ test_float[float32] ______________________________ 318s 318s size = 32, data = b'?\x80\x00\x00' 318s 318s @pytest.mark.parametrize( 318s "size, data", 318s [ 318s # fmt: off 318s (16, bytes([0b00111100, 0b00000000])), 318s (32, bytes([0b00111111, 0b10000000, 0b00000000, 0b00000000])), 318s (64, bytes([0b00111111, 0b11110000, 0b00000000, 0b00000000, 318s 0b00000000, 0b00000000, 0b00000000, 0b00000000])), 318s # fmt: on 318s ], 318s ids=["float16", "float32", "float64"], 318s ) 318s def test_float(size, data): 318s backend = bpack_ba 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_ba.py:28: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _____________________________ test_float[float64] ______________________________ 318s 318s size = 64, data = b'?\xf0\x00\x00\x00\x00\x00\x00' 318s 318s @pytest.mark.parametrize( 318s "size, data", 318s [ 318s # fmt: off 318s (16, bytes([0b00111100, 0b00000000])), 318s (32, bytes([0b00111111, 0b10000000, 0b00000000, 0b00000000])), 318s (64, bytes([0b00111111, 0b11110000, 0b00000000, 0b00000000, 318s 0b00000000, 0b00000000, 0b00000000, 0b00000000])), 318s # fmt: on 318s ], 318s ids=["float16", "float32", "float64"], 318s ) 318s def test_float(size, data): 318s backend = bpack_ba 318s codec = getattr(backend, "codec", backend.decoder) 318s 318s > @codec 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_ba.py:28: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s _____________________________ test_decode_sequence _____________________________ 318s 318s def test_decode_sequence(): 318s backend = bpack_np 318s bitorder = None 318s size = 1 318s repeat = 2 318s encoded_data = bytes([3, 3, 4, 4]) 318s 318s > @backend.decoder 318s 318s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_np.py:19: 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 318s return wrap(cls) 318s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 318s return func(klass, **kwargs) 318s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 318s decode_func = bpack.utils.create_fn( 318s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 318s 318s name = 'frombytes', args = ('cls', 'data') 318s body = ['return cls.__bpack_decoder__.decode(data)'] 318s 318s def create_fn( 318s name, 318s args, 318s body, 318s *, 318s globals=None, # noqa: A002 318s locals=None, # noqa: A002 318s return_type=dataclasses.MISSING, 318s ): 318s """Create a function object.""" 318s > return dataclasses._create_fn( 318s name, 318s args, 318s body, 318s globals=globals, 318s locals=locals, 318s return_type=return_type, 318s ) 318s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 318s 318s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 318s =========================== short test summary info ============================ 318s FAILED tests/test_backends_codec.py::test_attrs[bs] - AttributeError: module ... 318s FAILED tests/test_backends_codec.py::test_attrs[ba] - AttributeError: module ... 318s FAILED tests/test_backends_codec.py::test_attrs[st] - AttributeError: module ... 318s FAILED tests/test_backends_codec.py::test_attrs[np] - AttributeError: module ... 318s FAILED tests/test_backends_codec.py::test_decoder_func[st BE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_decoder_func[st LE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_decoder_func[np BE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_decoder_func[np LE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE MSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE MSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE LSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE LSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_decoder_func[ba BE MSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_encoder_func[st BE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_encoder_func[st LE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_encoder_func[np BE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_encoder_func[np LE] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE MSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE MSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE LSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE LSB] - Attribute... 318s FAILED tests/test_backends_codec.py::test_bit_decoder_decorator_frombytes[bs] 318s FAILED tests/test_backends_codec.py::test_bit_decoder_decorator_frombytes[ba] 318s FAILED tests/test_backends_codec.py::test_bit_encoder_decorator_tobytes[bs] 318s FAILED tests/test_backends_codec.py::test_byte_decoder_decorator_frombytes[st] 318s FAILED tests/test_backends_codec.py::test_byte_decoder_decorator_frombytes[np] 318s FAILED tests/test_backends_codec.py::test_byte_encoder_decorator_tobytes[st] 318s FAILED tests/test_backends_codec.py::test_byte_encoder_decorator_tobytes[np] 318s FAILED tests/test_backends_codec.py::test_byte_decoder_native_byteorder_frombytes[st] 318s FAILED tests/test_backends_codec.py::test_byte_decoder_native_byteorder_frombytes[np] 318s FAILED tests/test_backends_codec.py::test_byte_encoder_native_byteorder_tobytes[st] 318s FAILED tests/test_backends_codec.py::test_byte_encoder_native_byteorder_tobytes[np] 318s FAILED tests/test_backends_codec.py::test_bit_decoder_native_byteorder_frombytes[bs] 318s FAILED tests/test_backends_codec.py::test_bit_encoder_native_byteorder_tobytes[bs] 318s FAILED tests/test_backends_codec.py::test_bit_decoder_default_byteorder_frombytes[bs] 318s FAILED tests/test_backends_codec.py::test_bit_decoder_default_byteorder_frombytes[ba] 318s FAILED tests/test_backends_codec.py::test_bit_encoder_default_byteorder_tobytes[bs] 318s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[bs] - Attribute... 318s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[ba] - Attribute... 318s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[st] - Attribute... 318s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[np] - Attribute... 318s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[st] - Attribute... 318s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[bs] - Attribute... 318s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[np] - Attribute... 318s FAILED tests/test_backends_codec.py::test_decode_sequence[st] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_decode_sequence[bs] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_encode_sequence[st] - AttributeErro... 318s FAILED tests/test_backends_codec.py::test_encode_sequence[bs] - AttributeErro... 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[st] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[bs] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[np] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[st] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[bs] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[np] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[st] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[bs] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[np] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[st] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[bs] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[np] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[st] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[bs] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[np] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[st] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[bs] 318s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[np] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[st] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[bs] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[st] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[bs] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[st] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[bs] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[st] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[bs] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[st] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[bs] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[st] 318s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[bs] 318s FAILED tests/test_codecs.py::test_codec_helpers[st] - AttributeError: module ... 318s FAILED tests/test_codecs.py::test_codec_helpers[bs] - AttributeError: module ... 318s FAILED tests/test_decoder_ba.py::test_float[float16] - AttributeError: module... 318s FAILED tests/test_decoder_ba.py::test_float[float32] - AttributeError: module... 318s FAILED tests/test_decoder_ba.py::test_float[float64] - AttributeError: module... 318s FAILED tests/test_decoder_np.py::test_decode_sequence - AttributeError: modul... 318s ======================= 84 failed, 1625 passed in 9.75s ======================== 318s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.s49zwe/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 318s I: pybuild base:311: cd /tmp/autopkgtest.s49zwe/autopkgtest_tmp/build; python3.12 -m pytest --pyargs bpack 319s ============================= test session starts ============================== 319s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 319s rootdir: /tmp/autopkgtest.s49zwe/autopkgtest_tmp/build 319s configfile: pyproject.toml 319s plugins: typeguard-4.4.1 319s collected 1709 items 319s 319s tests/test_backends_codec.py ........................................... [ 2%] 319s ................................................................ [ 6%] 319s tests/test_codecs.py .. [ 6%] 319s tests/test_decoder_ba.py ....... [ 6%] 319s tests/test_decoder_np.py . [ 6%] 319s tests/test_desctiptor_utils.py ......................... [ 8%] 319s tests/test_field_descriptor.py ......................................... [ 10%] 319s ............... [ 11%] 319s tests/test_packbits.py ................................................. [ 14%] 319s ........................................................................ [ 18%] 320s ........................................................................ [ 22%] 320s ........................................................................ [ 27%] 320s ........................................................................ [ 31%] 321s ........................................................................ [ 35%] 321s ........................................................................ [ 39%] 322s ........................................................................ [ 43%] 322s ........................................................................ [ 48%] 322s ........................................................................ [ 52%] 322s ........................................................................ [ 56%] 323s ........................................................................ [ 60%] 323s ........................................................................ [ 65%] 323s ........................................................................ [ 69%] 323s ........................................................................ [ 73%] 324s ........................................................................ [ 77%] 324s ........................................................................ [ 81%] 324s ........................................................ [ 85%] 324s tests/test_record_descriptor.py ........................................ [ 87%] 325s ................... [ 88%] 325s tests/test_typing.py ................................................... [ 91%] 325s ........................................................................ [ 95%] 325s .................................................... [ 98%] 325s tests/test_utils.py .................... [100%] 325s 325s ============================= 1709 passed in 6.52s ============================= 325s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 325s make: *** [/tmp/N916DVxA2O/run:4: pybuild-autopkgtest] Error 25 325s pybuild-autopkgtest: error: /tmp/N916DVxA2O/run pybuild-autopkgtest returned exit code 2 325s autopkgtest [20:41:28]: test pybuild-autopkgtest: -----------------------] 329s pybuild-autopkgtest FAIL non-zero exit status 25 329s autopkgtest [20:41:32]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 333s autopkgtest [20:41:36]: @@@@@@@@@@@@@@@@@@@@ summary 333s pybuild-autopkgtest FAIL non-zero exit status 25