0s autopkgtest [10:51:47]: starting date and time: 2024-11-13 10:51:47+0000 0s autopkgtest [10:51:47]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [10:51:47]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.k9o794p0/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults,src:python3-stdlib-extensions --apt-upgrade bpack --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-23.secgroup --name adt-plucky-ppc64el-bpack-20241113-103705-juju-7f2275-prod-proposed-migration-environment-15-5c62174a-861d-4201-9bde-ca0a7f499b9b --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 163s autopkgtest [10:54:30]: testbed dpkg architecture: ppc64el 164s autopkgtest [10:54:31]: testbed apt version: 2.9.8 164s autopkgtest [10:54:31]: @@@@@@@@@@@@@@@@@@@@ test bed setup 171s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 171s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 171s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 171s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 171s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 171s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [86.2 kB] 171s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [588 kB] 172s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [19.6 kB] 172s Fetched 1715 kB in 1s (1759 kB/s) 172s Reading package lists... 182s Reading package lists... 182s Building dependency tree... 182s Reading state information... 182s Calculating upgrade... 183s The following NEW packages will be installed: 183s python3.13-gdbm 183s The following packages will be upgraded: 183s libpython3-stdlib python3 python3-gdbm python3-minimal 183s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 183s Need to get 102 kB of archives. 183s After this operation, 141 kB of additional disk space will be used. 183s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.12.7-1 [27.4 kB] 183s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.12.7-1 [24.0 kB] 183s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.12.7-1 [10.0 kB] 183s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-gdbm ppc64el 3.13.0-2 [31.5 kB] 183s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-gdbm ppc64el 3.12.7-1 [8640 B] 183s Fetched 102 kB in 0s (288 kB/s) 184s (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 ... 73767 files and directories currently installed.) 184s Preparing to unpack .../python3-minimal_3.12.7-1_ppc64el.deb ... 184s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 184s Setting up python3-minimal (3.12.7-1) ... 184s (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 ... 73767 files and directories currently installed.) 184s Preparing to unpack .../python3_3.12.7-1_ppc64el.deb ... 184s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 184s Preparing to unpack .../libpython3-stdlib_3.12.7-1_ppc64el.deb ... 184s Unpacking libpython3-stdlib:ppc64el (3.12.7-1) over (3.12.6-0ubuntu1) ... 184s Selecting previously unselected package python3.13-gdbm. 184s Preparing to unpack .../python3.13-gdbm_3.13.0-2_ppc64el.deb ... 184s Unpacking python3.13-gdbm (3.13.0-2) ... 184s Preparing to unpack .../python3-gdbm_3.12.7-1_ppc64el.deb ... 184s Unpacking python3-gdbm:ppc64el (3.12.7-1) over (3.12.6-1ubuntu1) ... 184s Setting up python3.13-gdbm (3.13.0-2) ... 184s Setting up libpython3-stdlib:ppc64el (3.12.7-1) ... 184s Setting up python3 (3.12.7-1) ... 184s Setting up python3-gdbm:ppc64el (3.12.7-1) ... 184s Processing triggers for man-db (2.12.1-3) ... 185s Reading package lists... 186s Building dependency tree... 186s Reading state information... 186s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 187s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 187s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 187s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 187s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 188s Reading package lists... 188s Reading package lists... 188s Building dependency tree... 188s Reading state information... 188s Calculating upgrade... 189s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 189s Reading package lists... 189s Building dependency tree... 189s Reading state information... 189s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 223s autopkgtest [10:55:30]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 225s autopkgtest [10:55:32]: @@@@@@@@@@@@@@@@@@@@ apt-source bpack 248s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (dsc) [3063 B] 248s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (tar) [62.0 kB] 248s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bpack 1.1.0-2 (diff) [3532 B] 248s gpgv: Signature made Tue Jun 18 21:16:10 2024 UTC 248s gpgv: using RSA key 8182DE417056408D614650D16750F10AE88D4AF1 248s gpgv: Can't check signature: No public key 248s dpkg-source: warning: cannot verify inline signature for ./bpack_1.1.0-2.dsc: no acceptable signature found 248s autopkgtest [10:55:55]: testing package bpack version 1.1.0-2 259s autopkgtest [10:56:06]: build not needed 265s autopkgtest [10:56:12]: test pybuild-autopkgtest: preparing testbed 270s Reading package lists... 271s Building dependency tree... 271s Reading state information... 271s Starting pkgProblemResolver with broken count: 0 271s Starting 2 pkgProblemResolver with broken count: 0 271s Done 271s The following additional packages will be installed: 271s autoconf automake autopoint autotools-dev build-essential cpp cpp-14 271s cpp-14-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu debhelper debugedit 271s dh-autoreconf dh-python dh-strip-nondeterminism docutils-common dwz 271s fonts-font-awesome fonts-lato g++ g++-14 g++-14-powerpc64le-linux-gnu 271s g++-powerpc64le-linux-gnu gcc gcc-14 gcc-14-powerpc64le-linux-gnu 271s gcc-powerpc64le-linux-gnu gettext intltool-debian libarchive-zip-perl 271s libasan8 libblas3 libcc1-0 libdebhelper-perl 271s libfile-stripnondeterminism-perl libgcc-14-dev libgfortran5 libgomp1 271s libisl23 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl 271s liblapack3 liblsan0 libmpc3 libpython3.13-minimal libpython3.13-stdlib 271s libquadmath0 libstdc++-14-dev libtool libtsan2 libubsan1 m4 po-debconf 271s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python-bpack-doc 271s python3-alabaster python3-all python3-bitarray python3-bitstruct 271s python3-bpack python3-build python3-defusedxml python3-docutils 271s python3-imagesize python3-iniconfig python3-installer python3-numpy 271s python3-packaging python3-pluggy python3-pyproject-hooks python3-pytest 271s python3-roman python3-snowballstemmer python3-sphinx 271s python3-sphinx-rtd-theme python3-sphinxcontrib.jquery python3-toml 271s python3-wheel python3.13 python3.13-minimal sgml-base sphinx-common 271s sphinx-rtd-theme-common xml-core 271s Suggested packages: 271s autoconf-archive gnu-standards autoconf-doc cpp-doc gcc-14-locales 271s cpp-14-doc dh-make flit gcc-14-doc gcc-multilib manpages-dev flex bison gdb 271s gcc-doc gdb-powerpc64le-linux-gnu gettext-doc libasprintf-dev 271s libgettextpo-dev libstdc++-14-doc libtool-doc gfortran | fortran95-compiler 271s gcj-jdk m4-doc libmail-box-perl www-browser python3-pip python3-venv 271s python-build-doc docutils-doc fonts-linuxlibertine | ttf-linux-libertine 271s texlive-lang-french texlive-latex-base texlive-latex-recommended 271s python-installer-doc gfortran python-numpy-doc python3-dev python3-stemmer 271s dvipng dvisvgm fonts-freefont-otf imagemagick-6.q16 latexmk libjs-mathjax 271s sphinx-doc tex-gyre texlive-fonts-extra texlive-fonts-recommended 271s texlive-latex-extra texlive-plain-generic python3.13-venv python3.13-doc 271s binfmt-support sgml-base-doc 271s Recommended packages: 271s libarchive-cpio-perl javascript-common libjson-xs-perl libltdl-dev 271s libmail-sendmail-perl libpaper-utils python3-pil 271s The following NEW packages will be installed: 271s autoconf automake autopkgtest-satdep autopoint autotools-dev build-essential 271s cpp cpp-14 cpp-14-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu debhelper 271s debugedit dh-autoreconf dh-python dh-strip-nondeterminism docutils-common 271s dwz fonts-font-awesome fonts-lato g++ g++-14 g++-14-powerpc64le-linux-gnu 271s g++-powerpc64le-linux-gnu gcc gcc-14 gcc-14-powerpc64le-linux-gnu 271s gcc-powerpc64le-linux-gnu gettext intltool-debian libarchive-zip-perl 271s libasan8 libblas3 libcc1-0 libdebhelper-perl 271s libfile-stripnondeterminism-perl libgcc-14-dev libgfortran5 libgomp1 271s libisl23 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl 271s liblapack3 liblsan0 libmpc3 libpython3.13-minimal libpython3.13-stdlib 271s libquadmath0 libstdc++-14-dev libtool libtsan2 libubsan1 m4 po-debconf 271s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python-bpack-doc 271s python3-alabaster python3-all python3-bitarray python3-bitstruct 271s python3-bpack python3-build python3-defusedxml python3-docutils 271s python3-imagesize python3-iniconfig python3-installer python3-numpy 271s python3-packaging python3-pluggy python3-pyproject-hooks python3-pytest 271s python3-roman python3-snowballstemmer python3-sphinx 271s python3-sphinx-rtd-theme python3-sphinxcontrib.jquery python3-toml 271s python3-wheel python3.13 python3.13-minimal sgml-base sphinx-common 271s sphinx-rtd-theme-common xml-core 271s 0 upgraded, 88 newly installed, 0 to remove and 0 not upgraded. 271s Need to get 84.2 MB/84.2 MB of archives. 271s After this operation, 315 MB of additional disk space will be used. 271s Get:1 /tmp/autopkgtest.nVYqYa/1-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [840 B] 271s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el fonts-lato all 2.015-1 [2781 kB] 272s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.0-2 [881 kB] 272s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.0-2 [2302 kB] 272s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el sgml-base all 1.31 [11.4 kB] 272s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el m4 ppc64el 1.4.19-4build1 [278 kB] 272s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el autoconf all 2.72-3 [382 kB] 272s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el autotools-dev all 20220109.1 [44.9 kB] 272s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el automake all 1:1.16.5-1.3ubuntu1 [558 kB] 272s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el autopoint all 0.22.5-2 [616 kB] 272s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 272s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el libmpc3 ppc64el 1.3.1-1build2 [62.1 kB] 272s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14-powerpc64le-linux-gnu ppc64el 14.2.0-8ubuntu1 [10.5 MB] 272s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14 ppc64el 14.2.0-8ubuntu1 [1034 B] 272s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [5456 B] 272s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp ppc64el 4:14.1.0-2ubuntu1 [22.5 kB] 272s Get:17 http://ftpmaster.internal/ubuntu plucky/main ppc64el libcc1-0 ppc64el 14.2.0-8ubuntu1 [48.1 kB] 272s Get:18 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgomp1 ppc64el 14.2.0-8ubuntu1 [161 kB] 272s Get:19 http://ftpmaster.internal/ubuntu plucky/main ppc64el libitm1 ppc64el 14.2.0-8ubuntu1 [31.9 kB] 272s Get:20 http://ftpmaster.internal/ubuntu plucky/main ppc64el libasan8 ppc64el 14.2.0-8ubuntu1 [2945 kB] 272s Get:21 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblsan0 ppc64el 14.2.0-8ubuntu1 [1322 kB] 272s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtsan2 ppc64el 14.2.0-8ubuntu1 [2695 kB] 273s Get:23 http://ftpmaster.internal/ubuntu plucky/main ppc64el libubsan1 ppc64el 14.2.0-8ubuntu1 [1191 kB] 273s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el libquadmath0 ppc64el 14.2.0-8ubuntu1 [158 kB] 273s Get:25 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgcc-14-dev ppc64el 14.2.0-8ubuntu1 [1619 kB] 273s Get:26 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14-powerpc64le-linux-gnu ppc64el 14.2.0-8ubuntu1 [20.6 MB] 273s Get:27 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14 ppc64el 14.2.0-8ubuntu1 [528 kB] 273s Get:28 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [1222 B] 273s Get:29 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc ppc64el 4:14.1.0-2ubuntu1 [5006 B] 273s Get:30 http://ftpmaster.internal/ubuntu plucky/main ppc64el libstdc++-14-dev ppc64el 14.2.0-8ubuntu1 [2673 kB] 273s Get:31 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14-powerpc64le-linux-gnu ppc64el 14.2.0-8ubuntu1 [12.0 MB] 274s Get:32 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14 ppc64el 14.2.0-8ubuntu1 [19.9 kB] 274s Get:33 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [968 B] 274s Get:34 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++ ppc64el 4:14.1.0-2ubuntu1 [1090 B] 274s Get:35 http://ftpmaster.internal/ubuntu plucky/main ppc64el build-essential ppc64el 12.10ubuntu1 [4936 B] 274s Get:36 http://ftpmaster.internal/ubuntu plucky/main ppc64el libdebhelper-perl all 13.20ubuntu1 [94.2 kB] 274s Get:37 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtool all 2.4.7-7build1 [166 kB] 274s Get:38 http://ftpmaster.internal/ubuntu plucky/main ppc64el dh-autoreconf all 20 [16.1 kB] 274s Get:39 http://ftpmaster.internal/ubuntu plucky/main ppc64el libarchive-zip-perl all 1.68-1 [90.2 kB] 274s Get:40 http://ftpmaster.internal/ubuntu plucky/main ppc64el libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 274s Get:41 http://ftpmaster.internal/ubuntu plucky/main ppc64el dh-strip-nondeterminism all 1.14.0-1 [5058 B] 274s Get:42 http://ftpmaster.internal/ubuntu plucky/main ppc64el debugedit ppc64el 1:5.1-1 [52.1 kB] 274s Get:43 http://ftpmaster.internal/ubuntu plucky/main ppc64el dwz ppc64el 0.15-1build6 [142 kB] 274s Get:44 http://ftpmaster.internal/ubuntu plucky/main ppc64el gettext ppc64el 0.22.5-2 [1082 kB] 274s Get:45 http://ftpmaster.internal/ubuntu plucky/main ppc64el intltool-debian all 0.35.0+20060710.6 [23.2 kB] 274s Get:46 http://ftpmaster.internal/ubuntu plucky/main ppc64el po-debconf all 1.0.21+nmu1 [233 kB] 274s Get:47 http://ftpmaster.internal/ubuntu plucky/main ppc64el debhelper all 13.20ubuntu1 [893 kB] 274s Get:48 http://ftpmaster.internal/ubuntu plucky/universe ppc64el dh-python all 6.20241024 [112 kB] 274s Get:49 http://ftpmaster.internal/ubuntu plucky/main ppc64el xml-core all 0.19 [20.3 kB] 274s Get:50 http://ftpmaster.internal/ubuntu plucky/main ppc64el docutils-common all 0.21.2+dfsg-2 [131 kB] 274s Get:51 http://ftpmaster.internal/ubuntu plucky/main ppc64el fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 274s Get:52 http://ftpmaster.internal/ubuntu plucky/main ppc64el libblas3 ppc64el 3.12.0-3build2 [222 kB] 274s Get:53 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgfortran5 ppc64el 14.2.0-8ubuntu1 [571 kB] 274s Get:54 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 274s Get:55 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 274s Get:56 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjs-sphinxdoc all 7.4.7-4 [158 kB] 274s Get:57 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-perl all 4.10000-1 [81.9 kB] 274s Get:58 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblapack3 ppc64el 3.12.0-3build2 [2806 kB] 274s Get:59 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.0-2 [2148 kB] 274s Get:60 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pybuild-plugin-autopkgtest all 6.20241024 [1746 B] 274s Get:61 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.1-1 [41.4 kB] 274s Get:62 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 274s Get:63 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-toml all 0.10.2-1 [16.5 kB] 274s Get:64 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-wheel all 0.44.0-1 [54.2 kB] 274s Get:65 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-build all 1.2.2-1 [31.0 kB] 274s Get:66 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 274s Get:67 http://ftpmaster.internal/ubuntu plucky/universe ppc64el pybuild-plugin-pyproject all 6.20241024 [1728 B] 274s Get:68 http://ftpmaster.internal/ubuntu plucky/main ppc64el sphinx-rtd-theme-common all 3.0.1+dfsg-1 [1012 kB] 274s Get:69 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python-bpack-doc all 1.1.0-2 [100 kB] 274s Get:70 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.0-2 [719 kB] 274s Get:71 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-all ppc64el 3.12.7-1 [888 B] 274s Get:72 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-bitarray ppc64el 2.9.2-1build1 [166 kB] 274s Get:73 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-bitstruct ppc64el 8.19.0-1 [27.2 kB] 274s Get:74 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-bpack all 1.1.0-2 [34.5 kB] 274s Get:75 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-defusedxml all 0.7.1-2 [42.0 kB] 274s Get:76 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-roman all 4.2-1 [10.0 kB] 274s Get:77 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-docutils all 0.21.2+dfsg-2 [409 kB] 274s Get:78 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-imagesize all 1.4.1-1 [6844 B] 274s Get:79 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 274s Get:80 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-numpy ppc64el 1:1.26.4+ds-11build1 [4434 kB] 274s Get:81 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 274s Get:82 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 274s Get:83 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 274s Get:84 http://ftpmaster.internal/ubuntu plucky/main ppc64el sphinx-common all 7.4.7-4 [775 kB] 274s Get:85 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-alabaster all 0.7.16-0.1 [18.5 kB] 274s Get:86 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-sphinx all 7.4.7-4 [593 kB] 274s Get:87 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sphinxcontrib.jquery all 4.1-5 [6678 B] 274s Get:88 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sphinx-rtd-theme all 3.0.1+dfsg-1 [23.5 kB] 275s Fetched 84.2 MB in 3s (27.4 MB/s) 275s Selecting previously unselected package fonts-lato. 275s (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 ... 73774 files and directories currently installed.) 275s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 275s Unpacking fonts-lato (2.015-1) ... 275s Selecting previously unselected package libpython3.13-minimal:ppc64el. 275s Preparing to unpack .../01-libpython3.13-minimal_3.13.0-2_ppc64el.deb ... 275s Unpacking libpython3.13-minimal:ppc64el (3.13.0-2) ... 275s Selecting previously unselected package python3.13-minimal. 275s Preparing to unpack .../02-python3.13-minimal_3.13.0-2_ppc64el.deb ... 275s Unpacking python3.13-minimal (3.13.0-2) ... 275s Selecting previously unselected package sgml-base. 275s Preparing to unpack .../03-sgml-base_1.31_all.deb ... 275s Unpacking sgml-base (1.31) ... 275s Selecting previously unselected package m4. 275s Preparing to unpack .../04-m4_1.4.19-4build1_ppc64el.deb ... 275s Unpacking m4 (1.4.19-4build1) ... 275s Selecting previously unselected package autoconf. 275s Preparing to unpack .../05-autoconf_2.72-3_all.deb ... 275s Unpacking autoconf (2.72-3) ... 275s Selecting previously unselected package autotools-dev. 275s Preparing to unpack .../06-autotools-dev_20220109.1_all.deb ... 275s Unpacking autotools-dev (20220109.1) ... 275s Selecting previously unselected package automake. 275s Preparing to unpack .../07-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 275s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 275s Selecting previously unselected package autopoint. 275s Preparing to unpack .../08-autopoint_0.22.5-2_all.deb ... 275s Unpacking autopoint (0.22.5-2) ... 275s Selecting previously unselected package libisl23:ppc64el. 275s Preparing to unpack .../09-libisl23_0.27-1_ppc64el.deb ... 275s Unpacking libisl23:ppc64el (0.27-1) ... 275s Selecting previously unselected package libmpc3:ppc64el. 275s Preparing to unpack .../10-libmpc3_1.3.1-1build2_ppc64el.deb ... 275s Unpacking libmpc3:ppc64el (1.3.1-1build2) ... 275s Selecting previously unselected package cpp-14-powerpc64le-linux-gnu. 275s Preparing to unpack .../11-cpp-14-powerpc64le-linux-gnu_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking cpp-14-powerpc64le-linux-gnu (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package cpp-14. 276s Preparing to unpack .../12-cpp-14_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking cpp-14 (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 276s Preparing to unpack .../13-cpp-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 276s Unpacking cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 276s Selecting previously unselected package cpp. 276s Preparing to unpack .../14-cpp_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 276s Unpacking cpp (4:14.1.0-2ubuntu1) ... 276s Selecting previously unselected package libcc1-0:ppc64el. 276s Preparing to unpack .../15-libcc1-0_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libcc1-0:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libgomp1:ppc64el. 276s Preparing to unpack .../16-libgomp1_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libgomp1:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libitm1:ppc64el. 276s Preparing to unpack .../17-libitm1_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libitm1:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libasan8:ppc64el. 276s Preparing to unpack .../18-libasan8_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libasan8:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package liblsan0:ppc64el. 276s Preparing to unpack .../19-liblsan0_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking liblsan0:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libtsan2:ppc64el. 276s Preparing to unpack .../20-libtsan2_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libtsan2:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libubsan1:ppc64el. 276s Preparing to unpack .../21-libubsan1_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libubsan1:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libquadmath0:ppc64el. 276s Preparing to unpack .../22-libquadmath0_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libquadmath0:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package libgcc-14-dev:ppc64el. 276s Preparing to unpack .../23-libgcc-14-dev_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libgcc-14-dev:ppc64el (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package gcc-14-powerpc64le-linux-gnu. 276s Preparing to unpack .../24-gcc-14-powerpc64le-linux-gnu_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking gcc-14-powerpc64le-linux-gnu (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package gcc-14. 276s Preparing to unpack .../25-gcc-14_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking gcc-14 (14.2.0-8ubuntu1) ... 276s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 276s Preparing to unpack .../26-gcc-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 276s Unpacking gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 276s Selecting previously unselected package gcc. 276s Preparing to unpack .../27-gcc_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 276s Unpacking gcc (4:14.1.0-2ubuntu1) ... 276s Selecting previously unselected package libstdc++-14-dev:ppc64el. 276s Preparing to unpack .../28-libstdc++-14-dev_14.2.0-8ubuntu1_ppc64el.deb ... 276s Unpacking libstdc++-14-dev:ppc64el (14.2.0-8ubuntu1) ... 277s Selecting previously unselected package g++-14-powerpc64le-linux-gnu. 277s Preparing to unpack .../29-g++-14-powerpc64le-linux-gnu_14.2.0-8ubuntu1_ppc64el.deb ... 277s Unpacking g++-14-powerpc64le-linux-gnu (14.2.0-8ubuntu1) ... 277s Selecting previously unselected package g++-14. 277s Preparing to unpack .../30-g++-14_14.2.0-8ubuntu1_ppc64el.deb ... 277s Unpacking g++-14 (14.2.0-8ubuntu1) ... 277s Selecting previously unselected package g++-powerpc64le-linux-gnu. 277s Preparing to unpack .../31-g++-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 277s Unpacking g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 277s Selecting previously unselected package g++. 277s Preparing to unpack .../32-g++_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 277s Unpacking g++ (4:14.1.0-2ubuntu1) ... 277s Selecting previously unselected package build-essential. 277s Preparing to unpack .../33-build-essential_12.10ubuntu1_ppc64el.deb ... 277s Unpacking build-essential (12.10ubuntu1) ... 277s Selecting previously unselected package libdebhelper-perl. 277s Preparing to unpack .../34-libdebhelper-perl_13.20ubuntu1_all.deb ... 277s Unpacking libdebhelper-perl (13.20ubuntu1) ... 277s Selecting previously unselected package libtool. 277s Preparing to unpack .../35-libtool_2.4.7-7build1_all.deb ... 277s Unpacking libtool (2.4.7-7build1) ... 277s Selecting previously unselected package dh-autoreconf. 277s Preparing to unpack .../36-dh-autoreconf_20_all.deb ... 277s Unpacking dh-autoreconf (20) ... 277s Selecting previously unselected package libarchive-zip-perl. 277s Preparing to unpack .../37-libarchive-zip-perl_1.68-1_all.deb ... 277s Unpacking libarchive-zip-perl (1.68-1) ... 277s Selecting previously unselected package libfile-stripnondeterminism-perl. 277s Preparing to unpack .../38-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 277s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 277s Selecting previously unselected package dh-strip-nondeterminism. 277s Preparing to unpack .../39-dh-strip-nondeterminism_1.14.0-1_all.deb ... 277s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 277s Selecting previously unselected package debugedit. 277s Preparing to unpack .../40-debugedit_1%3a5.1-1_ppc64el.deb ... 277s Unpacking debugedit (1:5.1-1) ... 277s Selecting previously unselected package dwz. 277s Preparing to unpack .../41-dwz_0.15-1build6_ppc64el.deb ... 277s Unpacking dwz (0.15-1build6) ... 277s Selecting previously unselected package gettext. 277s Preparing to unpack .../42-gettext_0.22.5-2_ppc64el.deb ... 277s Unpacking gettext (0.22.5-2) ... 277s Selecting previously unselected package intltool-debian. 277s Preparing to unpack .../43-intltool-debian_0.35.0+20060710.6_all.deb ... 277s Unpacking intltool-debian (0.35.0+20060710.6) ... 277s Selecting previously unselected package po-debconf. 277s Preparing to unpack .../44-po-debconf_1.0.21+nmu1_all.deb ... 277s Unpacking po-debconf (1.0.21+nmu1) ... 277s Selecting previously unselected package debhelper. 277s Preparing to unpack .../45-debhelper_13.20ubuntu1_all.deb ... 277s Unpacking debhelper (13.20ubuntu1) ... 277s Selecting previously unselected package dh-python. 277s Preparing to unpack .../46-dh-python_6.20241024_all.deb ... 277s Unpacking dh-python (6.20241024) ... 277s Selecting previously unselected package xml-core. 277s Preparing to unpack .../47-xml-core_0.19_all.deb ... 277s Unpacking xml-core (0.19) ... 277s Selecting previously unselected package docutils-common. 277s Preparing to unpack .../48-docutils-common_0.21.2+dfsg-2_all.deb ... 277s Unpacking docutils-common (0.21.2+dfsg-2) ... 277s Selecting previously unselected package fonts-font-awesome. 277s Preparing to unpack .../49-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 277s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 278s Selecting previously unselected package libblas3:ppc64el. 278s Preparing to unpack .../50-libblas3_3.12.0-3build2_ppc64el.deb ... 278s Unpacking libblas3:ppc64el (3.12.0-3build2) ... 278s Selecting previously unselected package libgfortran5:ppc64el. 278s Preparing to unpack .../51-libgfortran5_14.2.0-8ubuntu1_ppc64el.deb ... 278s Unpacking libgfortran5:ppc64el (14.2.0-8ubuntu1) ... 278s Selecting previously unselected package libjs-jquery. 278s Preparing to unpack .../52-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 278s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 278s Selecting previously unselected package libjs-underscore. 278s Preparing to unpack .../53-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 278s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 278s Selecting previously unselected package libjs-sphinxdoc. 278s Preparing to unpack .../54-libjs-sphinxdoc_7.4.7-4_all.deb ... 278s Unpacking libjs-sphinxdoc (7.4.7-4) ... 278s Selecting previously unselected package libjson-perl. 278s Preparing to unpack .../55-libjson-perl_4.10000-1_all.deb ... 278s Unpacking libjson-perl (4.10000-1) ... 278s Selecting previously unselected package liblapack3:ppc64el. 278s Preparing to unpack .../56-liblapack3_3.12.0-3build2_ppc64el.deb ... 278s Unpacking liblapack3:ppc64el (3.12.0-3build2) ... 278s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 278s Preparing to unpack .../57-libpython3.13-stdlib_3.13.0-2_ppc64el.deb ... 278s Unpacking libpython3.13-stdlib:ppc64el (3.13.0-2) ... 278s Selecting previously unselected package pybuild-plugin-autopkgtest. 278s Preparing to unpack .../58-pybuild-plugin-autopkgtest_6.20241024_all.deb ... 278s Unpacking pybuild-plugin-autopkgtest (6.20241024) ... 278s Selecting previously unselected package python3-packaging. 278s Preparing to unpack .../59-python3-packaging_24.1-1_all.deb ... 278s Unpacking python3-packaging (24.1-1) ... 278s Selecting previously unselected package python3-pyproject-hooks. 278s Preparing to unpack .../60-python3-pyproject-hooks_1.2.0-1_all.deb ... 278s Unpacking python3-pyproject-hooks (1.2.0-1) ... 278s Selecting previously unselected package python3-toml. 278s Preparing to unpack .../61-python3-toml_0.10.2-1_all.deb ... 278s Unpacking python3-toml (0.10.2-1) ... 278s Selecting previously unselected package python3-wheel. 278s Preparing to unpack .../62-python3-wheel_0.44.0-1_all.deb ... 278s Unpacking python3-wheel (0.44.0-1) ... 278s Selecting previously unselected package python3-build. 278s Preparing to unpack .../63-python3-build_1.2.2-1_all.deb ... 278s Unpacking python3-build (1.2.2-1) ... 278s Selecting previously unselected package python3-installer. 278s Preparing to unpack .../64-python3-installer_0.7.0+dfsg1-3_all.deb ... 278s Unpacking python3-installer (0.7.0+dfsg1-3) ... 278s Selecting previously unselected package pybuild-plugin-pyproject. 278s Preparing to unpack .../65-pybuild-plugin-pyproject_6.20241024_all.deb ... 278s Unpacking pybuild-plugin-pyproject (6.20241024) ... 278s Selecting previously unselected package sphinx-rtd-theme-common. 278s Preparing to unpack .../66-sphinx-rtd-theme-common_3.0.1+dfsg-1_all.deb ... 278s Unpacking sphinx-rtd-theme-common (3.0.1+dfsg-1) ... 278s Selecting previously unselected package python-bpack-doc. 278s Preparing to unpack .../67-python-bpack-doc_1.1.0-2_all.deb ... 278s Unpacking python-bpack-doc (1.1.0-2) ... 278s Selecting previously unselected package python3.13. 278s Preparing to unpack .../68-python3.13_3.13.0-2_ppc64el.deb ... 278s Unpacking python3.13 (3.13.0-2) ... 278s Selecting previously unselected package python3-all. 278s Preparing to unpack .../69-python3-all_3.12.7-1_ppc64el.deb ... 278s Unpacking python3-all (3.12.7-1) ... 278s Selecting previously unselected package python3-bitarray. 278s Preparing to unpack .../70-python3-bitarray_2.9.2-1build1_ppc64el.deb ... 278s Unpacking python3-bitarray (2.9.2-1build1) ... 278s Selecting previously unselected package python3-bitstruct. 278s Preparing to unpack .../71-python3-bitstruct_8.19.0-1_ppc64el.deb ... 278s Unpacking python3-bitstruct (8.19.0-1) ... 278s Selecting previously unselected package python3-bpack. 278s Preparing to unpack .../72-python3-bpack_1.1.0-2_all.deb ... 278s Unpacking python3-bpack (1.1.0-2) ... 278s Selecting previously unselected package python3-defusedxml. 278s Preparing to unpack .../73-python3-defusedxml_0.7.1-2_all.deb ... 278s Unpacking python3-defusedxml (0.7.1-2) ... 278s Selecting previously unselected package python3-roman. 278s Preparing to unpack .../74-python3-roman_4.2-1_all.deb ... 278s Unpacking python3-roman (4.2-1) ... 278s Selecting previously unselected package python3-docutils. 278s Preparing to unpack .../75-python3-docutils_0.21.2+dfsg-2_all.deb ... 278s Unpacking python3-docutils (0.21.2+dfsg-2) ... 278s Selecting previously unselected package python3-imagesize. 278s Preparing to unpack .../76-python3-imagesize_1.4.1-1_all.deb ... 278s Unpacking python3-imagesize (1.4.1-1) ... 278s Selecting previously unselected package python3-iniconfig. 278s Preparing to unpack .../77-python3-iniconfig_1.1.1-2_all.deb ... 278s Unpacking python3-iniconfig (1.1.1-2) ... 278s Selecting previously unselected package python3-numpy. 278s Preparing to unpack .../78-python3-numpy_1%3a1.26.4+ds-11build1_ppc64el.deb ... 278s Unpacking python3-numpy (1:1.26.4+ds-11build1) ... 278s Selecting previously unselected package python3-pluggy. 279s Preparing to unpack .../79-python3-pluggy_1.5.0-1_all.deb ... 279s Unpacking python3-pluggy (1.5.0-1) ... 279s Selecting previously unselected package python3-pytest. 279s Preparing to unpack .../80-python3-pytest_8.3.3-1_all.deb ... 279s Unpacking python3-pytest (8.3.3-1) ... 279s Selecting previously unselected package python3-snowballstemmer. 279s Preparing to unpack .../81-python3-snowballstemmer_2.2.0-4build1_all.deb ... 279s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 279s Selecting previously unselected package sphinx-common. 279s Preparing to unpack .../82-sphinx-common_7.4.7-4_all.deb ... 279s Unpacking sphinx-common (7.4.7-4) ... 279s Selecting previously unselected package python3-alabaster. 279s Preparing to unpack .../83-python3-alabaster_0.7.16-0.1_all.deb ... 279s Unpacking python3-alabaster (0.7.16-0.1) ... 279s Selecting previously unselected package python3-sphinx. 279s Preparing to unpack .../84-python3-sphinx_7.4.7-4_all.deb ... 279s Unpacking python3-sphinx (7.4.7-4) ... 279s Selecting previously unselected package python3-sphinxcontrib.jquery. 279s Preparing to unpack .../85-python3-sphinxcontrib.jquery_4.1-5_all.deb ... 279s Unpacking python3-sphinxcontrib.jquery (4.1-5) ... 279s Selecting previously unselected package python3-sphinx-rtd-theme. 279s Preparing to unpack .../86-python3-sphinx-rtd-theme_3.0.1+dfsg-1_all.deb ... 279s Unpacking python3-sphinx-rtd-theme (3.0.1+dfsg-1) ... 279s Selecting previously unselected package autopkgtest-satdep. 279s Preparing to unpack .../87-1-autopkgtest-satdep.deb ... 279s Unpacking autopkgtest-satdep (0) ... 279s Setting up dh-python (6.20241024) ... 279s Setting up python3-iniconfig (1.1.1-2) ... 279s Setting up fonts-lato (2.015-1) ... 279s Setting up python3-defusedxml (0.7.1-2) ... 280s Setting up libarchive-zip-perl (1.68-1) ... 280s Setting up python3-alabaster (0.7.16-0.1) ... 280s Setting up libdebhelper-perl (13.20ubuntu1) ... 280s Setting up m4 (1.4.19-4build1) ... 280s Setting up libgomp1:ppc64el (14.2.0-8ubuntu1) ... 280s Setting up python3-wheel (0.44.0-1) ... 280s Setting up python3-bpack (1.1.0-2) ... 280s Setting up libpython3.13-minimal:ppc64el (3.13.0-2) ... 280s Setting up python3-bitarray (2.9.2-1build1) ... 281s Setting up python3-roman (4.2-1) ... 281s Setting up autotools-dev (20220109.1) ... 281s Setting up libblas3:ppc64el (3.12.0-3build2) ... 281s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/blas/libblas.so.3 to provide /usr/lib/powerpc64le-linux-gnu/libblas.so.3 (libblas.so.3-powerpc64le-linux-gnu) in auto mode 281s Setting up python3-packaging (24.1-1) ... 281s Setting up python3-pyproject-hooks (1.2.0-1) ... 281s Setting up python3-snowballstemmer (2.2.0-4build1) ... 282s Setting up libquadmath0:ppc64el (14.2.0-8ubuntu1) ... 282s Setting up libmpc3:ppc64el (1.3.1-1build2) ... 282s Setting up autopoint (0.22.5-2) ... 282s Setting up python3-toml (0.10.2-1) ... 282s Setting up python3-installer (0.7.0+dfsg1-3) ... 282s Setting up libgfortran5:ppc64el (14.2.0-8ubuntu1) ... 282s Setting up python3-bitstruct (8.19.0-1) ... 283s Setting up autoconf (2.72-3) ... 283s Setting up python3-pluggy (1.5.0-1) ... 283s Setting up libubsan1:ppc64el (14.2.0-8ubuntu1) ... 283s Setting up dwz (0.15-1build6) ... 283s Setting up libasan8:ppc64el (14.2.0-8ubuntu1) ... 283s Setting up libjson-perl (4.10000-1) ... 283s Setting up debugedit (1:5.1-1) ... 283s Setting up python3.13-minimal (3.13.0-2) ... 284s Setting up sgml-base (1.31) ... 284s Setting up libtsan2:ppc64el (14.2.0-8ubuntu1) ... 284s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 284s Setting up libisl23:ppc64el (0.27-1) ... 284s Setting up python3-build (1.2.2-1) ... 284s Setting up libpython3.13-stdlib:ppc64el (3.13.0-2) ... 284s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 284s Setting up sphinx-rtd-theme-common (3.0.1+dfsg-1) ... 284s Setting up libcc1-0:ppc64el (14.2.0-8ubuntu1) ... 284s Setting up liblsan0:ppc64el (14.2.0-8ubuntu1) ... 284s Setting up libitm1:ppc64el (14.2.0-8ubuntu1) ... 284s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 284s Setting up python3-imagesize (1.4.1-1) ... 284s Setting up automake (1:1.16.5-1.3ubuntu1) ... 284s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 284s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 284s Setting up liblapack3:ppc64el (3.12.0-3build2) ... 284s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/powerpc64le-linux-gnu/liblapack.so.3 (liblapack.so.3-powerpc64le-linux-gnu) in auto mode 284s Setting up gettext (0.22.5-2) ... 284s Setting up python3.13 (3.13.0-2) ... 286s Setting up pybuild-plugin-pyproject (6.20241024) ... 286s Setting up python3-pytest (8.3.3-1) ... 286s Setting up python3-all (3.12.7-1) ... 286s Setting up intltool-debian (0.35.0+20060710.6) ... 286s Setting up cpp-14-powerpc64le-linux-gnu (14.2.0-8ubuntu1) ... 286s Setting up python3-numpy (1:1.26.4+ds-11build1) ... 291s Setting up libjs-sphinxdoc (7.4.7-4) ... 291s Setting up cpp-14 (14.2.0-8ubuntu1) ... 291s Setting up dh-strip-nondeterminism (1.14.0-1) ... 291s Setting up xml-core (0.19) ... 291s Setting up libgcc-14-dev:ppc64el (14.2.0-8ubuntu1) ... 291s Setting up libstdc++-14-dev:ppc64el (14.2.0-8ubuntu1) ... 291s Setting up cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 291s Setting up gcc-14-powerpc64le-linux-gnu (14.2.0-8ubuntu1) ... 291s Setting up g++-14-powerpc64le-linux-gnu (14.2.0-8ubuntu1) ... 291s Setting up po-debconf (1.0.21+nmu1) ... 291s Setting up gcc-14 (14.2.0-8ubuntu1) ... 291s Setting up python-bpack-doc (1.1.0-2) ... 291s Setting up gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 291s Setting up sphinx-common (7.4.7-4) ... 291s Setting up cpp (4:14.1.0-2ubuntu1) ... 291s Setting up g++-14 (14.2.0-8ubuntu1) ... 291s Setting up g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 291s Setting up libtool (2.4.7-7build1) ... 291s Setting up gcc (4:14.1.0-2ubuntu1) ... 291s Setting up dh-autoreconf (20) ... 291s Setting up g++ (4:14.1.0-2ubuntu1) ... 291s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 291s Setting up build-essential (12.10ubuntu1) ... 291s Setting up debhelper (13.20ubuntu1) ... 291s Setting up pybuild-plugin-autopkgtest (6.20241024) ... 291s Processing triggers for libc-bin (2.40-1ubuntu3) ... 291s Processing triggers for systemd (256.5-2ubuntu4) ... 291s Processing triggers for man-db (2.12.1-3) ... 293s Processing triggers for install-info (7.1.1-1) ... 293s Processing triggers for sgml-base (1.31) ... 293s Setting up docutils-common (0.21.2+dfsg-2) ... 293s Processing triggers for sgml-base (1.31) ... 294s Setting up python3-docutils (0.21.2+dfsg-2) ... 294s Setting up python3-sphinx (7.4.7-4) ... 296s Setting up python3-sphinxcontrib.jquery (4.1-5) ... 296s Setting up python3-sphinx-rtd-theme (3.0.1+dfsg-1) ... 296s Setting up autopkgtest-satdep (0) ... 302s (Reading database ... 79722 files and directories currently installed.) 302s Removing autopkgtest-satdep (0) ... 304s autopkgtest [10:56:51]: test pybuild-autopkgtest: pybuild-autopkgtest 304s autopkgtest [10:56:51]: test pybuild-autopkgtest: [----------------------- 305s pybuild-autopkgtest 305s I: pybuild base:311: cd /tmp/autopkgtest.nVYqYa/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 306s ============================= test session starts ============================== 307s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 307s rootdir: /tmp/autopkgtest.nVYqYa/autopkgtest_tmp/build 307s configfile: pyproject.toml 307s plugins: typeguard-4.4.1 307s collected 1701 items / 2 skipped 307s 307s tests/test_backends_codec.py .s.sFsFs..ss....sFFssFFFFs..ss....FFssFFFFF [ 2%] 309s sFFsFs.s.sFsFsFFFsF.s.sFsFsFFsFFFFFFsFFsFFsFFsFFsFFsFFFFFFFFFFFF [ 6%] 309s tests/test_codecs.py FF [ 6%] 309s tests/test_desctiptor_utils.py ......................... [ 7%] 309s tests/test_field_descriptor.py ......................................... [ 10%] 309s ............... [ 11%] 309s tests/test_packbits.py .........s.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss [ 14%] 309s .sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 18%] 309s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 22%] 309s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 26%] 309s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 30%] 309s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 35%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 39%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 43%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 47%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 52%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 56%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 60%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 64%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 69%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 73%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 77%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 81%] 310s ssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 85%] 310s tests/test_record_descriptor.py ........................................ [ 87%] 310s ................... [ 88%] 310s tests/test_typing.py ................................................... [ 91%] 310s ........................................................................ [ 95%] 310s .................................................... [ 98%] 310s tests/test_utils.py .................... [100%] 310s 310s =================================== FAILURES =================================== 310s ________________________________ test_attrs[bs] ________________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", ALL_BACKENDS) 310s def test_attrs(backend): 310s codec = getattr(backend, "codec", backend.decoder) 310s 310s > @codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________________________________ test_attrs[st] ________________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", ALL_BACKENDS) 310s def test_attrs(backend): 310s codec = getattr(backend, "codec", backend.decoder) 310s 310s > @codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_decoder_func[st BE] ___________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_ba, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="ba BE MSB", 310s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 310s decoded_data = Record() 310s 310s > record_type = backend.decoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_decoder_func[st LE] ___________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_ba, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="ba BE MSB", 310s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 310s decoded_data = Record() 310s 310s > record_type = backend.decoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_decoder_func[bs BE MSB] _________________________ 310s 310s backend = 310s Record = 310s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_ba, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="ba BE MSB", 310s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 310s decoded_data = Record() 310s 310s > record_type = backend.decoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_decoder_func[bs LE MSB] _________________________ 310s 310s backend = 310s Record = 310s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_ba, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="ba BE MSB", 310s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 310s decoded_data = Record() 310s 310s > record_type = backend.decoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_decoder_func[bs BE LSB] _________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_ba, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="ba BE MSB", 310s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 310s decoded_data = Record() 310s 310s > record_type = backend.decoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_decoder_func[bs LE LSB] _________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_ba, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="ba BE MSB", 310s marks=pytest.mark.skipif(not bpack_ba, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decoder_func(backend, Record, encoded_data): # noqa: N803 310s decoded_data = Record() 310s 310s > record_type = backend.decoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:601: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_encoder_func[st BE] ___________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 310s record = Record() 310s 310s > record_type = backend.encoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_encoder_func[st LE] ___________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 310s record = Record() 310s 310s > record_type = backend.encoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_encoder_func[bs BE MSB] _________________________ 310s 310s backend = 310s Record = 310s encoded_data = b'\xc8\x00?\x80\x00\x00abcABC\x07\xff\xff\xffH\x00\x80\x00\x00\x00\xc8\x00\x80\x00\x00\x00' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 310s record = Record() 310s 310s > record_type = backend.encoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_encoder_func[bs LE MSB] _________________________ 310s 310s backend = 310s Record = 310s encoded_data = b'\xc0\x80\x00\x00\x80?abcABC\x0f\xff\xff\x7f@\x80\x00\x00\x00\x80\xc0\x80\x00\x00\x00\x80' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 310s record = Record() 310s 310s > record_type = backend.encoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_encoder_func[bs BE LSB] _________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 310s record = Record() 310s 310s > record_type = backend.encoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_encoder_func[bs LE LSB] _________________________ 310s 310s backend = 310s Record = 310s 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' 310s 310s @pytest.mark.parametrize( 310s "backend, Record, encoded_data", 310s [ 310s pytest.param(bpack.st, ByteRecordBe, BYTE_ENCODED_DATA_BE, id="st BE"), 310s pytest.param(bpack.st, ByteRecordLe, BYTE_ENCODED_DATA_LE, id="st LE"), 310s pytest.param( 310s bpack_np, 310s ByteRecordBe, 310s BYTE_ENCODED_DATA_BE, 310s id="np BE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s ByteRecordLe, 310s BYTE_ENCODED_DATA_LE, 310s id="np LE", 310s marks=pytest.mark.skipif(not bpack_np, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeMsb, 310s BIT_ENCODED_DATA_BE_MSB, 310s id="bs BE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeMsb, 310s BIT_ENCODED_DATA_LE_MSB, 310s id="bs LE MSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordBeLsb, 310s BIT_ENCODED_DATA_BE_LSB, 310s id="bs BE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_bs, 310s BitRecordLeLsb, 310s BIT_ENCODED_DATA_LE_LSB, 310s id="bs LE LSB", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encoder_func(backend, Record, encoded_data): # noqa: N803 310s record = Record() 310s 310s > record_type = backend.encoder(Record) 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:732: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________ test_bit_decoder_decorator_frombytes[bs] ___________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", BITS_BACKENDS) 310s def test_bit_decoder_decorator_frombytes(backend): 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:747: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ____________________ test_bit_encoder_decorator_tobytes[bs] ____________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ) 310s ], 310s ) 310s def test_bit_encoder_decorator_tobytes(backend): 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:783: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s __________________ test_byte_decoder_decorator_frombytes[st] ___________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 310s def test_byte_decoder_decorator_frombytes(backend): 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:805: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________ test_byte_encoder_decorator_tobytes[st] ____________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 310s def test_byte_encoder_decorator_tobytes(backend): 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:825: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ test_byte_decoder_native_byteorder_frombytes[st] _______________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 310s def test_byte_decoder_native_byteorder_frombytes(backend): 310s size = 4 310s value = 1 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:862: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________________ test_byte_encoder_native_byteorder_tobytes[st] ________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", BYTES_BACKENDS) 310s def test_byte_encoder_native_byteorder_tobytes(backend): 310s size = 4 310s value = 1 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:876: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ test_bit_decoder_native_byteorder_frombytes[bs] ________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ) 310s ], 310s ) 310s def test_bit_decoder_native_byteorder_frombytes(backend): 310s size = 64 310s value = 1 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:900: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________________ test_bit_encoder_native_byteorder_tobytes[bs] _________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ) 310s ], 310s ) 310s def test_bit_encoder_native_byteorder_tobytes(backend): 310s size = 64 310s value = 1 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:927: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ test_bit_decoder_default_byteorder_frombytes[bs] _______________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", BITS_BACKENDS) 310s def test_bit_decoder_default_byteorder_frombytes(backend): 310s size = 64 310s value = 1 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:946: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________________ test_bit_encoder_default_byteorder_tobytes[bs] ________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ) 310s ], 310s ) 310s def test_bit_encoder_default_byteorder_tobytes(backend): 310s size = 64 310s value = 1 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:974: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_enum_decoding_bytes[bs] _________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", ALL_BACKENDS) 310s def test_enum_decoding_bytes(backend): 310s class EStrEnumType(enum.Enum): 310s A = "a" 310s B = "b" 310s 310s class EBytesEnumType(enum.Enum): 310s A = b"a" 310s B = b"b" 310s 310s class EIntEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s class EFlagEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s ssize = 1 310s isize = 1 310s encoded_data = b"".join( 310s [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 310s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 310s ] 310s ) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s ssize = 8 310s isize = 4 310s encoded_data = b"".join( 310s [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s bytes([0b00010001]), 310s ] 310s ) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_enum_decoding_bytes[st] _________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize("backend", ALL_BACKENDS) 310s def test_enum_decoding_bytes(backend): 310s class EStrEnumType(enum.Enum): 310s A = "a" 310s B = "b" 310s 310s class EBytesEnumType(enum.Enum): 310s A = b"a" 310s B = b"b" 310s 310s class EIntEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s class EFlagEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s ssize = 1 310s isize = 1 310s encoded_data = b"".join( 310s [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 310s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 310s ] 310s ) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s ssize = 8 310s isize = 4 310s encoded_data = b"".join( 310s [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s bytes([0b00010001]), 310s ] 310s ) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1055: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_enum_encoding_bytes[st] _________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s id="np", 310s marks=skipif(not bpack_np, reason="not available"), 310s ), 310s ], 310s ) 310s def test_enum_encoding_bytes(backend): 310s class EStrEnumType(enum.Enum): 310s A = "a" 310s B = "b" 310s 310s class EBytesEnumType(enum.Enum): 310s A = b"a" 310s B = b"b" 310s 310s class EIntEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s class EFlagEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s ssize = 1 310s isize = 1 310s encoded_data = [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 310s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 310s ] 310s encoded_data = b"".join(encoded_data) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s ssize = 8 310s isize = 4 310s encoded_data = [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s bytes([0b00010001]), 310s ] 310s encoded_data = b"".join(encoded_data) 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _________________________ test_enum_encoding_bytes[bs] _________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ), 310s pytest.param( 310s bpack_np, 310s id="np", 310s marks=skipif(not bpack_np, reason="not available"), 310s ), 310s ], 310s ) 310s def test_enum_encoding_bytes(backend): 310s class EStrEnumType(enum.Enum): 310s A = "a" 310s B = "b" 310s 310s class EBytesEnumType(enum.Enum): 310s A = b"a" 310s B = b"b" 310s 310s class EIntEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s class EFlagEnumType(enum.Enum): 310s A = 1 310s B = 2 310s 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s ssize = 1 310s isize = 1 310s encoded_data = [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s EIntEnumType.A.value.to_bytes(1, "little", signed=False), 310s EFlagEnumType.A.value.to_bytes(1, "little", signed=False), 310s ] 310s encoded_data = b"".join(encoded_data) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s ssize = 8 310s isize = 4 310s encoded_data = [ 310s EStrEnumType.A.value.encode("ascii"), 310s EBytesEnumType.A.value, 310s bytes([0b00010001]), 310s ] 310s encoded_data = b"".join(encoded_data) 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1126: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_decode_sequence[st] ___________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decode_sequence(backend): 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s size = 1 310s repeat = 2 310s encoded_data = bytes([3, 3, 4, 4]) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s size = 4 310s repeat = 2 310s encoded_data = bytes([0b00110011, 0b01000100]) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_decode_sequence[bs] ___________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_decode_sequence(backend): 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s size = 1 310s repeat = 2 310s encoded_data = bytes([3, 3, 4, 4]) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s size = 4 310s repeat = 2 310s encoded_data = bytes([0b00110011, 0b01000100]) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1166: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_encode_sequence[st] ___________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encode_sequence(backend): 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s size = 1 310s repeat = 2 310s encoded_data = bytes([3, 3, 4, 4]) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s size = 4 310s repeat = 2 310s encoded_data = bytes([0b00110011, 0b01000100]) 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ___________________________ test_encode_sequence[bs] ___________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_encode_sequence(backend): 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BYTES: 310s bitorder = None 310s size = 1 310s repeat = 2 310s encoded_data = bytes([3, 3, 4, 4]) 310s else: 310s bitorder = bpack.EBitOrder.MSB 310s size = 4 310s repeat = 2 310s encoded_data = bytes([0b00110011, 0b01000100]) 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1208: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ TestNestedRecord.test_nested_record_decoder[st] ________________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_decoder(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s > @backend.decoder # NOTE: this is a decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ TestNestedRecord.test_nested_record_decoder[bs] ________________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_decoder(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s > @backend.decoder # NOTE: this is a decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1260: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ TestNestedRecord.test_nested_record_encoder[st] ________________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_encoder(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s > @backend.encoder # NOTE: this is an encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ TestNestedRecord.test_nested_record_encoder[bs] ________________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_encoder(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s > @backend.encoder # NOTE: this is an encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1279: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ______________ TestNestedRecord.test_nested_record_frombytes[st] _______________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_frombytes(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s # NOTE: this time the inner record is not a decoder 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class Record: 310s field_1: int = bpack.field(size=4, default=1) 310s field_2: int = bpack.field(size=4, default=2) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ______________ TestNestedRecord.test_nested_record_frombytes[bs] _______________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_frombytes(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s # NOTE: this time the inner record is not a decoder 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class Record: 310s field_1: int = bpack.field(size=4, default=1) 310s field_2: int = bpack.field(size=4, default=2) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1305: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ TestNestedRecord.test_nested_record_tobytes[st] ________________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_tobytes(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s # NOTE: this time the inner record is not a decoder 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class Record: 310s field_1: int = bpack.field(size=4, default=1) 310s field_2: int = bpack.field(size=4, default=2) 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______________ TestNestedRecord.test_nested_record_tobytes[bs] ________________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_tobytes(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s 310s # NOTE: this time the inner record is not a decoder 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class Record: 310s field_1: int = bpack.field(size=4, default=1) 310s field_2: int = bpack.field(size=4, default=2) 310s 310s > @backend.encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1324: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s __________ TestNestedRecord.test_nested_record_decoder_with_order[st] __________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_decoder_with_order(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 310s kwargs = dict(bitorder=">", byteorder=">") 310s else: 310s # TODO: use the default byteorder (see get_encoded_data) 310s kwargs = dict(byteorder=bpack.EByteOrder.LE) 310s 310s > @backend.decoder # NOTE: this is a decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s __________ TestNestedRecord.test_nested_record_decoder_with_order[bs] __________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_decoder_with_order(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 310s kwargs = dict(bitorder=">", byteorder=">") 310s else: 310s # TODO: use the default byteorder (see get_encoded_data) 310s kwargs = dict(byteorder=bpack.EByteOrder.LE) 310s 310s > @backend.decoder # NOTE: this is a decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1343: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s __________ TestNestedRecord.test_nested_record_encoder_with_order[st] __________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_encoder_with_order(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 310s kwargs = dict(bitorder=">", byteorder=">") 310s else: 310s # TODO: use the default byteorder (see get_encoded_data) 310s kwargs = dict(byteorder=bpack.EByteOrder.LE) 310s 310s > @backend.encoder # NOTE: this is a encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s __________ TestNestedRecord.test_nested_record_encoder_with_order[bs] __________ 310s 310s self = 310s backend = 310s 310s def test_nested_record_encoder_with_order(self, backend): 310s encoded_data = self.get_encoded_data(backend.Decoder.baseunits) 310s if backend.Decoder.baseunits is bpack.EBaseUnits.BITS: 310s kwargs = dict(bitorder=">", byteorder=">") 310s else: 310s # TODO: use the default byteorder (see get_encoded_data) 310s kwargs = dict(byteorder=bpack.EByteOrder.LE) 310s 310s > @backend.encoder # NOTE: this is a encoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1367: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[st] ________ 310s 310s self = 310s backend = 310s 310s def test_decode_nested_record_two_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s FOUR = 4 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_02: int = bpack.field(size=4, default=2) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________ TestMultiNestedRecord.test_decode_nested_record_two_levels[bs] ________ 310s 310s self = 310s backend = 310s 310s def test_decode_nested_record_two_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s FOUR = 4 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_02: int = bpack.field(size=4, default=2) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1454: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[st] ________ 310s 310s self = 310s backend = 310s 310s def test_encode_nested_record_two_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s FOUR = 4 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_02: int = bpack.field(size=4, default=2) 310s 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ________ TestMultiNestedRecord.test_encode_nested_record_two_levels[bs] ________ 310s 310s self = 310s backend = 310s 310s def test_encode_nested_record_two_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s FOUR = 4 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_02: int = bpack.field(size=4, default=2) 310s 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1478: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[st] _______ 310s 310s self = 310s backend = 310s 310s def test_decode_nested_record_three_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s TWO = 2 310s SEVEN = 7 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 310s ) 310s field_03: int = bpack.field(size=4, default=4) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_decode_nested_record_three_levels[bs] _______ 310s 310s self = 310s backend = 310s 310s def test_decode_nested_record_three_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s TWO = 2 310s SEVEN = 7 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 310s ) 310s field_03: int = bpack.field(size=4, default=4) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1511: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[st] _______ 310s 310s self = 310s backend = 310s 310s def test_encode_nested_record_three_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s TWO = 2 310s SEVEN = 7 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 310s ) 310s field_03: int = bpack.field(size=4, default=4) 310s 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_encode_nested_record_three_levels[bs] _______ 310s 310s self = 310s backend = 310s 310s def test_encode_nested_record_three_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s TWO = 2 310s SEVEN = 7 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial(RecordLevel03, EEnum.TWO, 3) 310s ) 310s field_03: int = bpack.field(size=4, default=4) 310s 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1546: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[st] ________ 310s 310s self = 310s backend = 310s 310s def test_decode_nested_record_four_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s THREE = 3 310s TEN = 10 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel04: 310s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_0002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: int = bpack.field(size=4, default=1) 310s field_002: RecordLevel04 = bpack.field( 310s default_factory=RecordLevel04 310s ) 310s field_003: int = bpack.field(size=4, default=3) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial( 310s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 310s ) 310s ) 310s field_03: int = bpack.field(size=4, default=6) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_decode_nested_record_four_levels[bs] ________ 310s 310s self = 310s backend = 310s 310s def test_decode_nested_record_four_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s THREE = 3 310s TEN = 10 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel04: 310s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_0002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: int = bpack.field(size=4, default=1) 310s field_002: RecordLevel04 = bpack.field( 310s default_factory=RecordLevel04 310s ) 310s field_003: int = bpack.field(size=4, default=3) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial( 310s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 310s ) 310s ) 310s field_03: int = bpack.field(size=4, default=6) 310s 310s > @backend.decoder 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1591: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[st] ________ 310s 310s self = 310s backend = 310s 310s def test_encode_nested_record_four_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s THREE = 3 310s TEN = 10 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel04: 310s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_0002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: int = bpack.field(size=4, default=1) 310s field_002: RecordLevel04 = bpack.field( 310s default_factory=RecordLevel04 310s ) 310s field_003: int = bpack.field(size=4, default=3) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial( 310s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 310s ) 310s ) 310s field_03: int = bpack.field(size=4, default=6) 310s 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s _______ TestMultiNestedRecord.test_encode_nested_record_four_levels[bs] ________ 310s 310s self = 310s backend = 310s 310s def test_encode_nested_record_four_levels(self, backend): 310s class EEnum(enum.Enum): 310s ONE = 1 310s THREE = 3 310s TEN = 10 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel04: 310s field_0001: EEnum = bpack.field(size=4, default=EEnum.ONE) 310s field_0002: int = bpack.field(size=4, default=2) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel03: 310s field_001: int = bpack.field(size=4, default=1) 310s field_002: RecordLevel04 = bpack.field( 310s default_factory=RecordLevel04 310s ) 310s field_003: int = bpack.field(size=4, default=3) 310s 310s @bpack.descriptor(baseunits=backend.Decoder.baseunits) 310s class RecordLevel02: 310s field_01: int = bpack.field(size=4, default=1) 310s field_02: RecordLevel03 = bpack.field( 310s default_factory=functools.partial( 310s RecordLevel03, 2, RecordLevel04(EEnum.THREE, 4), 5 310s ) 310s ) 310s field_03: int = bpack.field(size=4, default=6) 310s 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:1639: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ____________________________ test_codec_helpers[st] ____________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_codec_helpers(backend): 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s ____________________________ test_codec_helpers[bs] ____________________________ 310s 310s backend = 310s 310s @pytest.mark.parametrize( 310s "backend", 310s [ 310s pytest.param(bpack.st, id="st"), 310s pytest.param( 310s bpack_bs, 310s id="bs", 310s marks=pytest.mark.skipif(not bpack_bs, reason="not available"), 310s ), 310s ], 310s ) 310s def test_codec_helpers(backend): 310s > @backend.codec 310s 310s /usr/lib/python3/dist-packages/bpack/tests/test_codecs.py:27: 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper 310s return wrap(cls) 310s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap 310s return func(klass, **kwargs) 310s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec 310s decode_func = bpack.utils.create_fn( 310s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 310s 310s name = 'frombytes', args = ('cls', 'data') 310s body = ['return cls.__bpack_decoder__.decode(data)'] 310s 310s def create_fn( 310s name, 310s args, 310s body, 310s *, 310s globals=None, # noqa: A002 310s locals=None, # noqa: A002 310s return_type=dataclasses.MISSING, 310s ): 310s """Create a function object.""" 310s > return dataclasses._create_fn( 310s name, 310s args, 310s body, 310s globals=globals, 310s locals=locals, 310s return_type=return_type, 310s ) 310s E AttributeError: module 'dataclasses' has no attribute '_create_fn' 310s 310s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError 310s =============================== warnings summary =============================== 310s ../../../../usr/lib/python3/dist-packages/bpack/tests/test_decoder_np.py:9 310s /usr/lib/python3/dist-packages/bpack/tests/test_decoder_np.py:9: PytestDeprecationWarning: 310s Module 'bpack.np' was found, but when imported by pytest it raised: 310s ImportError('Error importing numpy: you should not try to import numpy from\n its source directory; please exit the numpy source tree, and relaunch\n your python interpreter from there.') 310s In pytest 9.1 this warning will become an error by default. 310s You can fix the underlying problem, or alternatively overwrite this behavior and silence this warning by passing exc_type=ImportError explicitly. 310s See https://docs.pytest.org/en/stable/deprecations.html#pytest-importorskip-default-behavior-regarding-importerror 310s bpack_np = pytest.importorskip("bpack.np") 310s 310s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 310s =========================== short test summary info ============================ 310s FAILED tests/test_backends_codec.py::test_attrs[bs] - AttributeError: module ... 310s FAILED tests/test_backends_codec.py::test_attrs[st] - AttributeError: module ... 310s FAILED tests/test_backends_codec.py::test_decoder_func[st BE] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_decoder_func[st LE] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE MSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE MSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_decoder_func[bs BE LSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_decoder_func[bs LE LSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_encoder_func[st BE] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_encoder_func[st LE] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE MSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE MSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_encoder_func[bs BE LSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_encoder_func[bs LE LSB] - Attribute... 310s FAILED tests/test_backends_codec.py::test_bit_decoder_decorator_frombytes[bs] 310s FAILED tests/test_backends_codec.py::test_bit_encoder_decorator_tobytes[bs] 310s FAILED tests/test_backends_codec.py::test_byte_decoder_decorator_frombytes[st] 310s FAILED tests/test_backends_codec.py::test_byte_encoder_decorator_tobytes[st] 310s FAILED tests/test_backends_codec.py::test_byte_decoder_native_byteorder_frombytes[st] 310s FAILED tests/test_backends_codec.py::test_byte_encoder_native_byteorder_tobytes[st] 310s FAILED tests/test_backends_codec.py::test_bit_decoder_native_byteorder_frombytes[bs] 310s FAILED tests/test_backends_codec.py::test_bit_encoder_native_byteorder_tobytes[bs] 310s FAILED tests/test_backends_codec.py::test_bit_decoder_default_byteorder_frombytes[bs] 310s FAILED tests/test_backends_codec.py::test_bit_encoder_default_byteorder_tobytes[bs] 310s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[bs] - Attribute... 310s FAILED tests/test_backends_codec.py::test_enum_decoding_bytes[st] - Attribute... 310s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[st] - Attribute... 310s FAILED tests/test_backends_codec.py::test_enum_encoding_bytes[bs] - Attribute... 310s FAILED tests/test_backends_codec.py::test_decode_sequence[st] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_decode_sequence[bs] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_encode_sequence[st] - AttributeErro... 310s FAILED tests/test_backends_codec.py::test_encode_sequence[bs] - AttributeErro... 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[st] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder[bs] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[st] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder[bs] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[st] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_frombytes[bs] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[st] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_tobytes[bs] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[st] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_decoder_with_order[bs] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[st] 310s FAILED tests/test_backends_codec.py::TestNestedRecord::test_nested_record_encoder_with_order[bs] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[st] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_two_levels[bs] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[st] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_two_levels[bs] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[st] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_three_levels[bs] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[st] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_three_levels[bs] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[st] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_decode_nested_record_four_levels[bs] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[st] 310s FAILED tests/test_backends_codec.py::TestMultiNestedRecord::test_encode_nested_record_four_levels[bs] 310s FAILED tests/test_codecs.py::test_codec_helpers[st] - AttributeError: module ... 310s FAILED tests/test_codecs.py::test_codec_helpers[bs] - AttributeError: module ... 310s =========== 58 failed, 376 passed, 1269 skipped, 1 warning in 4.82s ============ 310s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.nVYqYa/autopkgtest_tmp/build; python3.13 -m pytest --pyargs bpack 310s I: pybuild base:311: cd /tmp/autopkgtest.nVYqYa/autopkgtest_tmp/build; python3.12 -m pytest --pyargs bpack 311s ============================= test session starts ============================== 311s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 311s rootdir: /tmp/autopkgtest.nVYqYa/autopkgtest_tmp/build 311s configfile: pyproject.toml 311s plugins: typeguard-4.4.1 311s collected 1709 items 311s 312s tests/test_backends_codec.py ........................................... [ 2%] 312s ................................................................ [ 6%] 312s tests/test_codecs.py .. [ 6%] 312s tests/test_decoder_ba.py ....... [ 6%] 312s tests/test_decoder_np.py . [ 6%] 312s tests/test_desctiptor_utils.py ......................... [ 8%] 312s tests/test_field_descriptor.py ......................................... [ 10%] 312s ............... [ 11%] 312s tests/test_packbits.py ................................................. [ 14%] 312s ........................................................................ [ 18%] 312s ........................................................................ [ 22%] 313s ........................................................................ [ 27%] 313s ........................................................................ [ 31%] 314s ........................................................................ [ 35%] 314s ........................................................................ [ 39%] 314s ........................................................................ [ 43%] 315s ........................................................................ [ 48%] 315s ........................................................................ [ 52%] 315s ........................................................................ [ 56%] 315s ........................................................................ [ 60%] 316s ........................................................................ [ 65%] 316s ........................................................................ [ 69%] 316s ........................................................................ [ 73%] 317s ........................................................................ [ 77%] 317s ........................................................................ [ 81%] 317s ........................................................ [ 85%] 317s tests/test_record_descriptor.py ........................................ [ 87%] 318s ................... [ 88%] 318s tests/test_typing.py ................................................... [ 91%] 318s ........................................................................ [ 95%] 318s .................................................... [ 98%] 318s tests/test_utils.py .................... [100%] 318s 318s ============================= 1709 passed in 6.96s ============================= 318s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 318s make: *** [/tmp/zFvjnpNd7z/run:4: pybuild-autopkgtest] Error 25 318s pybuild-autopkgtest: error: /tmp/zFvjnpNd7z/run pybuild-autopkgtest returned exit code 2 318s autopkgtest [10:57:05]: test pybuild-autopkgtest: -----------------------] 319s pybuild-autopkgtest FAIL non-zero exit status 25 319s autopkgtest [10:57:06]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 320s autopkgtest [10:57:07]: @@@@@@@@@@@@@@@@@@@@ summary 320s pybuild-autopkgtest FAIL non-zero exit status 25 336s nova [W] Using flock in prodstack6-ppc64el 336s Creating nova instance adt-plucky-ppc64el-bpack-20241113-103705-juju-7f2275-prod-proposed-migration-environment-15-5c62174a-861d-4201-9bde-ca0a7f499b9b from image adt/ubuntu-plucky-ppc64el-server-20241113.img (UUID 0c5715b6-5cca-4485-b8bf-b85dfd917a5f)...