0s autopkgtest [14:13:53]: starting date and time: 2026-02-06 14:13:53+0000 0s autopkgtest [14:13:53]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [14:13:53]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.vmevwn5t/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:setuptools --apt-upgrade compyle --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=setuptools/78.1.1-0.1build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-17.secgroup --name adt-resolute-amd64-compyle-20260206-140135-juju-7f2275-prod-proposed-migration-environment-15-8948d1d1-ea65-4d6e-9dad-ab07fa1e3720 --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-amd64-compyle-20260206-140135-juju-7f2275-prod-proposed-migration-environment-15-8948d1d1-ea65-4d6e-9dad-ab07fa1e3720 from image adt/ubuntu-resolute-amd64-server-20260204.img (UUID fedf54b4-458b-493e-8072-6425c19717b4)... 76s autopkgtest [14:15:09]: testbed dpkg architecture: amd64 76s autopkgtest [14:15:09]: testbed apt version: 3.1.14 76s autopkgtest [14:15:09]: @@@@@@@@@@@@@@@@@@@@ test bed setup 76s autopkgtest [14:15:09]: testbed release detected to be: None 77s autopkgtest [14:15:10]: updating testbed package index (apt update) 77s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 77s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 77s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 77s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 77s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [191 kB] 77s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9256 B] 77s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1473 kB] 77s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [30.8 kB] 77s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [249 kB] 77s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [181 kB] 78s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [6436 B] 78s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3692 B] 78s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [68.4 kB] 78s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 78s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [518 kB] 78s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [1348 kB] 78s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [35.8 kB] 78s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [26.7 kB] 78s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [4320 B] 78s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [1060 B] 79s Fetched 4271 kB in 1s (4783 kB/s) 79s Reading package lists... 80s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 80s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 80s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 80s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 80s Reading package lists... 80s Reading package lists... 80s Building dependency tree... 80s Reading state information... 81s Calculating upgrade... 81s The following packages will be upgraded: 81s amd64-microcode apt busybox-initramfs busybox-static dmsetup findutils less 81s libapt-pkg7.0 libattr1 libdevmapper1.02.1 libdrm-amdgpu1 libdrm-common 81s libdrm2 libgpm2 libkeyutils1 libmaxminddb0 libnpth0t64 libsensors-config 81s libsensors5 mawk patch pollinate python3-linkify-it python3-markdown-it 81s python3-pkg-resources python3-referencing python3-setuptools sed tar 81s 29 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 81s Need to get 6787 kB of archives. 81s After this operation, 270 kB disk space will be freed. 81s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 findutils amd64 4.10.0-3build2 [307 kB] 81s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 sed amd64 4.9-2build3 [195 kB] 81s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 tar amd64 1.35+dfsg-3.1build2 [257 kB] 81s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libattr1 amd64 1:2.5.2-3build2 [11.4 kB] 81s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 mawk amd64 1.3.4.20260129-1 [133 kB] 81s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.15 [1151 kB] 81s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.15 [1479 kB] 81s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libdevmapper1.02.1 amd64 2:1.02.205-2ubuntu3 [142 kB] 81s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 dmsetup amd64 2:1.02.205-2ubuntu3 [79.4 kB] 81s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 less amd64 668-1build1 [172 kB] 81s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 libkeyutils1 amd64 1.6.3-6ubuntu3 [10.6 kB] 81s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-linkify-it all 2.0.3-1ubuntu3 [19.4 kB] 81s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-markdown-it all 3.0.0-3build1 [54.4 kB] 81s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 busybox-static amd64 1:1.37.0-7ubuntu1 [1034 kB] 81s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm-common all 2.4.131-1 [9774 B] 81s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm2 amd64 2.4.131-1 [42.3 kB] 81s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 libgpm2 amd64 1.20.7-12build1 [14.4 kB] 81s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libmaxminddb0 amd64 1.12.2-1build2 [18.9 kB] 81s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 libsensors-config all 1:3.6.2-2build1 [6862 B] 81s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 libsensors5 amd64 1:3.6.2-2build1 [28.9 kB] 81s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 busybox-initramfs amd64 1:1.37.0-7ubuntu1 [191 kB] 81s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 libdrm-amdgpu1 amd64 2.4.131-1 [23.2 kB] 81s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 libnpth0t64 amd64 1.8-3build1 [9302 B] 81s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 patch amd64 2.8-2build1 [95.7 kB] 81s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 pollinate all 4.33-4ubuntu5 [14.0 kB] 81s Get:26 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-pkg-resources all 78.1.1-0.1build1 [144 kB] 81s Get:27 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-setuptools all 78.1.1-0.1build1 [661 kB] 81s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 81s Get:29 http://ftpmaster.internal/ubuntu resolute/main amd64 amd64-microcode amd64 3.20251202.1ubuntu1 [459 kB] 81s dpkg-preconfigure: unable to re-open stdin: No such file or directory 81s Fetched 6787 kB in 0s (15.6 MB/s) 82s (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 ... 83957 files and directories currently installed.) 82s Preparing to unpack .../findutils_4.10.0-3build2_amd64.deb ... 82s Unpacking findutils (4.10.0-3build2) over (4.10.0-3build1) ... 82s Setting up findutils (4.10.0-3build2) ... 82s (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 ... 83957 files and directories currently installed.) 82s Preparing to unpack .../sed_4.9-2build3_amd64.deb ... 82s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 82s Setting up sed (4.9-2build3) ... 82s (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 ... 83957 files and directories currently installed.) 82s Preparing to unpack .../tar_1.35+dfsg-3.1build2_amd64.deb ... 82s Unpacking tar (1.35+dfsg-3.1build2) over (1.35+dfsg-3.1build1) ... 82s Setting up tar (1.35+dfsg-3.1build2) ... 82s (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 ... 83957 files and directories currently installed.) 82s Preparing to unpack .../libattr1_1%3a2.5.2-3build2_amd64.deb ... 82s Unpacking libattr1:amd64 (1:2.5.2-3build2) over (1:2.5.2-3build1) ... 82s Setting up libattr1:amd64 (1:2.5.2-3build2) ... 82s (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 ... 83957 files and directories currently installed.) 82s Preparing to unpack .../00-mawk_1.3.4.20260129-1_amd64.deb ... 82s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 82s Preparing to unpack .../01-libapt-pkg7.0_3.1.15_amd64.deb ... 82s Unpacking libapt-pkg7.0:amd64 (3.1.15) over (3.1.14) ... 82s Preparing to unpack .../02-apt_3.1.15_amd64.deb ... 82s Unpacking apt (3.1.15) over (3.1.14) ... 82s Preparing to unpack .../03-libdevmapper1.02.1_2%3a1.02.205-2ubuntu3_amd64.deb ... 82s Unpacking libdevmapper1.02.1:amd64 (2:1.02.205-2ubuntu3) over (2:1.02.205-2ubuntu2) ... 82s Preparing to unpack .../04-dmsetup_2%3a1.02.205-2ubuntu3_amd64.deb ... 82s Unpacking dmsetup (2:1.02.205-2ubuntu3) over (2:1.02.205-2ubuntu2) ... 82s Preparing to unpack .../05-less_668-1build1_amd64.deb ... 82s Unpacking less (668-1build1) over (668-1) ... 82s Preparing to unpack .../06-libkeyutils1_1.6.3-6ubuntu3_amd64.deb ... 82s Unpacking libkeyutils1:amd64 (1.6.3-6ubuntu3) over (1.6.3-6ubuntu2) ... 82s Preparing to unpack .../07-python3-linkify-it_2.0.3-1ubuntu3_all.deb ... 82s Unpacking python3-linkify-it (2.0.3-1ubuntu3) over (2.0.3-1ubuntu2) ... 82s Preparing to unpack .../08-python3-markdown-it_3.0.0-3build1_all.deb ... 82s Unpacking python3-markdown-it (3.0.0-3build1) over (3.0.0-3) ... 82s Preparing to unpack .../09-busybox-static_1%3a1.37.0-7ubuntu1_amd64.deb ... 82s Unpacking busybox-static (1:1.37.0-7ubuntu1) over (1:1.37.0-4ubuntu1) ... 82s Preparing to unpack .../10-libdrm-common_2.4.131-1_all.deb ... 82s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 83s Preparing to unpack .../11-libdrm2_2.4.131-1_amd64.deb ... 83s Unpacking libdrm2:amd64 (2.4.131-1) over (2.4.129-1) ... 83s Preparing to unpack .../12-libgpm2_1.20.7-12build1_amd64.deb ... 83s Unpacking libgpm2:amd64 (1.20.7-12build1) over (1.20.7-12) ... 83s Preparing to unpack .../13-libmaxminddb0_1.12.2-1build2_amd64.deb ... 83s Unpacking libmaxminddb0:amd64 (1.12.2-1build2) over (1.12.2-1build1) ... 83s Preparing to unpack .../14-libsensors-config_1%3a3.6.2-2build1_all.deb ... 83s Unpacking libsensors-config (1:3.6.2-2build1) over (1:3.6.2-2) ... 83s Preparing to unpack .../15-libsensors5_1%3a3.6.2-2build1_amd64.deb ... 83s Unpacking libsensors5:amd64 (1:3.6.2-2build1) over (1:3.6.2-2) ... 83s Preparing to unpack .../16-busybox-initramfs_1%3a1.37.0-7ubuntu1_amd64.deb ... 83s Unpacking busybox-initramfs (1:1.37.0-7ubuntu1) over (1:1.37.0-4ubuntu1) ... 83s Preparing to unpack .../17-libdrm-amdgpu1_2.4.131-1_amd64.deb ... 83s Unpacking libdrm-amdgpu1:amd64 (2.4.131-1) over (2.4.129-1) ... 83s Preparing to unpack .../18-libnpth0t64_1.8-3build1_amd64.deb ... 83s Unpacking libnpth0t64:amd64 (1.8-3build1) over (1.8-3) ... 83s Preparing to unpack .../19-patch_2.8-2build1_amd64.deb ... 83s Unpacking patch (2.8-2build1) over (2.8-2) ... 83s Preparing to unpack .../20-pollinate_4.33-4ubuntu5_all.deb ... 83s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 83s Preparing to unpack .../21-python3-pkg-resources_78.1.1-0.1build1_all.deb ... 83s Unpacking python3-pkg-resources (78.1.1-0.1build1) over (78.1.1-0.1) ... 83s Preparing to unpack .../22-python3-setuptools_78.1.1-0.1build1_all.deb ... 83s Unpacking python3-setuptools (78.1.1-0.1build1) over (78.1.1-0.1) ... 83s Preparing to unpack .../23-python3-referencing_0.36.2-1ubuntu2_all.deb ... 83s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 83s Preparing to unpack .../24-amd64-microcode_3.20251202.1ubuntu1_amd64.deb ... 83s Unpacking amd64-microcode (3.20251202.1ubuntu1) over (3.20250708.1ubuntu1) ... 83s Setting up python3-pkg-resources (78.1.1-0.1build1) ... 83s Setting up libnpth0t64:amd64 (1.8-3build1) ... 83s Setting up libkeyutils1:amd64 (1.6.3-6ubuntu3) ... 83s Setting up libgpm2:amd64 (1.20.7-12build1) ... 83s Setting up python3-setuptools (78.1.1-0.1build1) ... 84s Setting up libmaxminddb0:amd64 (1.12.2-1build2) ... 84s Setting up libsensors-config (1:3.6.2-2build1) ... 84s Setting up less (668-1build1) ... 84s Setting up amd64-microcode (3.20251202.1ubuntu1) ... 84s amd64-microcode: microcode will be updated at next boot 84s Setting up pollinate (4.33-4ubuntu5) ... 94s Setting up busybox-static (1:1.37.0-7ubuntu1) ... 94s Setting up patch (2.8-2build1) ... 94s Setting up libsensors5:amd64 (1:3.6.2-2build1) ... 94s Setting up busybox-initramfs (1:1.37.0-7ubuntu1) ... 94s Setting up libdevmapper1.02.1:amd64 (2:1.02.205-2ubuntu3) ... 94s Setting up dmsetup (2:1.02.205-2ubuntu3) ... 94s Setting up python3-linkify-it (2.0.3-1ubuntu3) ... 94s Setting up mawk (1.3.4.20260129-1) ... 94s Setting up libapt-pkg7.0:amd64 (3.1.15) ... 94s Setting up libdrm-common (2.4.131-1) ... 94s Setting up python3-referencing (0.36.2-1ubuntu2) ... 94s Setting up apt (3.1.15) ... 95s Setting up python3-markdown-it (3.0.0-3build1) ... 95s Setting up libdrm2:amd64 (2.4.131-1) ... 95s Setting up libdrm-amdgpu1:amd64 (2.4.131-1) ... 95s Processing triggers for libc-bin (2.42-2ubuntu4) ... 95s Processing triggers for man-db (2.13.1-1) ... 96s Processing triggers for install-info (7.2-5) ... 96s Processing triggers for initramfs-tools (0.150ubuntu7) ... 96s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 100s autopkgtest [14:15:33]: upgrading testbed (apt dist-upgrade and autopurge) 101s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s Calculating upgrade... 101s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 101s Reading package lists... 102s Building dependency tree... 102s Reading state information... 102s Solving dependencies... 102s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 102s autopkgtest [14:15:35]: rebooting testbed after setup commands that affected boot 130s autopkgtest [14:16:03]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:49:02 UTC 2026 132s autopkgtest [14:16:05]: @@@@@@@@@@@@@@@@@@@@ apt-source compyle 133s Get:1 http://ftpmaster.internal/ubuntu resolute/universe compyle 0.8.1-11 (dsc) [1843 B] 133s Get:2 http://ftpmaster.internal/ubuntu resolute/universe compyle 0.8.1-11 (tar) [123 kB] 133s Get:3 http://ftpmaster.internal/ubuntu resolute/universe compyle 0.8.1-11 (diff) [7400 B] 133s gpgv: Signature made Thu Jun 19 07:40:21 2025 UTC 133s gpgv: using RSA key D54C3BFAFFB042DE382DA5D741CE7F0B9F1B8B32 133s gpgv: Can't check signature: No public key 133s dpkg-source: warning: cannot verify inline signature for ./compyle_0.8.1-11.dsc: no acceptable signature found 133s autopkgtest [14:16:06]: testing package compyle version 0.8.1-11 134s autopkgtest [14:16:07]: build not needed 134s autopkgtest [14:16:07]: test pybuild-autopkgtest: preparing testbed 134s Reading package lists... 135s Building dependency tree... 135s Reading state information... 135s Solving dependencies... 135s The following NEW packages will be installed: 135s autoconf automake autopoint autotools-dev build-essential clang-18 cpp 135s cpp-15 cpp-15-x86-64-linux-gnu cpp-x86-64-linux-gnu cython3 debhelper 135s debugedit dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-15 135s g++-15-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-15 135s gcc-15-x86-64-linux-gnu gcc-x86-64-linux-gnu gettext intltool-debian 135s libarchive-zip-perl libasan8 libblas3 libc-dev-bin libc6-dev libcc1-0 135s libclang-common-18-dev libclang-cpp18 libclang1-18 libcrypt-dev 135s libdebhelper-perl libexpat1-dev libfile-stripnondeterminism-perl libgc1 135s libgcc-15-dev libgfortran5 libgomp1 libhwasan0 libhwloc15 libisl23 libitm1 135s liblapack3 libllvm18 libllvmspirvlib18.1 liblsan0 libmpc3 libobjc-15-dev 135s libobjc4 libpocl2-common libpocl2t64 libpython3-all-dev libpython3-dev 135s libpython3.13-dev libpython3.14 libpython3.14-dev libpython3.14-minimal 135s libpython3.14-stdlib libquadmath0 libstdc++-15-dev libtool libtsan2 135s libubsan1 linux-libc-dev llvm-18-linker-tools llvm-spirv-18 m4 135s ocl-icd-libopencl1 po-debconf pocl-opencl-icd pybuild-plugin-autopkgtest 135s python3-all python3-all-dev python3-compyle python3-decorator python3-dev 135s python3-iniconfig python3-mako python3-numpy python3-numpy-dev 135s python3-platformdirs python3-pluggy python3-pyopencl python3-pytest 135s python3-pytools python3.13-dev python3.14 python3.14-dev python3.14-minimal 135s rpcsvc-proto zlib1g-dev 135s 0 upgraded, 97 newly installed, 0 to remove and 0 not upgraded. 135s Need to get 188 MB of archives. 135s After this operation, 776 MB of additional disk space will be used. 135s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-numpy-dev amd64 1:2.3.5+ds-3 [147 kB] 135s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 libblas3 amd64 3.12.1-7ubuntu1 [260 kB] 135s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libgfortran5 amd64 15.2.0-12ubuntu1 [939 kB] 135s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 liblapack3 amd64 3.12.1-7ubuntu1 [2739 kB] 135s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-numpy amd64 1:2.3.5+ds-3 [8129 kB] 135s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.2-1 [920 kB] 135s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.2-1 [2563 kB] 135s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 m4 amd64 1.4.20-2 [217 kB] 135s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 autoconf all 2.72-3.1ubuntu1 [384 kB] 135s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 autotools-dev all 20240727.1build1 [43.4 kB] 135s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 automake all 1:1.18.1-3build1 [582 kB] 135s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 autopoint all 0.23.2-1 [620 kB] 135s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 libc-dev-bin amd64 2.42-2ubuntu4 [23.3 kB] 135s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-libc-dev amd64 6.18.0-9.9 [1860 kB] 136s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 libcrypt-dev amd64 1:4.5.1-1 [122 kB] 136s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 rpcsvc-proto amd64 1.4.3-1build1 [68.3 kB] 136s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 libc6-dev amd64 2.42-2ubuntu4 [2207 kB] 136s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 libisl23 amd64 0.27-1build1 [691 kB] 136s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 libmpc3 amd64 1.3.1-2 [54.8 kB] 136s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-15-x86-64-linux-gnu amd64 15.2.0-12ubuntu1 [12.9 MB] 136s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-15 amd64 15.2.0-12ubuntu1 [1034 B] 136s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [5746 B] 136s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 cpp amd64 4:15.2.0-4ubuntu1 [22.4 kB] 136s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 libcc1-0 amd64 15.2.0-12ubuntu1 [47.4 kB] 136s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 libgomp1 amd64 15.2.0-12ubuntu1 [151 kB] 136s Get:26 http://ftpmaster.internal/ubuntu resolute/main amd64 libitm1 amd64 15.2.0-12ubuntu1 [29.5 kB] 136s Get:27 http://ftpmaster.internal/ubuntu resolute/main amd64 libasan8 amd64 15.2.0-12ubuntu1 [3070 kB] 136s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 liblsan0 amd64 15.2.0-12ubuntu1 [1360 kB] 136s Get:29 http://ftpmaster.internal/ubuntu resolute/main amd64 libtsan2 amd64 15.2.0-12ubuntu1 [2757 kB] 136s Get:30 http://ftpmaster.internal/ubuntu resolute/main amd64 libubsan1 amd64 15.2.0-12ubuntu1 [1210 kB] 136s Get:31 http://ftpmaster.internal/ubuntu resolute/main amd64 libhwasan0 amd64 15.2.0-12ubuntu1 [1685 kB] 137s Get:32 http://ftpmaster.internal/ubuntu resolute/main amd64 libquadmath0 amd64 15.2.0-12ubuntu1 [153 kB] 137s Get:33 http://ftpmaster.internal/ubuntu resolute/main amd64 libgcc-15-dev amd64 15.2.0-12ubuntu1 [2866 kB] 137s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-15-x86-64-linux-gnu amd64 15.2.0-12ubuntu1 [25.4 MB] 138s Get:35 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-15 amd64 15.2.0-12ubuntu1 [530 kB] 138s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [1208 B] 138s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 gcc amd64 4:15.2.0-4ubuntu1 [5024 B] 138s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 libstdc++-15-dev amd64 15.2.0-12ubuntu1 [2553 kB] 138s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-15-x86-64-linux-gnu amd64 15.2.0-12ubuntu1 [14.4 MB] 139s Get:40 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-15 amd64 15.2.0-12ubuntu1 [25.3 kB] 139s Get:41 http://ftpmaster.internal/ubuntu resolute/main amd64 g++-x86-64-linux-gnu amd64 4:15.2.0-4ubuntu1 [966 B] 139s Get:42 http://ftpmaster.internal/ubuntu resolute/main amd64 g++ amd64 4:15.2.0-4ubuntu1 [1100 B] 139s Get:43 http://ftpmaster.internal/ubuntu resolute/main amd64 build-essential amd64 12.12ubuntu2 [5256 B] 139s Get:44 http://ftpmaster.internal/ubuntu resolute/universe amd64 libllvm18 amd64 1:18.1.8-20ubuntu5 [27.3 MB] 140s Get:45 http://ftpmaster.internal/ubuntu resolute/universe amd64 libclang-cpp18 amd64 1:18.1.8-20ubuntu5 [13.4 MB] 140s Get:46 http://ftpmaster.internal/ubuntu resolute/main amd64 libgc1 amd64 1:8.2.10-1 [97.9 kB] 140s Get:47 http://ftpmaster.internal/ubuntu resolute/universe amd64 libobjc4 amd64 15.2.0-12ubuntu1 [47.8 kB] 140s Get:48 http://ftpmaster.internal/ubuntu resolute/universe amd64 libobjc-15-dev amd64 15.2.0-12ubuntu1 [196 kB] 140s Get:49 http://ftpmaster.internal/ubuntu resolute/universe amd64 libclang-common-18-dev amd64 1:18.1.8-20ubuntu5 [739 kB] 140s Get:50 http://ftpmaster.internal/ubuntu resolute/universe amd64 llvm-18-linker-tools amd64 1:18.1.8-20ubuntu5 [1305 kB] 140s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 libclang1-18 amd64 1:18.1.8-20ubuntu5 [7710 kB] 141s Get:52 http://ftpmaster.internal/ubuntu resolute/universe amd64 clang-18 amd64 1:18.1.8-20ubuntu5 [79.7 kB] 141s Get:53 http://ftpmaster.internal/ubuntu resolute/universe amd64 cython3 amd64 3.1.6+dfsg-1ubuntu1 [3428 kB] 141s Get:54 http://ftpmaster.internal/ubuntu resolute/main amd64 libdebhelper-perl all 13.28ubuntu1 [97.4 kB] 141s Get:55 http://ftpmaster.internal/ubuntu resolute/main amd64 libtool all 2.5.4-9 [169 kB] 141s Get:56 http://ftpmaster.internal/ubuntu resolute/main amd64 dh-autoreconf all 21+nmu1 [11.9 kB] 141s Get:57 http://ftpmaster.internal/ubuntu resolute/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 141s Get:58 http://ftpmaster.internal/ubuntu resolute/main amd64 libfile-stripnondeterminism-perl all 1.15.0-1build1 [20.6 kB] 141s Get:59 http://ftpmaster.internal/ubuntu resolute/main amd64 dh-strip-nondeterminism all 1.15.0-1build1 [5110 B] 141s Get:60 http://ftpmaster.internal/ubuntu resolute/main amd64 debugedit amd64 1:5.2-3build1 [48.8 kB] 141s Get:61 http://ftpmaster.internal/ubuntu resolute/main amd64 dwz amd64 0.16-2build1 [113 kB] 141s Get:62 http://ftpmaster.internal/ubuntu resolute/main amd64 gettext amd64 0.23.2-1 [1019 kB] 141s Get:63 http://ftpmaster.internal/ubuntu resolute/main amd64 intltool-debian all 0.35.0+20060710.6build1 [24.1 kB] 141s Get:64 http://ftpmaster.internal/ubuntu resolute/main amd64 po-debconf all 1.0.22 [215 kB] 141s Get:65 http://ftpmaster.internal/ubuntu resolute/main amd64 debhelper all 13.28ubuntu1 [916 kB] 141s Get:66 http://ftpmaster.internal/ubuntu resolute/universe amd64 dh-python all 7.20260125 [122 kB] 141s Get:67 http://ftpmaster.internal/ubuntu resolute/main amd64 libexpat1-dev amd64 2.7.4-1 [145 kB] 141s Get:68 http://ftpmaster.internal/ubuntu resolute/universe amd64 libhwloc15 amd64 2.12.2-1build1 [175 kB] 141s Get:69 http://ftpmaster.internal/ubuntu resolute/universe amd64 libllvmspirvlib18.1 amd64 18.1.19-1 [889 kB] 141s Get:70 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpocl2-common all 6.0-7 [83.0 kB] 141s Get:71 http://ftpmaster.internal/ubuntu resolute/universe amd64 llvm-spirv-18 amd64 18.1.19-1 [543 kB] 141s Get:72 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpocl2t64 amd64 6.0-7 [16.4 MB] 141s Get:73 http://ftpmaster.internal/ubuntu resolute/main amd64 zlib1g-dev amd64 1:1.3.dfsg+really1.3.1-1ubuntu2 [898 kB] 141s Get:74 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.13-dev amd64 3.13.11-1 [5798 kB] 142s Get:75 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3-dev amd64 3.13.9-3 [11.2 kB] 142s Get:76 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.2-1 [2398 kB] 142s Get:77 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14 amd64 3.14.2-1 [2568 kB] 142s Get:78 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-dev amd64 3.14.2-1 [5963 kB] 142s Get:79 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3-all-dev amd64 3.13.9-3 [916 B] 142s Get:80 http://ftpmaster.internal/ubuntu resolute/universe amd64 pybuild-plugin-autopkgtest all 7.20260125 [1744 B] 142s Get:81 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.2-1 [816 kB] 142s Get:82 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-all amd64 3.13.9-3 [890 B] 142s Get:83 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13-dev amd64 3.13.11-1 [508 kB] 142s Get:84 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-dev amd64 3.13.9-3 [26.6 kB] 142s Get:85 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-dev amd64 3.14.2-1 [510 kB] 142s Get:86 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-all-dev amd64 3.13.9-3 [914 B] 142s Get:87 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-mako all 1.3.10-3build1 [63.9 kB] 142s Get:88 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-platformdirs all 4.5.1-1 [17.1 kB] 142s Get:89 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 142s Get:90 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytools all 2025.1.2-1 [69.9 kB] 142s Get:91 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-compyle all 0.8.1-11 [91.6 kB] 142s Get:92 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-2 [6962 B] 142s Get:93 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-2 [21.1 kB] 142s Get:94 http://ftpmaster.internal/ubuntu resolute/main amd64 ocl-icd-libopencl1 amd64 2.3.4-1 [40.9 kB] 142s Get:95 http://ftpmaster.internal/ubuntu resolute/universe amd64 pocl-opencl-icd amd64 6.0-7 [7170 B] 142s Get:96 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pyopencl amd64 2025.1-2 [498 kB] 142s Get:97 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 9.0.2-2 [277 kB] 142s Fetched 188 MB in 7s (26.6 MB/s) 142s Selecting previously unselected package python3-numpy-dev:amd64. 142s (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 ... 83962 files and directories currently installed.) 142s Preparing to unpack .../00-python3-numpy-dev_1%3a2.3.5+ds-3_amd64.deb ... 142s Unpacking python3-numpy-dev:amd64 (1:2.3.5+ds-3) ... 142s Selecting previously unselected package libblas3:amd64. 142s Preparing to unpack .../01-libblas3_3.12.1-7ubuntu1_amd64.deb ... 142s Unpacking libblas3:amd64 (3.12.1-7ubuntu1) ... 142s Selecting previously unselected package libgfortran5:amd64. 142s Preparing to unpack .../02-libgfortran5_15.2.0-12ubuntu1_amd64.deb ... 142s Unpacking libgfortran5:amd64 (15.2.0-12ubuntu1) ... 142s Selecting previously unselected package liblapack3:amd64. 142s Preparing to unpack .../03-liblapack3_3.12.1-7ubuntu1_amd64.deb ... 142s Unpacking liblapack3:amd64 (3.12.1-7ubuntu1) ... 142s Selecting previously unselected package python3-numpy. 142s Preparing to unpack .../04-python3-numpy_1%3a2.3.5+ds-3_amd64.deb ... 142s Unpacking python3-numpy (1:2.3.5+ds-3) ... 143s Selecting previously unselected package libpython3.14-minimal:amd64. 143s Preparing to unpack .../05-libpython3.14-minimal_3.14.2-1_amd64.deb ... 143s Unpacking libpython3.14-minimal:amd64 (3.14.2-1) ... 143s Selecting previously unselected package python3.14-minimal. 143s Preparing to unpack .../06-python3.14-minimal_3.14.2-1_amd64.deb ... 143s Unpacking python3.14-minimal (3.14.2-1) ... 143s Selecting previously unselected package m4. 143s Preparing to unpack .../07-m4_1.4.20-2_amd64.deb ... 143s Unpacking m4 (1.4.20-2) ... 143s Selecting previously unselected package autoconf. 143s Preparing to unpack .../08-autoconf_2.72-3.1ubuntu1_all.deb ... 143s Unpacking autoconf (2.72-3.1ubuntu1) ... 143s Selecting previously unselected package autotools-dev. 143s Preparing to unpack .../09-autotools-dev_20240727.1build1_all.deb ... 143s Unpacking autotools-dev (20240727.1build1) ... 143s Selecting previously unselected package automake. 143s Preparing to unpack .../10-automake_1%3a1.18.1-3build1_all.deb ... 143s Unpacking automake (1:1.18.1-3build1) ... 143s Selecting previously unselected package autopoint. 143s Preparing to unpack .../11-autopoint_0.23.2-1_all.deb ... 143s Unpacking autopoint (0.23.2-1) ... 143s Selecting previously unselected package libc-dev-bin. 143s Preparing to unpack .../12-libc-dev-bin_2.42-2ubuntu4_amd64.deb ... 143s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 143s Selecting previously unselected package linux-libc-dev:amd64. 143s Preparing to unpack .../13-linux-libc-dev_6.18.0-9.9_amd64.deb ... 143s Unpacking linux-libc-dev:amd64 (6.18.0-9.9) ... 143s Selecting previously unselected package libcrypt-dev:amd64. 143s Preparing to unpack .../14-libcrypt-dev_1%3a4.5.1-1_amd64.deb ... 143s Unpacking libcrypt-dev:amd64 (1:4.5.1-1) ... 143s Selecting previously unselected package rpcsvc-proto. 143s Preparing to unpack .../15-rpcsvc-proto_1.4.3-1build1_amd64.deb ... 143s Unpacking rpcsvc-proto (1.4.3-1build1) ... 143s Selecting previously unselected package libc6-dev:amd64. 143s Preparing to unpack .../16-libc6-dev_2.42-2ubuntu4_amd64.deb ... 143s Unpacking libc6-dev:amd64 (2.42-2ubuntu4) ... 143s Selecting previously unselected package libisl23:amd64. 143s Preparing to unpack .../17-libisl23_0.27-1build1_amd64.deb ... 143s Unpacking libisl23:amd64 (0.27-1build1) ... 143s Selecting previously unselected package libmpc3:amd64. 143s Preparing to unpack .../18-libmpc3_1.3.1-2_amd64.deb ... 143s Unpacking libmpc3:amd64 (1.3.1-2) ... 143s Selecting previously unselected package cpp-15-x86-64-linux-gnu. 143s Preparing to unpack .../19-cpp-15-x86-64-linux-gnu_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking cpp-15-x86-64-linux-gnu (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package cpp-15. 143s Preparing to unpack .../20-cpp-15_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package cpp-x86-64-linux-gnu. 143s Preparing to unpack .../21-cpp-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 143s Unpacking cpp-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 143s Selecting previously unselected package cpp. 143s Preparing to unpack .../22-cpp_4%3a15.2.0-4ubuntu1_amd64.deb ... 143s Unpacking cpp (4:15.2.0-4ubuntu1) ... 143s Selecting previously unselected package libcc1-0:amd64. 143s Preparing to unpack .../23-libcc1-0_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libcc1-0:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libgomp1:amd64. 143s Preparing to unpack .../24-libgomp1_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libgomp1:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libitm1:amd64. 143s Preparing to unpack .../25-libitm1_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libitm1:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libasan8:amd64. 143s Preparing to unpack .../26-libasan8_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libasan8:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package liblsan0:amd64. 143s Preparing to unpack .../27-liblsan0_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking liblsan0:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libtsan2:amd64. 143s Preparing to unpack .../28-libtsan2_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libtsan2:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libubsan1:amd64. 143s Preparing to unpack .../29-libubsan1_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libubsan1:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libhwasan0:amd64. 143s Preparing to unpack .../30-libhwasan0_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libhwasan0:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libquadmath0:amd64. 143s Preparing to unpack .../31-libquadmath0_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libquadmath0:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package libgcc-15-dev:amd64. 143s Preparing to unpack .../32-libgcc-15-dev_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking libgcc-15-dev:amd64 (15.2.0-12ubuntu1) ... 143s Selecting previously unselected package gcc-15-x86-64-linux-gnu. 143s Preparing to unpack .../33-gcc-15-x86-64-linux-gnu_15.2.0-12ubuntu1_amd64.deb ... 143s Unpacking gcc-15-x86-64-linux-gnu (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package gcc-15. 144s Preparing to unpack .../34-gcc-15_15.2.0-12ubuntu1_amd64.deb ... 144s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package gcc-x86-64-linux-gnu. 144s Preparing to unpack .../35-gcc-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 144s Unpacking gcc-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 144s Selecting previously unselected package gcc. 144s Preparing to unpack .../36-gcc_4%3a15.2.0-4ubuntu1_amd64.deb ... 144s Unpacking gcc (4:15.2.0-4ubuntu1) ... 144s Selecting previously unselected package libstdc++-15-dev:amd64. 144s Preparing to unpack .../37-libstdc++-15-dev_15.2.0-12ubuntu1_amd64.deb ... 144s Unpacking libstdc++-15-dev:amd64 (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package g++-15-x86-64-linux-gnu. 144s Preparing to unpack .../38-g++-15-x86-64-linux-gnu_15.2.0-12ubuntu1_amd64.deb ... 144s Unpacking g++-15-x86-64-linux-gnu (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package g++-15. 144s Preparing to unpack .../39-g++-15_15.2.0-12ubuntu1_amd64.deb ... 144s Unpacking g++-15 (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package g++-x86-64-linux-gnu. 144s Preparing to unpack .../40-g++-x86-64-linux-gnu_4%3a15.2.0-4ubuntu1_amd64.deb ... 144s Unpacking g++-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 144s Selecting previously unselected package g++. 144s Preparing to unpack .../41-g++_4%3a15.2.0-4ubuntu1_amd64.deb ... 144s Unpacking g++ (4:15.2.0-4ubuntu1) ... 144s Selecting previously unselected package build-essential. 144s Preparing to unpack .../42-build-essential_12.12ubuntu2_amd64.deb ... 144s Unpacking build-essential (12.12ubuntu2) ... 144s Selecting previously unselected package libllvm18:amd64. 144s Preparing to unpack .../43-libllvm18_1%3a18.1.8-20ubuntu5_amd64.deb ... 144s Unpacking libllvm18:amd64 (1:18.1.8-20ubuntu5) ... 144s Selecting previously unselected package libclang-cpp18. 144s Preparing to unpack .../44-libclang-cpp18_1%3a18.1.8-20ubuntu5_amd64.deb ... 144s Unpacking libclang-cpp18 (1:18.1.8-20ubuntu5) ... 144s Selecting previously unselected package libgc1:amd64. 144s Preparing to unpack .../45-libgc1_1%3a8.2.10-1_amd64.deb ... 144s Unpacking libgc1:amd64 (1:8.2.10-1) ... 144s Selecting previously unselected package libobjc4:amd64. 144s Preparing to unpack .../46-libobjc4_15.2.0-12ubuntu1_amd64.deb ... 144s Unpacking libobjc4:amd64 (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package libobjc-15-dev:amd64. 144s Preparing to unpack .../47-libobjc-15-dev_15.2.0-12ubuntu1_amd64.deb ... 144s Unpacking libobjc-15-dev:amd64 (15.2.0-12ubuntu1) ... 144s Selecting previously unselected package libclang-common-18-dev:amd64. 144s Preparing to unpack .../48-libclang-common-18-dev_1%3a18.1.8-20ubuntu5_amd64.deb ... 144s Unpacking libclang-common-18-dev:amd64 (1:18.1.8-20ubuntu5) ... 145s Selecting previously unselected package llvm-18-linker-tools. 145s Preparing to unpack .../49-llvm-18-linker-tools_1%3a18.1.8-20ubuntu5_amd64.deb ... 145s Unpacking llvm-18-linker-tools (1:18.1.8-20ubuntu5) ... 145s Selecting previously unselected package libclang1-18. 145s Preparing to unpack .../50-libclang1-18_1%3a18.1.8-20ubuntu5_amd64.deb ... 145s Unpacking libclang1-18 (1:18.1.8-20ubuntu5) ... 145s Selecting previously unselected package clang-18. 145s Preparing to unpack .../51-clang-18_1%3a18.1.8-20ubuntu5_amd64.deb ... 145s Unpacking clang-18 (1:18.1.8-20ubuntu5) ... 145s Selecting previously unselected package cython3. 145s Preparing to unpack .../52-cython3_3.1.6+dfsg-1ubuntu1_amd64.deb ... 145s Unpacking cython3 (3.1.6+dfsg-1ubuntu1) ... 145s Selecting previously unselected package libdebhelper-perl. 145s Preparing to unpack .../53-libdebhelper-perl_13.28ubuntu1_all.deb ... 145s Unpacking libdebhelper-perl (13.28ubuntu1) ... 145s Selecting previously unselected package libtool. 145s Preparing to unpack .../54-libtool_2.5.4-9_all.deb ... 145s Unpacking libtool (2.5.4-9) ... 145s Selecting previously unselected package dh-autoreconf. 145s Preparing to unpack .../55-dh-autoreconf_21+nmu1_all.deb ... 145s Unpacking dh-autoreconf (21+nmu1) ... 145s Selecting previously unselected package libarchive-zip-perl. 145s Preparing to unpack .../56-libarchive-zip-perl_1.68-1_all.deb ... 145s Unpacking libarchive-zip-perl (1.68-1) ... 145s Selecting previously unselected package libfile-stripnondeterminism-perl. 145s Preparing to unpack .../57-libfile-stripnondeterminism-perl_1.15.0-1build1_all.deb ... 145s Unpacking libfile-stripnondeterminism-perl (1.15.0-1build1) ... 145s Selecting previously unselected package dh-strip-nondeterminism. 145s Preparing to unpack .../58-dh-strip-nondeterminism_1.15.0-1build1_all.deb ... 145s Unpacking dh-strip-nondeterminism (1.15.0-1build1) ... 145s Selecting previously unselected package debugedit. 145s Preparing to unpack .../59-debugedit_1%3a5.2-3build1_amd64.deb ... 145s Unpacking debugedit (1:5.2-3build1) ... 145s Selecting previously unselected package dwz. 145s Preparing to unpack .../60-dwz_0.16-2build1_amd64.deb ... 145s Unpacking dwz (0.16-2build1) ... 145s Selecting previously unselected package gettext. 145s Preparing to unpack .../61-gettext_0.23.2-1_amd64.deb ... 145s Unpacking gettext (0.23.2-1) ... 145s Selecting previously unselected package intltool-debian. 145s Preparing to unpack .../62-intltool-debian_0.35.0+20060710.6build1_all.deb ... 145s Unpacking intltool-debian (0.35.0+20060710.6build1) ... 145s Selecting previously unselected package po-debconf. 145s Preparing to unpack .../63-po-debconf_1.0.22_all.deb ... 145s Unpacking po-debconf (1.0.22) ... 145s Selecting previously unselected package debhelper. 145s Preparing to unpack .../64-debhelper_13.28ubuntu1_all.deb ... 145s Unpacking debhelper (13.28ubuntu1) ... 145s Selecting previously unselected package dh-python. 145s Preparing to unpack .../65-dh-python_7.20260125_all.deb ... 145s Unpacking dh-python (7.20260125) ... 145s Selecting previously unselected package libexpat1-dev:amd64. 145s Preparing to unpack .../66-libexpat1-dev_2.7.4-1_amd64.deb ... 145s Unpacking libexpat1-dev:amd64 (2.7.4-1) ... 145s Selecting previously unselected package libhwloc15:amd64. 145s Preparing to unpack .../67-libhwloc15_2.12.2-1build1_amd64.deb ... 145s Unpacking libhwloc15:amd64 (2.12.2-1build1) ... 145s Selecting previously unselected package libllvmspirvlib18.1:amd64. 145s Preparing to unpack .../68-libllvmspirvlib18.1_18.1.19-1_amd64.deb ... 145s Unpacking libllvmspirvlib18.1:amd64 (18.1.19-1) ... 145s Selecting previously unselected package libpocl2-common. 145s Preparing to unpack .../69-libpocl2-common_6.0-7_all.deb ... 145s Unpacking libpocl2-common (6.0-7) ... 145s Selecting previously unselected package llvm-spirv-18. 145s Preparing to unpack .../70-llvm-spirv-18_18.1.19-1_amd64.deb ... 145s Unpacking llvm-spirv-18 (18.1.19-1) ... 145s Selecting previously unselected package libpocl2t64:amd64. 145s Preparing to unpack .../71-libpocl2t64_6.0-7_amd64.deb ... 145s Unpacking libpocl2t64:amd64 (6.0-7) ... 145s Selecting previously unselected package zlib1g-dev:amd64. 145s Preparing to unpack .../72-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_amd64.deb ... 145s Unpacking zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 145s Selecting previously unselected package libpython3.13-dev:amd64. 145s Preparing to unpack .../73-libpython3.13-dev_3.13.11-1_amd64.deb ... 145s Unpacking libpython3.13-dev:amd64 (3.13.11-1) ... 145s Selecting previously unselected package libpython3-dev:amd64. 145s Preparing to unpack .../74-libpython3-dev_3.13.9-3_amd64.deb ... 145s Unpacking libpython3-dev:amd64 (3.13.9-3) ... 145s Selecting previously unselected package libpython3.14-stdlib:amd64. 145s Preparing to unpack .../75-libpython3.14-stdlib_3.14.2-1_amd64.deb ... 145s Unpacking libpython3.14-stdlib:amd64 (3.14.2-1) ... 145s Selecting previously unselected package libpython3.14:amd64. 145s Preparing to unpack .../76-libpython3.14_3.14.2-1_amd64.deb ... 145s Unpacking libpython3.14:amd64 (3.14.2-1) ... 145s Selecting previously unselected package libpython3.14-dev:amd64. 145s Preparing to unpack .../77-libpython3.14-dev_3.14.2-1_amd64.deb ... 145s Unpacking libpython3.14-dev:amd64 (3.14.2-1) ... 146s Selecting previously unselected package libpython3-all-dev:amd64. 146s Preparing to unpack .../78-libpython3-all-dev_3.13.9-3_amd64.deb ... 146s Unpacking libpython3-all-dev:amd64 (3.13.9-3) ... 146s Selecting previously unselected package pybuild-plugin-autopkgtest. 146s Preparing to unpack .../79-pybuild-plugin-autopkgtest_7.20260125_all.deb ... 146s Unpacking pybuild-plugin-autopkgtest (7.20260125) ... 146s Selecting previously unselected package python3.14. 146s Preparing to unpack .../80-python3.14_3.14.2-1_amd64.deb ... 146s Unpacking python3.14 (3.14.2-1) ... 146s Selecting previously unselected package python3-all. 146s Preparing to unpack .../81-python3-all_3.13.9-3_amd64.deb ... 146s Unpacking python3-all (3.13.9-3) ... 146s Selecting previously unselected package python3.13-dev. 146s Preparing to unpack .../82-python3.13-dev_3.13.11-1_amd64.deb ... 146s Unpacking python3.13-dev (3.13.11-1) ... 146s Selecting previously unselected package python3-dev. 146s Preparing to unpack .../83-python3-dev_3.13.9-3_amd64.deb ... 146s Unpacking python3-dev (3.13.9-3) ... 146s Selecting previously unselected package python3.14-dev. 146s Preparing to unpack .../84-python3.14-dev_3.14.2-1_amd64.deb ... 146s Unpacking python3.14-dev (3.14.2-1) ... 146s Selecting previously unselected package python3-all-dev. 146s Preparing to unpack .../85-python3-all-dev_3.13.9-3_amd64.deb ... 146s Unpacking python3-all-dev (3.13.9-3) ... 146s Selecting previously unselected package python3-mako. 146s Preparing to unpack .../86-python3-mako_1.3.10-3build1_all.deb ... 146s Unpacking python3-mako (1.3.10-3build1) ... 146s Selecting previously unselected package python3-platformdirs. 146s Preparing to unpack .../87-python3-platformdirs_4.5.1-1_all.deb ... 146s Unpacking python3-platformdirs (4.5.1-1) ... 146s Selecting previously unselected package python3-decorator. 146s Preparing to unpack .../88-python3-decorator_5.2.1-2_all.deb ... 146s Unpacking python3-decorator (5.2.1-2) ... 146s Selecting previously unselected package python3-pytools. 146s Preparing to unpack .../89-python3-pytools_2025.1.2-1_all.deb ... 146s Unpacking python3-pytools (2025.1.2-1) ... 146s Selecting previously unselected package python3-compyle. 146s Preparing to unpack .../90-python3-compyle_0.8.1-11_all.deb ... 146s Unpacking python3-compyle (0.8.1-11) ... 146s Selecting previously unselected package python3-iniconfig. 146s Preparing to unpack .../91-python3-iniconfig_2.1.0-2_all.deb ... 146s Unpacking python3-iniconfig (2.1.0-2) ... 146s Selecting previously unselected package python3-pluggy. 146s Preparing to unpack .../92-python3-pluggy_1.6.0-2_all.deb ... 146s Unpacking python3-pluggy (1.6.0-2) ... 146s Selecting previously unselected package ocl-icd-libopencl1:amd64. 146s Preparing to unpack .../93-ocl-icd-libopencl1_2.3.4-1_amd64.deb ... 146s Unpacking ocl-icd-libopencl1:amd64 (2.3.4-1) ... 146s Selecting previously unselected package pocl-opencl-icd:amd64. 146s Preparing to unpack .../94-pocl-opencl-icd_6.0-7_amd64.deb ... 146s Unpacking pocl-opencl-icd:amd64 (6.0-7) ... 146s Selecting previously unselected package python3-pyopencl. 146s Preparing to unpack .../95-python3-pyopencl_2025.1-2_amd64.deb ... 146s Unpacking python3-pyopencl (2025.1-2) ... 146s Selecting previously unselected package python3-pytest. 146s Preparing to unpack .../96-python3-pytest_9.0.2-2_all.deb ... 146s Unpacking python3-pytest (9.0.2-2) ... 146s Setting up dh-python (7.20260125) ... 146s Setting up python3-iniconfig (2.1.0-2) ... 146s Setting up libarchive-zip-perl (1.68-1) ... 146s Setting up libdebhelper-perl (13.28ubuntu1) ... 146s Setting up libpython3.14-minimal:amd64 (3.14.2-1) ... 146s Setting up linux-libc-dev:amd64 (6.18.0-9.9) ... 146s Setting up m4 (1.4.20-2) ... 146s Setting up libgomp1:amd64 (15.2.0-12ubuntu1) ... 146s Setting up python3-platformdirs (4.5.1-1) ... 146s Setting up python3-decorator (5.2.1-2) ... 146s Setting up autotools-dev (20240727.1build1) ... 146s Setting up libblas3:amd64 (3.12.1-7ubuntu1) ... 146s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode 146s Setting up rpcsvc-proto (1.4.3-1build1) ... 146s Setting up libpocl2-common (6.0-7) ... 146s Setting up libquadmath0:amd64 (15.2.0-12ubuntu1) ... 146s Setting up libhwloc15:amd64 (2.12.2-1build1) ... 146s Setting up libmpc3:amd64 (1.3.1-2) ... 146s Setting up python3-numpy-dev:amd64 (1:2.3.5+ds-3) ... 146s Setting up cython3 (3.1.6+dfsg-1ubuntu1) ... 147s Setting up autopoint (0.23.2-1) ... 147s Setting up libclang-common-18-dev:amd64 (1:18.1.8-20ubuntu5) ... 147s Setting up libgc1:amd64 (1:8.2.10-1) ... 147s Setting up libgfortran5:amd64 (15.2.0-12ubuntu1) ... 147s Setting up autoconf (2.72-3.1ubuntu1) ... 147s Setting up python3-pluggy (1.6.0-2) ... 147s Setting up libubsan1:amd64 (15.2.0-12ubuntu1) ... 147s Setting up dwz (0.16-2build1) ... 147s Setting up ocl-icd-libopencl1:amd64 (2.3.4-1) ... 147s Setting up libhwasan0:amd64 (15.2.0-12ubuntu1) ... 147s Setting up libcrypt-dev:amd64 (1:4.5.1-1) ... 147s Setting up libasan8:amd64 (15.2.0-12ubuntu1) ... 147s Setting up debugedit (1:5.2-3build1) ... 148s Setting up libtsan2:amd64 (15.2.0-12ubuntu1) ... 148s Setting up libisl23:amd64 (0.27-1build1) ... 148s Setting up libc-dev-bin (2.42-2ubuntu4) ... 148s Setting up python3.14-minimal (3.14.2-1) ... 148s Setting up libcc1-0:amd64 (15.2.0-12ubuntu1) ... 148s Setting up liblsan0:amd64 (15.2.0-12ubuntu1) ... 148s Setting up libitm1:amd64 (15.2.0-12ubuntu1) ... 148s Setting up python3-mako (1.3.10-3build1) ... 148s Setting up libllvm18:amd64 (1:18.1.8-20ubuntu5) ... 148s Setting up automake (1:1.18.1-3build1) ... 148s update-alternatives: using /usr/bin/automake-1.18 to provide /usr/bin/automake (automake) in auto mode 148s Setting up libfile-stripnondeterminism-perl (1.15.0-1build1) ... 148s Setting up libclang1-18 (1:18.1.8-20ubuntu5) ... 148s Setting up liblapack3:amd64 (3.12.1-7ubuntu1) ... 148s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode 148s Setting up gettext (0.23.2-1) ... 148s Setting up libgcc-15-dev:amd64 (15.2.0-12ubuntu1) ... 148s Setting up libpython3.14-stdlib:amd64 (3.14.2-1) ... 148s Setting up python3-pytest (9.0.2-2) ... 149s Setting up libobjc4:amd64 (15.2.0-12ubuntu1) ... 149s Setting up cpp-15-x86-64-linux-gnu (15.2.0-12ubuntu1) ... 149s Setting up intltool-debian (0.35.0+20060710.6build1) ... 149s Setting up gcc-15-x86-64-linux-gnu (15.2.0-12ubuntu1) ... 149s Setting up python3-numpy (1:2.3.5+ds-3) ... 151s Setting up llvm-18-linker-tools (1:18.1.8-20ubuntu5) ... 151s Setting up dh-strip-nondeterminism (1.15.0-1build1) ... 151s Setting up cpp-15 (15.2.0-12ubuntu1) ... 151s Setting up libpython3.14:amd64 (3.14.2-1) ... 151s Setting up libc6-dev:amd64 (2.42-2ubuntu4) ... 151s Setting up libllvmspirvlib18.1:amd64 (18.1.19-1) ... 151s Setting up python3.14 (3.14.2-1) ... 151s Setting up libobjc-15-dev:amd64 (15.2.0-12ubuntu1) ... 151s Setting up libclang-cpp18 (1:18.1.8-20ubuntu5) ... 151s Setting up cpp-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 151s Setting up gcc-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 151s Setting up po-debconf (1.0.22) ... 151s Setting up python3-all (3.13.9-3) ... 151s Setting up gcc-15 (15.2.0-12ubuntu1) ... 151s Setting up libstdc++-15-dev:amd64 (15.2.0-12ubuntu1) ... 151s Setting up libexpat1-dev:amd64 (2.7.4-1) ... 151s Setting up python3-pytools (2025.1.2-1) ... 152s Setting up llvm-spirv-18 (18.1.19-1) ... 152s Setting up zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 152s Setting up cpp (4:15.2.0-4ubuntu1) ... 152s Setting up libpython3.14-dev:amd64 (3.14.2-1) ... 152s Setting up g++-15-x86-64-linux-gnu (15.2.0-12ubuntu1) ... 152s Setting up python3.14-dev (3.14.2-1) ... 152s Setting up libtool (2.5.4-9) ... 152s Setting up python3-compyle (0.8.1-11) ... 152s Setting up clang-18 (1:18.1.8-20ubuntu5) ... 152s Setting up gcc (4:15.2.0-4ubuntu1) ... 152s Setting up dh-autoreconf (21+nmu1) ... 152s Setting up libpython3.13-dev:amd64 (3.13.11-1) ... 152s Setting up g++-x86-64-linux-gnu (4:15.2.0-4ubuntu1) ... 152s Setting up g++-15 (15.2.0-12ubuntu1) ... 152s Setting up libpython3-dev:amd64 (3.13.9-3) ... 152s Setting up libpocl2t64:amd64 (6.0-7) ... 152s Setting up python3.13-dev (3.13.11-1) ... 152s Setting up debhelper (13.28ubuntu1) ... 152s Setting up pocl-opencl-icd:amd64 (6.0-7) ... 152s Setting up libpython3-all-dev:amd64 (3.13.9-3) ... 152s Setting up python3-dev (3.13.9-3) ... 152s Setting up g++ (4:15.2.0-4ubuntu1) ... 152s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 152s Setting up build-essential (12.12ubuntu2) ... 152s Setting up python3-pyopencl (2025.1-2) ... 152s Setting up python3-all-dev (3.13.9-3) ... 152s Setting up pybuild-plugin-autopkgtest (7.20260125) ... 152s Processing triggers for man-db (2.13.1-1) ... 153s Processing triggers for install-info (7.2-5) ... 153s Processing triggers for libc-bin (2.42-2ubuntu4) ... 153s Processing triggers for systemd (259-1ubuntu3) ... 154s autopkgtest [14:16:27]: test pybuild-autopkgtest: pybuild-autopkgtest 154s autopkgtest [14:16:27]: test pybuild-autopkgtest: [----------------------- 154s pybuild-autopkgtest 154s I: pybuild base:384: cd /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/build; python3.14 -m pytest -k "not test_that_multiple_compiles_do_not_occur_for_same_source and not test_const_as_call_arg and not test_const_in_return" --ignore=/tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_cuda.py --ignore=/tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_parallel.py /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests 155s ============================= test session starts ============================== 155s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 155s rootdir: /tmp/autopkgtest.g0jC0I/build.6Ps/src 155s configfile: pyproject.toml 155s plugins: typeguard-4.4.4 155s collected 327 items / 3 deselected / 324 selected 155s 163s ../../build.6Ps/src/compyle/tests/test_array.py ..s..s..s..s..s..s..s.Fs [ 7%] 203s ..sFFs..s..s..sF.sFF.s.sx..s..s..s.Fs.Fs.Fs.Fs..s..s..s..s..s..s..s..s.. [ 29%] 256s s..s..s..s..s..s..s..s..s..s..ss..s......sss......sss...FFFsss..s [ 49%] 256s ../../build.6Ps/src/compyle/tests/test_ast_utils.py ....... [ 51%] 256s ../../build.6Ps/src/compyle/tests/test_capture_stream.py ..... [ 53%] 256s ../../build.6Ps/src/compyle/tests/test_config.py ............ [ 57%] 256s ../../build.6Ps/src/compyle/tests/test_cython_generator.py ......F.F.F.F [ 61%] 256s .... [ 62%] 258s ../../build.6Ps/src/compyle/tests/test_ext_module.py ........ [ 64%] 258s ../../build.6Ps/src/compyle/tests/test_gpu_struct.py s [ 65%] 258s ../../build.6Ps/src/compyle/tests/test_jit.py ........F.F............FF. [ 73%] 258s [ 73%] 259s ../../build.6Ps/src/compyle/tests/test_low_level.py sFsFFF.. [ 75%] 260s ../../build.6Ps/src/compyle/tests/test_profile.py ..... [ 77%] 260s ../../build.6Ps/src/compyle/tests/test_template.py FFFF. [ 78%] 260s ../../build.6Ps/src/compyle/tests/test_translator.py FFFFFFFF.FFF.F...FF [ 84%] 261s FF..FFFFFFFFFF...FFFFF...FF...FF...F [ 95%] 261s ../../build.6Ps/src/compyle/tests/test_transpiler.py ... [ 96%] 261s ../../build.6Ps/src/compyle/tests/test_types.py ....... [ 98%] 261s ../../build.6Ps/src/compyle/tests/test_utils.py .... [100%] 261s 261s =================================== FAILURES =================================== 261s _____________________________ test_remove[opencl] ______________________________ 261s 261s backend = 'opencl' 261s 261s @check_all_backends 261s def test_remove(backend): 261s check_import(backend) 261s 261s # Given 261s dev_array = Array(np.int32, backend=backend) 261s orig_array = array.arange(0, 16, 1, dtype=np.int32, 261s backend=backend) 261s dev_array.set_data(orig_array) 261s indices = array.arange(0, 8, 1, dtype=np.int32, backend=backend) 261s 261s # When 261s > dev_array.remove(indices) 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:157: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:1154: in remove 261s fill_if_remove_knl(indices, if_remove) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:29: in wrapper 261s setattr(f, 'cached_kernel', {key_val: method(*args)}) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:347: in _generate_kernel 261s return self._generate(declarations=declarations) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/parallel.py:474: in _generate 261s all_source = knl.get_kernel(False)[0].program.source 261s ^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:758: in wrapper 261s result = function(obj, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:244: in get_kernel 261s knl, arg_descrs = get_elwise_kernel_and_types( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:169: in get_elwise_kernel_and_types 261s prg = get_elwise_program( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:116: in get_elwise_program 261s return cl.Program(context, source).build(options) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:518: in build 261s self._build_and_catch_errors( 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s build_func = . at 0x71f3a49f4eb0> 261s options_bytes = b'-I /usr/lib/python3/dist-packages/pyopencl/cl', source = None 261s 261s def _build_and_catch_errors(self, build_func, options_bytes, source=None): 261s try: 261s return build_func() 261s except RuntimeError as e: 261s msg = str(e) 261s if options_bytes: 261s msg = msg + "\n(options: %s)" % options_bytes.decode("utf-8") 261s 261s if source is not None: 261s from tempfile import NamedTemporaryFile 261s srcfile = NamedTemporaryFile(mode="wt", delete=False, suffix=".cl") 261s try: 261s srcfile.write(source) 261s finally: 261s srcfile.close() 261s 261s msg = msg + "\n(source saved as %s)" % srcfile.name 261s 261s code = e.code 261s routine = e.routine 261s 261s err = RuntimeError( 261s _cl._ErrorRecord( 261s msg=msg, 261s code=code, 261s routine=routine)) 261s 261s # Python 3.2 outputs the whole list of currently active exceptions 261s # This serves to remove one (redundant) level from that nesting. 261s > raise err 261s E pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE 261s E 261s E Build on : 261s E 261s E error: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_JRfBEk.cl:74:29: use of undeclared identifier 'None' 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_JRfBEk.cl:62:9: 'max' macro redefined 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_JRfBEk.cl:62:9: 'max' macro redefined 261s E Device cpu-haswell-AMD EPYC-Rome Processor failed to build the program 261s E 261s E (options: -I /usr/lib/python3/dist-packages/pyopencl/cl) 261s 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:574: RuntimeError 261s ----------------------------- Captured stderr call ----------------------------- 261s 1 warning generated. 261s 2 warnings and 1 error generated. 261s _________________________ test_align_multiple[cython] __________________________ 261s 261s args = ([, ], ) 261s kwargs = {'backend': 'cython'}, key = ('guintp', 'gfloatp', 'cython', False) 261s 261s def wrapper(*args, **kwargs): 261s key = key_func(*args, **kwargs) 261s try: 261s > return func._memoize_dic[key] 261s ^^^^^^^^^^^^^^^^^ 261s E AttributeError: 'function' object has no attribute '_memoize_dic' 261s 261s /usr/lib/python3/dist-packages/pytools/__init__.py:684: AttributeError 261s 261s During handling of the above exception, another exception occurred: 261s 261s backend = 'cython' 261s 261s @check_all_backends 261s def test_align_multiple(backend): 261s check_import(backend) 261s 261s # Given 261s dev_array_a = Array(np.uint32, backend=backend) 261s dev_array_b = Array(np.float32, backend=backend) 261s orig_array_a = array.arange(0, 1024, 1, dtype=np.uint32, backend=backend) 261s orig_array_b = array.arange( 261s 1024, 2048, 1, dtype=np.float32, backend=backend) 261s dev_array_a.set_data(orig_array_a) 261s dev_array_b.set_data(orig_array_b) 261s 261s indices = array.arange(1023, -1, -1, dtype=np.int64, backend=backend) 261s 261s # When 261s > dev_array_a, dev_array_b = array.align([dev_array_a, dev_array_b], 261s indices) 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:196: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:825: in align 261s align_multiple_elwise = get_align_kernel(ary_list, order, backend=backend) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:687: in wrapper 261s result = func(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:806: in get_align_kernel 261s align_multiple_elwise = parallel.Elementwise(align_multiple_knl.function, 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s _________________________ test_align_multiple[opencl] __________________________ 261s 261s args = ([, ], ) 261s kwargs = {'backend': 'opencl'}, key = ('guintp', 'gfloatp', 'opencl', False) 261s 261s def wrapper(*args, **kwargs): 261s key = key_func(*args, **kwargs) 261s try: 261s > return func._memoize_dic[key] 261s ^^^^^^^^^^^^^^^^^ 261s E AttributeError: 'function' object has no attribute '_memoize_dic' 261s 261s /usr/lib/python3/dist-packages/pytools/__init__.py:684: AttributeError 261s 261s During handling of the above exception, another exception occurred: 261s 261s backend = 'opencl' 261s 261s @check_all_backends 261s def test_align_multiple(backend): 261s check_import(backend) 261s 261s # Given 261s dev_array_a = Array(np.uint32, backend=backend) 261s dev_array_b = Array(np.float32, backend=backend) 261s orig_array_a = array.arange(0, 1024, 1, dtype=np.uint32, backend=backend) 261s orig_array_b = array.arange( 261s 1024, 2048, 1, dtype=np.float32, backend=backend) 261s dev_array_a.set_data(orig_array_a) 261s dev_array_b.set_data(orig_array_b) 261s 261s indices = array.arange(1023, -1, -1, dtype=np.int64, backend=backend) 261s 261s # When 261s > dev_array_a, dev_array_b = array.align([dev_array_a, dev_array_b], 261s indices) 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:196: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:825: in align 261s align_multiple_elwise = get_align_kernel(ary_list, order, backend=backend) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:687: in wrapper 261s result = func(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:806: in get_align_kernel 261s align_multiple_elwise = parallel.Elementwise(align_multiple_knl.function, 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s __________________________ test_sort_by_keys[cython] ___________________________ 261s 261s args = ([, ], ) 261s kwargs = {'backend': 'cython'}, key = ('gintp', 'gintp', 'cython', False) 261s 261s def wrapper(*args, **kwargs): 261s key = key_func(*args, **kwargs) 261s try: 261s > return func._memoize_dic[key] 261s ^^^^^^^^^^^^^^^^^ 261s E AttributeError: 'function' object has no attribute '_memoize_dic' 261s 261s /usr/lib/python3/dist-packages/pytools/__init__.py:684: AttributeError 261s 261s During handling of the above exception, another exception occurred: 261s 261s backend = 'cython' 261s 261s @check_all_backends 261s def test_sort_by_keys(backend): 261s check_import(backend) 261s 261s # Given 261s pre_nparr1 = np.random.randint(0, 100, 16, dtype=np.int32) 261s pre_nparr2 = np.random.randint(0, 100, 16, dtype=np.int32) 261s 261s ## drop non unique values 261s nparr1, indices = np.unique(pre_nparr1, return_index=True) 261s nparr2 = pre_nparr2[indices] 261s 261s dev_array1, dev_array2 = array.wrap(nparr1, nparr2, backend=backend) 261s 261s # When 261s > out_array1, out_array2 = array.sort_by_keys([dev_array1, dev_array2]) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:271: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:626: in sort_by_keys 261s out_list = align(ary_list, order, out_list=out_list, 261s ../../build.6Ps/src/compyle/array.py:825: in align 261s align_multiple_elwise = get_align_kernel(ary_list, order, backend=backend) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:687: in wrapper 261s result = func(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:806: in get_align_kernel 261s align_multiple_elwise = parallel.Elementwise(align_multiple_knl.function, 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ___________________________ test_radix_sort_by_keys ____________________________ 261s 261s def test_radix_sort_by_keys(): 261s backend = 'cython' 261s for use_openmp in [True, False]: 261s get_config().use_openmp = use_openmp 261s # Given 261s pre_nparr1 = np.random.randint(0, 100, 16, dtype=np.int32) 261s pre_nparr2 = np.random.randint(0, 100, 16, dtype=np.int32) 261s 261s ## drop non unique values 261s nparr1, indices = np.unique(pre_nparr1, return_index=True) 261s nparr2 = pre_nparr2[indices] 261s 261s dev_array1, dev_array2 = array.wrap(nparr1, nparr2, backend=backend) 261s 261s # When 261s > out_array1, out_array2 = array.sort_by_keys([dev_array1, dev_array2], 261s use_radix_sort=True) 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:296: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:621: in sort_by_keys 261s out_list, order = radix_sort(ary_list, out_list=out_list, 261s ../../build.6Ps/src/compyle/sort.py:66: in radix_sort 261s sort_bit_knl = Scan(input_sort_bit, output_sort_bit.function, 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ____________________ test_sort_by_keys_with_output[cython] _____________________ 261s 261s args = ([, ], ) 261s kwargs = {'backend': 'cython'}, key = ('gintp', 'gintp', 'cython', True) 261s 261s def wrapper(*args, **kwargs): 261s key = key_func(*args, **kwargs) 261s try: 261s > return func._memoize_dic[key] 261s ^^^^^^^^^^^^^^^^^ 261s E AttributeError: 'function' object has no attribute '_memoize_dic' 261s 261s /usr/lib/python3/dist-packages/pytools/__init__.py:684: AttributeError 261s 261s During handling of the above exception, another exception occurred: 261s 261s backend = 'cython' 261s 261s @pytest.mark.parametrize( 261s 'backend', ['cython', 'opencl', 261s pytest.param('cuda', marks=pytest.mark.xfail)]) 261s def test_sort_by_keys_with_output(backend): 261s check_import(backend) 261s 261s # Given 261s pre_nparr1 = np.random.randint(0, 100, 16, dtype=np.int32) 261s pre_nparr2 = np.random.randint(0, 100, 16, dtype=np.int32) 261s 261s ## drop non unique values 261s nparr1, indices = np.unique(pre_nparr1, return_index=True) 261s nparr2 = pre_nparr2[indices] 261s 261s dev_array1, dev_array2 = array.wrap(nparr1, nparr2, backend=backend) 261s out_arrays = [ 261s array.zeros_like(dev_array1), 261s array.zeros_like(dev_array2)] 261s 261s # When 261s > array.sort_by_keys([dev_array1, dev_array2], 261s out_list=out_arrays, use_radix_sort=False) 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:330: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:626: in sort_by_keys 261s out_list = align(ary_list, order, out_list=out_list, 261s ../../build.6Ps/src/compyle/array.py:825: in align 261s align_multiple_elwise = get_align_kernel(ary_list, order, backend=backend) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:687: in wrapper 261s result = func(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:806: in get_align_kernel 261s align_multiple_elwise = parallel.Elementwise(align_multiple_knl.function, 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ___________________________ test_diff[int32-opencl] ____________________________ 261s 261s backend = 'opencl', dtype = 261s 261s @check_all_backends 261s @check_all_dtypes 261s def test_diff(backend, dtype): 261s check_import(backend) 261s if dtype == np.float64: 261s get_config().use_double = True 261s dev_array = array.ones(1, dtype=dtype, backend=backend) 261s with pytest.raises(ValueError): 261s y = array.diff(dev_array, 1) 261s y = array.diff(dev_array, 0) 261s assert(y[0] == dev_array[0]) 261s 261s dev_array = array.ones(2, dtype=dtype, backend=backend) 261s with pytest.raises(ValueError): 261s y = array.diff(dev_array, -1) 261s > y = array.diff(dev_array, 1) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:434: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:449: in diff 261s e(y, a, binom_coeff, len(binom_coeff)) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:29: in wrapper 261s setattr(f, 'cached_kernel', {key_val: method(*args)}) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:345: in _generate_kernel 261s declarations = helper.annotate() 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None), Constant(value=1, kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s __________________________ test_diff[float32-opencl] ___________________________ 261s 261s backend = 'opencl', dtype = 261s 261s @check_all_backends 261s @check_all_dtypes 261s def test_diff(backend, dtype): 261s check_import(backend) 261s if dtype == np.float64: 261s get_config().use_double = True 261s dev_array = array.ones(1, dtype=dtype, backend=backend) 261s with pytest.raises(ValueError): 261s y = array.diff(dev_array, 1) 261s y = array.diff(dev_array, 0) 261s assert(y[0] == dev_array[0]) 261s 261s dev_array = array.ones(2, dtype=dtype, backend=backend) 261s with pytest.raises(ValueError): 261s y = array.diff(dev_array, -1) 261s > y = array.diff(dev_array, 1) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:434: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:449: in diff 261s e(y, a, binom_coeff, len(binom_coeff)) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:29: in wrapper 261s setattr(f, 'cached_kernel', {key_val: method(*args)}) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:345: in _generate_kernel 261s declarations = helper.annotate() 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None), Constant(value=1, kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s __________________________ test_diff[float64-opencl] ___________________________ 261s 261s backend = 'opencl', dtype = 261s 261s @check_all_backends 261s @check_all_dtypes 261s def test_diff(backend, dtype): 261s check_import(backend) 261s if dtype == np.float64: 261s get_config().use_double = True 261s dev_array = array.ones(1, dtype=dtype, backend=backend) 261s with pytest.raises(ValueError): 261s y = array.diff(dev_array, 1) 261s y = array.diff(dev_array, 0) 261s assert(y[0] == dev_array[0]) 261s 261s dev_array = array.ones(2, dtype=dtype, backend=backend) 261s with pytest.raises(ValueError): 261s y = array.diff(dev_array, -1) 261s > y = array.diff(dev_array, 1) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:434: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:449: in diff 261s e(y, a, binom_coeff, len(binom_coeff)) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:29: in wrapper 261s setattr(f, 'cached_kernel', {key_val: method(*args)}) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:345: in _generate_kernel 261s declarations = helper.annotate() 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None), Constant(value=1, kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s ______________________________ test_trapz[opencl] ______________________________ 261s 261s backend = 'opencl' 261s 261s @check_all_backends 261s def test_trapz(backend): 261s check_import(backend) 261s x = array.linspace(0, 5, 6, dtype=np.float32, backend=backend) 261s y = array.linspace(0, 5, 6, dtype=np.float32, backend=backend) 261s xn = np.linspace(0, 5, 6, dtype=np.float32) 261s yn = np.linspace(0, 5, 6, dtype=np.float32) 261s assert(array.trapz(y) == np.trapz(yn)) 261s > assert(array.trapz(y, x,) == np.trapz(yn, xn)) 261s ^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:453: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:516: in trapz 261s d = diff(x, 1, backend=backend) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/array.py:449: in diff 261s e(y, a, binom_coeff, len(binom_coeff)) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:29: in wrapper 261s setattr(f, 'cached_kernel', {key_val: method(*args)}) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:345: in _generate_kernel 261s declarations = helper.annotate() 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None), Constant(value=1, kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s _________________________ test_take_bool[opencl-int32] _________________________ 261s 261s dtype = , backend = 'opencl' 261s 261s @check_all_dtypes 261s @check_all_backends 261s def test_take_bool(dtype, backend): 261s check_import(backend) 261s if dtype == np.float64: 261s get_config().use_double = True 261s 261s # Given 261s x = array.arange(0, 10, 1, backend=backend, dtype=dtype) 261s cond = x > 5 261s 261s # When 261s > out = array.take_bool(x, cond) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:569: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:771: in take_bool 261s e(condition, ary, cumsum_ar, out_ar) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:31: in wrapper 261s f.cached_kernel[key_val] = method(*args) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:347: in _generate_kernel 261s return self._generate(declarations=declarations) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/parallel.py:474: in _generate 261s all_source = knl.get_kernel(False)[0].program.source 261s ^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:758: in wrapper 261s result = function(obj, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:244: in get_kernel 261s knl, arg_descrs = get_elwise_kernel_and_types( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:169: in get_elwise_kernel_and_types 261s prg = get_elwise_program( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:116: in get_elwise_program 261s return cl.Program(context, source).build(options) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:518: in build 261s self._build_and_catch_errors( 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s build_func = . at 0x71f39d111e80> 261s options_bytes = b'-I /usr/lib/python3/dist-packages/pyopencl/cl', source = None 261s 261s def _build_and_catch_errors(self, build_func, options_bytes, source=None): 261s try: 261s return build_func() 261s except RuntimeError as e: 261s msg = str(e) 261s if options_bytes: 261s msg = msg + "\n(options: %s)" % options_bytes.decode("utf-8") 261s 261s if source is not None: 261s from tempfile import NamedTemporaryFile 261s srcfile = NamedTemporaryFile(mode="wt", delete=False, suffix=".cl") 261s try: 261s srcfile.write(source) 261s finally: 261s srcfile.close() 261s 261s msg = msg + "\n(source saved as %s)" % srcfile.name 261s 261s code = e.code 261s routine = e.routine 261s 261s err = RuntimeError( 261s _cl._ErrorRecord( 261s msg=msg, 261s code=code, 261s routine=routine)) 261s 261s # Python 3.2 outputs the whole list of currently active exceptions 261s # This serves to remove one (redundant) level from that nesting. 261s > raise err 261s E pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE 261s E 261s E Build on : 261s E 261s E error: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_Qs6Wad.cl:75:33: use of undeclared identifier 'None' 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_Qs6Wad.cl:62:9: 'max' macro redefined 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_Qs6Wad.cl:62:9: 'max' macro redefined 261s E Device cpu-haswell-AMD EPYC-Rome Processor failed to build the program 261s E 261s E (options: -I /usr/lib/python3/dist-packages/pyopencl/cl) 261s 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:574: RuntimeError 261s ----------------------------- Captured stderr call ----------------------------- 261s 1 warning generated. 261s 2 warnings generated. 261s 1 warning generated. 261s 1 warning generated. 261s 2 warnings generated. 261s 1 warning generated. 261s 2 warnings generated. 261s 1 warning generated. 261s 2 warnings and 1 error generated. 261s ------------------------------ Captured log call ------------------------------- 261s DEBUG pyopencl.scan:scan.py:1198 cache miss for generated scan kernel 'scan' 261s ________________________ test_take_bool[opencl-float32] ________________________ 261s 261s dtype = , backend = 'opencl' 261s 261s @check_all_dtypes 261s @check_all_backends 261s def test_take_bool(dtype, backend): 261s check_import(backend) 261s if dtype == np.float64: 261s get_config().use_double = True 261s 261s # Given 261s x = array.arange(0, 10, 1, backend=backend, dtype=dtype) 261s cond = x > 5 261s 261s # When 261s > out = array.take_bool(x, cond) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:569: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:771: in take_bool 261s e(condition, ary, cumsum_ar, out_ar) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:31: in wrapper 261s f.cached_kernel[key_val] = method(*args) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:347: in _generate_kernel 261s return self._generate(declarations=declarations) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/parallel.py:474: in _generate 261s all_source = knl.get_kernel(False)[0].program.source 261s ^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:758: in wrapper 261s result = function(obj, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:244: in get_kernel 261s knl, arg_descrs = get_elwise_kernel_and_types( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:169: in get_elwise_kernel_and_types 261s prg = get_elwise_program( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:116: in get_elwise_program 261s return cl.Program(context, source).build(options) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:518: in build 261s self._build_and_catch_errors( 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s build_func = . at 0x71f39d23be20> 261s options_bytes = b'-I /usr/lib/python3/dist-packages/pyopencl/cl', source = None 261s 261s def _build_and_catch_errors(self, build_func, options_bytes, source=None): 261s try: 261s return build_func() 261s except RuntimeError as e: 261s msg = str(e) 261s if options_bytes: 261s msg = msg + "\n(options: %s)" % options_bytes.decode("utf-8") 261s 261s if source is not None: 261s from tempfile import NamedTemporaryFile 261s srcfile = NamedTemporaryFile(mode="wt", delete=False, suffix=".cl") 261s try: 261s srcfile.write(source) 261s finally: 261s srcfile.close() 261s 261s msg = msg + "\n(source saved as %s)" % srcfile.name 261s 261s code = e.code 261s routine = e.routine 261s 261s err = RuntimeError( 261s _cl._ErrorRecord( 261s msg=msg, 261s code=code, 261s routine=routine)) 261s 261s # Python 3.2 outputs the whole list of currently active exceptions 261s # This serves to remove one (redundant) level from that nesting. 261s > raise err 261s E pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE 261s E 261s E Build on : 261s E 261s E error: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_zGcG5D.cl:76:33: use of undeclared identifier 'None' 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_zGcG5D.cl:62:9: 'max' macro redefined 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_zGcG5D.cl:62:9: 'max' macro redefined 261s E Device cpu-haswell-AMD EPYC-Rome Processor failed to build the program 261s E 261s E (options: -I /usr/lib/python3/dist-packages/pyopencl/cl) 261s 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:574: RuntimeError 261s ----------------------------- Captured stderr call ----------------------------- 261s 1 warning generated. 261s 2 warnings and 1 error generated. 261s ________________________ test_take_bool[opencl-float64] ________________________ 261s 261s dtype = , backend = 'opencl' 261s 261s @check_all_dtypes 261s @check_all_backends 261s def test_take_bool(dtype, backend): 261s check_import(backend) 261s if dtype == np.float64: 261s get_config().use_double = True 261s 261s # Given 261s x = array.arange(0, 10, 1, backend=backend, dtype=dtype) 261s cond = x > 5 261s 261s # When 261s > out = array.take_bool(x, cond) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_array.py:569: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/array.py:771: in take_bool 261s e(condition, ary, cumsum_ar, out_ar) 261s ../../build.6Ps/src/compyle/parallel.py:573: in __call__ 261s self.elementwise(*args, **kwargs) 261s ../../build.6Ps/src/compyle/profile.py:72: in wrapper 261s return method(*args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:359: in __call__ 261s c_func = self._generate_kernel(*args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:31: in wrapper 261s f.cached_kernel[key_val] = method(*args) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:347: in _generate_kernel 261s return self._generate(declarations=declarations) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/parallel.py:474: in _generate 261s all_source = knl.get_kernel(False)[0].program.source 261s ^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pytools/__init__.py:758: in wrapper 261s result = function(obj, *args, **kwargs) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:244: in get_kernel 261s knl, arg_descrs = get_elwise_kernel_and_types( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:169: in get_elwise_kernel_and_types 261s prg = get_elwise_program( 261s /usr/lib/python3/dist-packages/pyopencl/elementwise.py:116: in get_elwise_program 261s return cl.Program(context, source).build(options) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:518: in build 261s self._build_and_catch_errors( 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s build_func = . at 0x71f395151640> 261s options_bytes = b'-I /usr/lib/python3/dist-packages/pyopencl/cl', source = None 261s 261s def _build_and_catch_errors(self, build_func, options_bytes, source=None): 261s try: 261s return build_func() 261s except RuntimeError as e: 261s msg = str(e) 261s if options_bytes: 261s msg = msg + "\n(options: %s)" % options_bytes.decode("utf-8") 261s 261s if source is not None: 261s from tempfile import NamedTemporaryFile 261s srcfile = NamedTemporaryFile(mode="wt", delete=False, suffix=".cl") 261s try: 261s srcfile.write(source) 261s finally: 261s srcfile.close() 261s 261s msg = msg + "\n(source saved as %s)" % srcfile.name 261s 261s code = e.code 261s routine = e.routine 261s 261s err = RuntimeError( 261s _cl._ErrorRecord( 261s msg=msg, 261s code=code, 261s routine=routine)) 261s 261s # Python 3.2 outputs the whole list of currently active exceptions 261s # This serves to remove one (redundant) level from that nesting. 261s > raise err 261s E pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE 261s E 261s E Build on : 261s E 261s E error: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_zRHgXu.cl:82:33: use of undeclared identifier 'None' 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_zRHgXu.cl:68:9: 'max' macro redefined 261s E warning: /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/.cache/pocl/kcache/tempfile_zRHgXu.cl:68:9: 'max' macro redefined 261s E Device cpu-haswell-AMD EPYC-Rome Processor failed to build the program 261s E 261s E (options: -I /usr/lib/python3/dist-packages/pyopencl/cl) 261s 261s /usr/lib/python3/dist-packages/pyopencl/__init__.py:574: RuntimeError 261s ----------------------------- Captured stderr call ----------------------------- 261s 1 warning generated. 261s 2 warnings and 1 error generated. 261s ____________ TestCythonCodeGenerator.test_function_with_annotation _____________ 261s 261s self = 261s 261s def test_function_with_annotation(self): 261s # Given 261s cg = CythonGenerator() 261s # When 261s > cg.parse(annotated_f) 261s 261s ../../build.6Ps/src/compyle/tests/test_cython_generator.py:242: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/cython_generator.py:208: in parse 261s self._parse_function(obj, declarations=declarations, 261s ../../build.6Ps/src/compyle/cython_generator.py:505: in _parse_function 261s c_code, py_code = self._get_method_wrapper(obj, indent=' ' * 4, 261s ../../build.6Ps/src/compyle/cython_generator.py:398: in _get_method_wrapper 261s c_body = self._get_method_body(meth, lines, indent=indent, 261s ../../build.6Ps/src/compyle/cython_generator.py:368: in _get_method_body 261s src = [self._process_body_line(line, is_serial=is_serial) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:535: in _process_body_line 261s defn = self._handle_declare_statement(name, declare) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:462: in _handle_declare_statement 261s kind, _address_space, ctype, shape = parse_declare(declare) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s code = 'declare(\'LOCAL_MEM matrix(64, "unsigned int")\')' 261s 261s def parse_declare(code): 261s """Given a string with the source for the declare method, 261s return the type information. 261s """ 261s m = ast.parse(code) 261s call = m.body[0].value 261s if call.func.id != 'declare': 261s raise CodeGenerationError('Unknown declare statement: %s' % code) 261s arg0 = call.args[0] 261s > if not isinstance(arg0, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/cython_generator.py:129: AttributeError 261s _______________ TestCythonCodeGenerator.test_method_with_declare _______________ 261s 261s self = 261s 261s def test_method_with_declare(self): 261s cg = CythonGenerator() 261s > cg.parse(EqWithDeclare()) 261s 261s ../../build.6Ps/src/compyle/tests/test_cython_generator.py:396: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/cython_generator.py:211: in parse 261s self._parse_instance(obj) 261s ../../build.6Ps/src/compyle/cython_generator.py:518: in _parse_instance 261s methods = self._get_methods(cls) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:352: in _get_methods 261s c_code, py_code = self._get_method_wrapper( 261s ../../build.6Ps/src/compyle/cython_generator.py:398: in _get_method_wrapper 261s c_body = self._get_method_body(meth, lines, indent=indent, 261s ../../build.6Ps/src/compyle/cython_generator.py:368: in _get_method_body 261s src = [self._process_body_line(line, is_serial=is_serial) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:535: in _process_body_line 261s defn = self._handle_declare_statement(name, declare) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:462: in _handle_declare_statement 261s kind, _address_space, ctype, shape = parse_declare(declare) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s code = "declare('float', 2)" 261s 261s def parse_declare(code): 261s """Given a string with the source for the declare method, 261s return the type information. 261s """ 261s m = ast.parse(code) 261s call = m.body[0].value 261s if call.func.id != 'declare': 261s raise CodeGenerationError('Unknown declare statement: %s' % code) 261s arg0 = call.args[0] 261s > if not isinstance(arg0, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/cython_generator.py:129: AttributeError 261s _______________ TestCythonCodeGenerator.test_method_with_matrix ________________ 261s 261s self = 261s 261s def test_method_with_matrix(self): 261s cg = CythonGenerator() 261s > cg.parse(EqWithMatrix()) 261s 261s ../../build.6Ps/src/compyle/tests/test_cython_generator.py:379: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/cython_generator.py:211: in parse 261s self._parse_instance(obj) 261s ../../build.6Ps/src/compyle/cython_generator.py:518: in _parse_instance 261s methods = self._get_methods(cls) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:352: in _get_methods 261s c_code, py_code = self._get_method_wrapper( 261s ../../build.6Ps/src/compyle/cython_generator.py:398: in _get_method_wrapper 261s c_body = self._get_method_body(meth, lines, indent=indent, 261s ../../build.6Ps/src/compyle/cython_generator.py:368: in _get_method_body 261s src = [self._process_body_line(line, is_serial=is_serial) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:535: in _process_body_line 261s defn = self._handle_declare_statement(name, declare) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:462: in _handle_declare_statement 261s kind, _address_space, ctype, shape = parse_declare(declare) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s code = "declare('matrix((2,2))')" 261s 261s def parse_declare(code): 261s """Given a string with the source for the declare method, 261s return the type information. 261s """ 261s m = ast.parse(code) 261s call = m.body[0].value 261s if call.func.id != 'declare': 261s raise CodeGenerationError('Unknown declare statement: %s' % code) 261s arg0 = call.args[0] 261s > if not isinstance(arg0, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/cython_generator.py:129: AttributeError 261s _______________ TestCythonCodeGenerator.test_python3_annotation ________________ 261s 261s self = 261s 261s @unittest.skipIf(sys.version_info < (3, 4), reason='Requires Python3.') 261s def test_python3_annotation(self): 261s # Given 261s from .py3_code import py3_f 261s cg = CythonGenerator() 261s 261s # When 261s > cg.parse(py3_f) 261s 261s ../../build.6Ps/src/compyle/tests/test_cython_generator.py:259: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/cython_generator.py:208: in parse 261s self._parse_function(obj, declarations=declarations, 261s ../../build.6Ps/src/compyle/cython_generator.py:505: in _parse_function 261s c_code, py_code = self._get_method_wrapper(obj, indent=' ' * 4, 261s ../../build.6Ps/src/compyle/cython_generator.py:398: in _get_method_wrapper 261s c_body = self._get_method_body(meth, lines, indent=indent, 261s ../../build.6Ps/src/compyle/cython_generator.py:368: in _get_method_body 261s src = [self._process_body_line(line, is_serial=is_serial) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:535: in _process_body_line 261s defn = self._handle_declare_statement(name, declare) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:462: in _handle_declare_statement 261s kind, _address_space, ctype, shape = parse_declare(declare) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s code = "declare('int')" 261s 261s def parse_declare(code): 261s """Given a string with the source for the declare method, 261s return the type information. 261s """ 261s m = ast.parse(code) 261s call = m.body[0].value 261s if call.func.id != 'declare': 261s raise CodeGenerationError('Unknown declare statement: %s' % code) 261s arg0 = call.args[0] 261s > if not isinstance(arg0, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/cython_generator.py:129: AttributeError 261s __________________ TestAnnotationHelper.test_cast_return_type __________________ 261s 261s self = 261s 261s def test_cast_return_type(self): 261s # Given 261s @annotate 261s def f(a): 261s return cast(a, "int") 261s 261s # When 261s types = {'a': 'double'} 261s helper = AnnotationHelper(f, types) 261s > helper.annotate() 261s 261s ../../build.6Ps/src/compyle/tests/test_jit.py:469: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:306: in visit_Return 261s result_type = self.visit(node.value) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:244: in visit_Call 261s return self.visit_cast(node) 261s ^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='cast', ctx=Load()), args=[Name(id='a', ctx=Load()), Constant(value='int', kind=None)], keywords=[]) 261s 261s def visit_cast(self, node): 261s > if not isinstance(node.args[1], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:211: AttributeError 261s _____________ TestAnnotationHelper.test_declare_multiple_variables _____________ 261s 261s self = 261s 261s def test_declare_multiple_variables(self): 261s # Given 261s @annotate 261s def f(x): 261s a, b = declare('int', 2) 261s a = 0 261s b = 1 261s return x + a + b 261s 261s # When 261s types = {'x': 'int'} 261s helper = AnnotationHelper(f, types) 261s > helper.annotate() 261s 261s ../../build.6Ps/src/compyle/tests/test_jit.py:88: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None), Constant(value=2, kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s ________________ TestAnnotationHelper.test_variable_as_call_arg ________________ 261s 261s self = 261s 261s def test_variable_as_call_arg(self): 261s # Given 261s @annotate 261s def f(a, b): 261s x = declare('int') 261s x = a + b 261s return g(x) 261s 261s # When 261s types = {'a': 'int', 'b': 'int'} 261s helper = AnnotationHelper(f, types) 261s > helper.annotate() 261s 261s ../../build.6Ps/src/compyle/tests/test_jit.py:105: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s ____________ TestAnnotationHelper.test_variable_as_call_arg_nonjit _____________ 261s 261s self = 261s 261s def test_variable_as_call_arg_nonjit(self): 261s # Given 261s @annotate 261s def f(a, b): 261s x = declare('int') 261s x = a + b 261s return g_nonjit(x) 261s 261s # When 261s types = {'a': 'int', 'b': 'int'} 261s helper = AnnotationHelper(f, types) 261s > helper.annotate() 261s 261s ../../build.6Ps/src/compyle/tests/test_jit.py:121: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/jit.py:167: in annotate 261s self.visit(code) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:514: in generic_visit 261s self.visit(item) 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:277: in visit_Assign 261s right_type = self.visit(right) 261s ^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/jit.py:242: in visit_Call 261s return self.visit_declare(node) 261s ^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='declare', ctx=Load()), args=[Constant(value='int', kind=None)], keywords=[]) 261s 261s def visit_declare(self, node): 261s > if not isinstance(node.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/jit.py:205: AttributeError 261s _______________ TestKernel.test_kernel_with_local_memory_opencl ________________ 261s 261s self = 261s 261s def test_kernel_with_local_memory_opencl(self): 261s importorskip('pyopencl') 261s 261s # Given 261s @annotate(gdoublep='x, y', xc='ldoublep', a='float') 261s def knl(x, y, xc, a): 261s i, lid = declare('int', 2) 261s lid = LID_0 261s i = GID_0 * LDIM_0 + lid 261s 261s xc[lid] = x[i] 261s 261s local_barrier() 261s 261s y[i] = xc[lid] * a 261s 261s x = np.linspace(0, 1, 1024) 261s y = np.zeros_like(x) 261s xc = LocalMem(1, backend='opencl') 261s 261s x, y = wrap(x, y, backend='opencl') 261s 261s # When 261s > k = Kernel(knl, backend='opencl') 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_low_level.py:87: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/low_level.py:150: in __init__ 261s self._generate() 261s ../../build.6Ps/src/compyle/low_level.py:195: in _generate 261s self.tp.add(self.func) 261s ../../build.6Ps/src/compyle/transpiler.py:278: in add 261s code = self._cgen.parse( 261s ../../build.6Ps/src/compyle/translator.py:281: in parse 261s code = self.parse_function(obj, declarations=declarations) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:307: in parse_function 261s code = self.convert(src) 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:584: in visit_FunctionDef 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ../../build.6Ps/src/compyle/translator.py:584: in 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Tuple(elts=[Name(id='i', ctx=Store(...)), Name(id='lid', ctx=Store(...))], ctx=Store())], value=Call(f...ctx=Load(...)), args=[Constant(value='int', kind=None), Constant(value=2, kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s _____________________ TestKernel.test_simple_kernel_opencl _____________________ 261s 261s self = 261s 261s def test_simple_kernel_opencl(self): 261s importorskip('pyopencl') 261s 261s # Given 261s @annotate(gdoublep='x, y', a='float', size='int') 261s def knl(x, y, a, size): 261s i = declare('int') 261s i = GID_0*LDIM_0 + LID_0 261s if i < size: 261s y[i] = x[i]*a 261s 261s x = np.linspace(0, 1, 1000) 261s y = np.zeros_like(x) 261s x, y = wrap(x, y, backend='opencl') 261s 261s # When 261s > k = Kernel(knl, backend='opencl') 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_low_level.py:32: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/low_level.py:150: in __init__ 261s self._generate() 261s ../../build.6Ps/src/compyle/low_level.py:195: in _generate 261s self.tp.add(self.func) 261s ../../build.6Ps/src/compyle/transpiler.py:278: in add 261s code = self._cgen.parse( 261s ../../build.6Ps/src/compyle/translator.py:281: in parse 261s code = self.parse_function(obj, declarations=declarations) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:307: in parse_function 261s code = self.convert(src) 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:584: in visit_FunctionDef 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ../../build.6Ps/src/compyle/translator.py:584: in 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='i', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s ___________ TestCython.test_cython_code_with_return_and_nested_call ____________ 261s 261s self = 261s 261s def test_cython_code_with_return_and_nested_call(self): 261s # Given 261s n = 1000 261s x = np.linspace(0, 1, n) 261s y = x.copy() 261s a = 2.0 261s 261s # When 261s > cy = Cython(knl) 261s ^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_low_level.py:167: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/low_level.py:360: in __init__ 261s self._generate() 261s ../../build.6Ps/src/compyle/low_level.py:363: in _generate 261s self.tp.add(self.func) 261s ../../build.6Ps/src/compyle/transpiler.py:273: in add 261s self._cgen.parse( 261s ../../build.6Ps/src/compyle/cython_generator.py:208: in parse 261s self._parse_function(obj, declarations=declarations, 261s ../../build.6Ps/src/compyle/cython_generator.py:505: in _parse_function 261s c_code, py_code = self._get_method_wrapper(obj, indent=' ' * 4, 261s ../../build.6Ps/src/compyle/cython_generator.py:398: in _get_method_wrapper 261s c_body = self._get_method_body(meth, lines, indent=indent, 261s ../../build.6Ps/src/compyle/cython_generator.py:368: in _get_method_body 261s src = [self._process_body_line(line, is_serial=is_serial) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:535: in _process_body_line 261s defn = self._handle_declare_statement(name, declare) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:462: in _handle_declare_statement 261s kind, _address_space, ctype, shape = parse_declare(declare) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s code = "declare('int')" 261s 261s def parse_declare(code): 261s """Given a string with the source for the declare method, 261s return the type information. 261s """ 261s m = ast.parse(code) 261s call = m.body[0].value 261s if call.func.id != 'declare': 261s raise CodeGenerationError('Unknown declare statement: %s' % code) 261s arg0 = call.args[0] 261s > if not isinstance(arg0, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/cython_generator.py:129: AttributeError 261s _____________________ TestCython.test_cython_with_externs ______________________ 261s 261s self = 261s 261s def test_cython_with_externs(self): 261s # Given 261s n = 1000 261s x = np.linspace(0, 1, n) 261s y = np.zeros_like(x) 261s a = 2.0 261s 261s # When 261s with use_config(use_openmp=True): 261s > cy = Cython(cy_extern) 261s ^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_low_level.py:182: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/low_level.py:360: in __init__ 261s self._generate() 261s ../../build.6Ps/src/compyle/low_level.py:363: in _generate 261s self.tp.add(self.func) 261s ../../build.6Ps/src/compyle/transpiler.py:273: in add 261s self._cgen.parse( 261s ../../build.6Ps/src/compyle/cython_generator.py:208: in parse 261s self._parse_function(obj, declarations=declarations, 261s ../../build.6Ps/src/compyle/cython_generator.py:505: in _parse_function 261s c_code, py_code = self._get_method_wrapper(obj, indent=' ' * 4, 261s ../../build.6Ps/src/compyle/cython_generator.py:398: in _get_method_wrapper 261s c_body = self._get_method_body(meth, lines, indent=indent, 261s ../../build.6Ps/src/compyle/cython_generator.py:368: in _get_method_body 261s src = [self._process_body_line(line, is_serial=is_serial) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:535: in _process_body_line 261s defn = self._handle_declare_statement(name, declare) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/cython_generator.py:462: in _handle_declare_statement 261s kind, _address_space, ctype, shape = parse_declare(declare) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s code = "declare('int')" 261s 261s def parse_declare(code): 261s """Given a string with the source for the declare method, 261s return the type information. 261s """ 261s m = ast.parse(code) 261s call = m.body[0].value 261s if call.func.id != 'declare': 261s raise CodeGenerationError('Unknown declare statement: %s' % code) 261s arg0 = call.args[0] 261s > if not isinstance(arg0, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/cython_generator.py:129: AttributeError 261s _____________________________ test_simple_template _____________________________ 261s 261s def test_simple_template(): 261s # Given 261s t = SimpleTemplate(name='simple') 261s 261s # When 261s > simple = t.function 261s ^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_template.py:61: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ______________________ test_that_source_code_is_available ______________________ 261s 261s def test_that_source_code_is_available(): 261s # Given/When 261s > dummy = Dummy('dummy').function 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_template.py:80: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ___________________ test_template_usable_in_code_generation ____________________ 261s 261s def test_template_usable_in_code_generation(): 261s # Given 261s > twice = ParallelExample('twice').function 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_template.py:95: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ________________________ test_template_with_extra_args _________________________ 261s 261s def test_template_with_extra_args(): 261s # Given 261s > extra = ExtraArgs('extra').function 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_template.py:113: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/template.py:24: in function 261s self._function = self._make_function() 261s ^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/template.py:28: in _make_function 261s src, annotations = self._get_code() 261s ^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s 261s def _get_code(self): 261s m = ast.parse(dedent(inspect.getsource(self.template))) 261s argspec = getfullargspec(self.template) 261s args = argspec.args 261s if args[0] == 'self': 261s args = args[1:] 261s extra_args, extra_annotations = self.extra_args() 261s args += extra_args 261s arg_string = ', '.join(args) 261s body = m.body[0].body 261s > template = body[-1].value.s 261s ^^^^^^^^^^^^^^^^ 261s E AttributeError: 'Constant' object has no attribute 's' 261s 261s ../../build.6Ps/src/compyle/template.py:52: AttributeError 261s ______________________ test_simple_assignment_expression _______________________ 261s 261s def test_simple_assignment_expression(): 261s # Given 261s src = dedent(''' 261s b = (2*a + 1)*(-a/1.5)%2 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double a; 261s double b; 261s b = ((((2 * a) + 1) * (-a / 1.5)) % 2); 261s ''') 261s > assert code == expect.strip() 261s E AssertionError: assert 'double a;\nd...ne)) % None);' == 'double a;\nd.../ 1.5)) % 2);' 261s E 261s E double a; 261s E double b; 261s E - b = ((((2 * a) + 1) * (-a / 1.5)) % 2); 261s E ? ^ ^ ^^^ ^ 261s E + b = ((((None * a) + None) * (-a / None)) % None); 261s E ? ^^^^ ^^^^ ^^^^ ^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:35: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double a; 261s double b; 261s b = ((((None * a) + None) * (-a / None)) % None); 261s _____________________ test_multiple_assignment_expressions _____________________ 261s 261s def test_multiple_assignment_expressions(): 261s # Given 261s src = dedent(''' 261s a = 21.5 261s b = (2*a + 1)*(a/1.5)%2 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double a; 261s double b; 261s a = 21.5; 261s b = ((((2 * a) + 1) * (a / 1.5)) % 2); 261s ''') 261s > assert code == expect.strip() 261s E AssertionError: assert 'double a;\nd...ne)) % None);' == 'double a;\nd.../ 1.5)) % 2);' 261s E 261s E double a; 261s E double b; 261s E - a = 21.5; 261s E - b = ((((2 * a) + 1) * (a / 1.5)) % 2); 261s E + a = None; 261s E + b = ((((None * a) + None) * (a / None)) % None); 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:55: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double a; 261s double b; 261s a = None; 261s b = ((((None * a) + None) * (a / None)) % None); 261s ________________________________ test_if_block _________________________________ 261s 261s def test_if_block(): 261s # Given 261s src = dedent(''' 261s a = 21.5 261s if a > 20: 261s b = a - 1 261s elif a < 20: 261s b = a + 1 261s else: 261s b = a 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double a; 261s double b; 261s a = 21.5; 261s if ((a > 20)) { 261s b = (a - 1); 261s } 261s else { 261s if ((a < 20)) { 261s b = (a + 1); 261s } 261s else { 261s b = a; 261s } 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double a;\nd... a;\n }\n}' == 'double a;\nd... a;\n }\n}' 261s E 261s E double a; 261s E double b; 261s E - a = 21.5; 261s E + a = None; 261s E - if ((a > 20)) { 261s E ? ^^... 261s E 261s E ...Full output truncated (21 lines hidden), use '-vv' to show 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:90: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double a; 261s double b; 261s a = None; 261s if ((a > None)) { 261s b = (a - None); 261s } 261s else { 261s if ((a < None)) { 261s b = (a + None); 261s } 261s else { 261s b = a; 261s } 261s } 261s 261s ______________________________ test_conditionals _______________________________ 261s 261s def test_conditionals(): 261s # Given 261s src = dedent(''' 261s if (x > 10 and x < 20) or not (x >= 10 and x <= 20): 261s y 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s double y; 261s if ((((x > 10) && (x < 20)) || !((x >= 10) && (x <= 20)))) { 261s y; 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\nd... {\n y;\n}' == 'double x;\nd... {\n y;\n}' 261s E 261s E double x; 261s E double y; 261s E - if ((((x > 10) && (x < 20)) || !((x >= 10) && (x <= 20)))) { 261s E ? ^^ ^^ ^^ ^^ 261s E + if ((((x > None) && (x < None)) || !((x >= None) && (x <= None)))) { 261s E ? ^^^^ ^^^^ ^^^^ ^^^^ 261s E y; 261s E } 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:111: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s double y; 261s if ((((x > None) && (x < None)) || !((x >= None) && (x <= None)))) { 261s y; 261s } 261s 261s ____________________________ test_ternary_operator _____________________________ 261s 261s def test_ternary_operator(): 261s # Given 261s src = dedent(''' 261s y = 2.0 261s x = 1.0 if y >= 2.0 else 0.0 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s double y; 261s y = 2.0; 261s x = (y >= 2.0) ? 1.0 : 0.0; 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\nd... None : None;' == 'double x;\nd... ? 1.0 : 0.0;' 261s E 261s E double x; 261s E double y; 261s E - y = 2.0; 261s E - x = (y >= 2.0) ? 1.0 : 0.0; 261s E + y = None; 261s E + x = (y >= None) ? None : None; 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:167: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s double y; 261s y = None; 261s x = (y >= None) ? None : None; 261s ____________________________ test_multiple_boolops _____________________________ 261s 261s def test_multiple_boolops(): 261s # Given 261s src = dedent(''' 261s if x % 2 == 0 or x % 2 == 1 or x > 0: 261s pass 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s if ((((x % 2) == 0) || ((x % 2) == 1) || (x > 0))) { 261s ; 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\ni...) {\n ;\n}' == 'double x;\ni...) {\n ;\n}' 261s E 261s E double x; 261s E - if ((((x % 2) == 0) || ((x % 2) == 1) || (x > 0))) { 261s E ? ^ ^ ^ ^ ^ 261s E + if ((((x % None) == None) || ((x % None) == None) || (x > None))) { 261s E ? ^^^^ ^^^^ ^^^^ ^^^^ ^^^^ 261s E ; 261s E } 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:187: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s if ((((x % None) == None) || ((x % None) == None) || (x > None))) { 261s ; 261s } 261s 261s __________________________ test_multiple_bitwise_ops ___________________________ 261s 261s def test_multiple_bitwise_ops(): 261s # Given 261s src = dedent(''' 261s x = 1 << 5 261s y = x >> 2 261s z = (x | y) ^ (x & y) 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s double y; 261s double z; 261s x = (1 << 5); 261s y = (x >> 2); 261s z = ((x | y) ^ (x & y)); 261s ''') 261s 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\nd...) ^ (x & y));' == 'double x;\nd...) ^ (x & y));' 261s E 261s E double x; 261s E double y; 261s E double z; 261s E - x = (1 << 5); 261s E + x = (None << None); 261s E - y = (x >> 2);... 261s E 261s E ...Full output truncated (4 lines hidden), use '-vv' to show 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:211: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s double y; 261s double z; 261s x = (None << None); 261s y = (x >> None); 261s z = ((x | y) ^ (x & y)); 261s __________________________________ test_power __________________________________ 261s 261s def test_power(): 261s # Given 261s src = dedent(''' 261s 1.5*x**2 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s (1.5 * pow(x, 2)); 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\n(...ow(x, None));' == 'double x;\n(...* pow(x, 2));' 261s E 261s E double x; 261s E - (1.5 * pow(x, 2)); 261s E + (None * pow(x, None)); 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:228: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s (None * pow(x, None)); 261s ____________________________ test_calling_function _____________________________ 261s 261s def test_calling_function(): 261s # Given 261s src = dedent(''' 261s sin(23.2 + 1) 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s sin((23.2 + 1)); 261s ''') 261s > assert code == expect.strip() 261s E AssertionError: assert 'sin((None + None));' == 'sin((23.2 + 1));' 261s E 261s E - sin((23.2 + 1)); 261s E + sin((None + None)); 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:256: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s sin((None + None)); 261s _______________________ test_calling_printf_with_string ________________________ 261s 261s def test_calling_printf_with_string(): 261s # Given 261s src = dedent(r''' 261s printf('%s %d %f\n', 'hello', 1, 2.0) 261s ''') 261s 261s # When 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:266: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:438: in visit_Expr 261s return self.visit(node.value) + ';' 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Name(id='printf', ctx=Load()), args=[Constant(value='%s %d %f\n', kind=None), ..., Constant(value=2.0, kind=None)], keywords=[]) 261s 261s def visit_Call(self, node): 261s if isinstance(node.func, ast.Name): 261s if node.func.id == 'address': 261s return '(&%s)' % self.visit(node.args[0]) 261s elif 'atomic' in node.func.id: 261s return self.render_atomic(node.func.id, node.args[0]) 261s elif node.func.id == 'cast': 261s return '(%s) (%s)' % (node.args[1].s, self.visit(node.args[0])) 261s else: 261s return '{func}({args})'.format( 261s func=node.func.id, 261s > args=', '.join(self.visit(x) for x in node.args) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s E TypeError: sequence item 0: expected str instance, NoneType found 261s 261s ../../build.6Ps/src/compyle/translator.py:392: TypeError 261s ________________________________ test_subscript ________________________________ 261s 261s def test_subscript(): 261s # Given 261s src = dedent(''' 261s x[1] 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s x[1]; 261s ''') 261s > assert code == expect.strip() 261s E AssertionError: assert 'double x;\nx[None];' == 'double x;\nx[1];' 261s E 261s E double x; 261s E - x[1]; 261s E + x[None]; 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:289: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s x[None]; 261s _______________________ test_simple_function_with_return _______________________ 261s 261s def test_simple_function_with_return(): 261s # Given 261s src = dedent(''' 261s def f(x=0.0): 261s 'docstring' 261s y = x + 1 261s return y 261s ''') 261s 261s # When 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:329: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:585: in visit_FunctionDef 261s for item in self._remove_docstring(node.body)) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s body = [Expr(value=Constant(value='docstring', kind=None)), Assign(targets=[Name(id='y', ctx=Store())], value=BinOp(left=Name...=Load(...)), op=Add(), right=Constant(value=1, kind=None)), type_comment=None), Return(value=Name(id='y', ctx=Load()))] 261s 261s def _remove_docstring(self, body): 261s if body and isinstance(body[0], ast.Expr) and \ 261s > isinstance(body[0].value, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:228: AttributeError 261s ___________________________ test_annotated_function ____________________________ 261s 261s def test_annotated_function(): 261s # Given/When 261s t = CConverter() 261s > code = t.parse_function(annotated_f) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:411: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:307: in parse_function 261s code = self.convert(src) 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:584: in visit_FunctionDef 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ../../build.6Ps/src/compyle/translator.py:584: in 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='x', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='LOCAL_MEM matrix(64)', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s _____________________________ test_py3_annotations _____________________________ 261s 261s @pytest.mark.skipif(sys.version_info < (3, 4), reason='Requires Python3') 261s def test_py3_annotations(): 261s # Given/When 261s from .py3_code import py3_f 261s t = CConverter() 261s > code = t.parse_function(py3_f) 261s ^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:429: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:307: in parse_function 261s code = self.convert(src) 261s ^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:584: in visit_FunctionDef 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ../../build.6Ps/src/compyle/translator.py:584: in 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='y', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s ______________________ test_calling_method_of_known_type _______________________ 261s 261s def test_calling_method_of_known_type(): 261s # Given 261s src = dedent(''' 261s obj.method(1, 2) 261s obj.meth() 261s ''') 261s known = {'obj': KnownType('SomeClass*', base_type='SomeClass')} 261s 261s # When 261s > code = py2c(src, known_types=known) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:452: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:438: in visit_Expr 261s return self.visit(node.value) + ';' 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Call(func=Attribute(value=Name(id='obj', ctx=Load(...)), attr='method', ctx=Load()), args=[Constant(value=1, kind=None), Constant(value=2, kind=None)], keywords=[]) 261s 261s def visit_Call(self, node): 261s if isinstance(node.func, ast.Name): 261s if node.func.id == 'address': 261s return '(&%s)' % self.visit(node.args[0]) 261s elif 'atomic' in node.func.id: 261s return self.render_atomic(node.func.id, node.args[0]) 261s elif node.func.id == 'cast': 261s return '(%s) (%s)' % (node.args[1].s, self.visit(node.args[0])) 261s else: 261s return '{func}({args})'.format( 261s func=node.func.id, 261s args=', '.join(self.visit(x) for x in node.args) 261s ) 261s elif isinstance(node.func, ast.Attribute): 261s if node.func.value.id in self._known_types: 261s name = node.func.value.id 261s cls = self._known_types[name].base_type 261s args = [name] + [self.visit(x) for x in node.args] 261s return '{func}({args})'.format( 261s func='%s_%s' % (cls, node.func.attr), 261s > args=', '.join(args) 261s ^^^^^^^^^^^^^^^ 261s E TypeError: sequence item 1: expected str instance, NoneType found 261s 261s ../../build.6Ps/src/compyle/translator.py:401: TypeError 261s _________________ test_calling_method_of_known_type_in_method __________________ 261s 261s def test_calling_method_of_known_type_in_method(): 261s # Given 261s src = dedent(''' 261s class Foo(object): 261s def g(self): 261s pass 261s def f(self, obj): 261s obj.method(1, 2) 261s self.g() 261s ''') 261s 261s # When 261s known = {'obj': KnownType('SomeClass*', base_type='SomeClass')} 261s > code = py2c(src, known_types=known) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:475: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:417: in visit_ClassDef 261s code = [self.visit(x) for x in self._remove_docstring(node.body)] 261s ^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:585: in visit_FunctionDef 261s for item in self._remove_docstring(node.body)) 261s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s body = [Expr(value=Call(func=Attribute(value=Name(...), attr='method', ctx=Load(...)), args=[Constant(value=1, kind=None), Co...one)], keywords=[])), Expr(value=Call(func=Attribute(value=Name(...), attr='g', ctx=Load(...)), args=[], keywords=[]))] 261s 261s def _remove_docstring(self, body): 261s if body and isinstance(body[0], ast.Expr) and \ 261s > isinstance(body[0].value, ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:228: AttributeError 261s __________________________________ test_while __________________________________ 261s 261s def test_while(): 261s # Given 261s src = dedent(''' 261s while x < 21: 261s do(x) 261s do1(x) 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s while ((x < 21)) { 261s do(x); 261s do1(x); 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\nw... do1(x);\n}' == 'double x;\nw... do1(x);\n}' 261s E 261s E double x; 261s E - while ((x < 21)) { 261s E ? ^^ 261s E + while ((x < None)) { 261s E ? ^^^^ 261s E do(x); 261s E do1(x); 261s E } 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:568: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s while ((x < None)) { 261s do(x); 261s do1(x); 261s } 261s 261s ________________________ test_bool_true_false_and_none _________________________ 261s 261s def test_bool_true_false_and_none(): 261s # Given 261s src = dedent(''' 261s while True: 261s pass 261s if False: 261s pass 261s if x is None or x is not None: 261s pass 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double x; 261s while (1) { 261s ; 261s } 261s 261s if (0) { 261s ; 261s } 261s 261s if (((x == NULL) || (x != NULL))) { 261s ; 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double x;\nw...) {\n ;\n}' == 'double x;\nw...) {\n ;\n}' 261s E 261s E double x; 261s E - while (1) { 261s E ? ^ 261s E + while (None) { 261s E ? ^^^^ 261s E ;... 261s E 261s E ...Full output truncated (15 lines hidden), use '-vv' to show 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:600: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double x; 261s while (None) { 261s ; 261s } 261s 261s if (None) { 261s ; 261s } 261s 261s if (((x == None) || (x != None))) { 261s ; 261s } 261s 261s ___________________________________ test_for ___________________________________ 261s 261s def test_for(): 261s # Given 261s src = dedent(''' 261s for i in range(5): 261s do(i) 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s for (long i=0; i<5; i+=1) { 261s do(i); 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'long __cpy_s... do(i);\n}' == 'for (long i=... do(i);\n}' 261s E 261s E + long __cpy_stop_0 = None; 261s E - for (long i=0; i<5; i+=1) { 261s E ? ^ 261s E + for (long i=0; i<__cpy_stop_0; i+=1) { 261s E ? ^^^^^^^^^^^^ 261s E do(i); 261s E } 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:619: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s long __cpy_stop_0 = None; 261s for (long i=0; i<__cpy_stop_0; i+=1) { 261s do(i); 261s } 261s 261s ________________________ test_for_with_decreasing_range ________________________ 261s 261s def test_for_with_decreasing_range(): 261s # Given 261s src = dedent(''' 261s for i in range(10, -1, -1): 261s pass 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s for (long i=10; i>-1; i+=-1) { 261s ; 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'long __cpy_s... ;\n }\n}' == 'for (long i=...) {\n ;\n}' 261s E 261s E - for (long i=10; i>-1; i+=-1) { 261s E + long __cpy_stop_0 = -None; 261s E + long __cpy_step_0 = -None; 261s E + if (__cpy_step_0 < 0) { 261s E + for (long i=None; i>__cpy_stop_0; i+=__cpy_step_0) { 261s E - ;... 261s E 261s E ...Full output truncated (9 lines hidden), use '-vv' to show 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:672: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s long __cpy_stop_0 = -None; 261s long __cpy_step_0 = -None; 261s if (__cpy_step_0 < 0) { 261s for (long i=None; i>__cpy_stop_0; i+=__cpy_step_0) { 261s ; 261s } 261s } 261s else { 261s for (long i=None; i<__cpy_stop_0; i+=__cpy_step_0) { 261s ; 261s } 261s } 261s 261s ____________________________ test_for_with_declare _____________________________ 261s 261s def test_for_with_declare(): 261s # Given 261s src = dedent(''' 261s i = declare('int') 261s for i in range(5): 261s do(i) 261s ''') 261s 261s # When 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:684: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='i', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s ________________________________ test_two_fors _________________________________ 261s 261s def test_two_fors(): 261s # Given 261s src = dedent(''' 261s for i in range(5): 261s do(i) 261s for i in range(5): 261s pass 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s for (long i=0; i<5; i+=1) { 261s do(i); 261s } 261s 261s for (long i=0; i<5; i+=1) { 261s ; 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'long __cpy_s...) {\n ;\n}' == 'for (long i=...) {\n ;\n}' 261s E 261s E + long __cpy_stop_0 = None; 261s E - for (long i=0; i<5; i+=1) { 261s E ? ^ 261s E + for (long i=0; i<__cpy_stop_0; i+=1) { 261s E ? ^^^^^^^^^^^^ 261s E do(i);... 261s E 261s E ...Full output truncated (9 lines hidden), use '-vv' to show 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:718: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s long __cpy_stop_0 = None; 261s for (long i=0; i<__cpy_stop_0; i+=1) { 261s do(i); 261s } 261s 261s long __cpy_stop_1 = None; 261s for (long i=0; i<__cpy_stop_1; i+=1) { 261s ; 261s } 261s 261s ____________________________ test_for_with_symbols _____________________________ 261s 261s def test_for_with_symbols(): 261s # Given 261s src = dedent(''' 261s n = declare('int') 261s n = 25 261s for i in range(n): 261s pass 261s for i in range(0, n+1, step()): 261s pass 261s ''') 261s 261s # When 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:733: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='n', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s _________________________ test_nested_for_with_symbols _________________________ 261s 261s def test_nested_for_with_symbols(): 261s # Given 261s src = dedent(''' 261s n = declare('int') 261s n = 25 261s for i in range(n): 261s for j in range(0, n+1, step()): 261s pass 261s for i in range(n+1): 261s for j in range(0, n+2, step()): 261s pass 261s ''') 261s 261s # When 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:774: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='n', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s ___________________________ test_with_two_functions ____________________________ 261s 261s def test_with_two_functions(): 261s # Given 261s src = dedent(''' 261s def f(): 261s n = declare('int') 261s n = 20 261s for i in range(n): 261s pass 261s for i in range(n): 261s pass 261s def g(): 261s n = declare('int') 261s n = 20 261s for i in range(n): 261s pass 261s for i in range(n): 261s pass 261s ''') 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:833: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:584: in visit_FunctionDef 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ../../build.6Ps/src/compyle/translator.py:584: in 261s body = '\n'.join(self._indent_block(self.visit(item)) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='n', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 261s E AttributeError: module 'ast' has no attribute 'Str' 261s 261s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 261s _________________________ test_for_with_break_continue _________________________ 261s 261s def test_for_with_break_continue(): 261s # Given 261s src = dedent(''' 261s for i in range(10): 261s if i%7 == 0: 261s break 261s if i%2 == 0: 261s continue 261s do(i) 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s for (long i=0; i<10; i+=1) { 261s if (((i % 7) == 0)) { 261s break; 261s } 261s if (((i % 2) == 0)) { 261s continue; 261s } 261s do(i); 261s } 261s ''') 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'long __cpy_s... do(i);\n}' == 'for (long i=... do(i);\n}' 261s E 261s E + long __cpy_stop_0 = None; 261s E - for (long i=0; i<10; i+=1) { 261s E ? ^ 261s E + for (long i=0; i<__cpy_stop_0; i+=1) { 261s E ? ^^^^^^^^^^^ 261s E - if (((i % 7) == 0)) {... 261s E 261s E ...Full output truncated (13 lines hidden), use '-vv' to show 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:895: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s long __cpy_stop_0 = None; 261s for (long i=0; i<__cpy_stop_0; i+=1) { 261s if (((i % None) == None)) { 261s break; 261s } 261s if (((i % None) == None)) { 261s continue; 261s } 261s do(i); 261s } 261s 261s ____________________________ test_attribute_access _____________________________ 261s 261s def test_attribute_access(): 261s # Given 261s src = dedent(''' 261s self.x = 1 261s ''') 261s 261s # When 261s code = py2c(src) 261s 261s # Then 261s expect = dedent(''' 261s double self; 261s self->x = 1; 261s ''') 261s 261s > assert code.strip() == expect.strip() 261s E AssertionError: assert 'double self;...lf->x = None;' == 'double self;\nself->x = 1;' 261s E 261s E double self; 261s E - self->x = 1; 261s E ? ^ 261s E + self->x = None; 261s E ? ^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:975: AssertionError 261s ----------------------------- Captured stdout call ----------------------------- 261s double self; 261s self->x = None; 261s _____________________ test_declare_call_declares_variable ______________________ 261s 261s def test_declare_call_declares_variable(): 261s # Given 261s src = dedent(''' 261s x = declare('int') 261s x += 1 261s ''') 261s 261s # When 261s > code = py2c(src) 261s ^^^^^^^^^ 261s 261s ../../build.6Ps/src/compyle/tests/test_translator.py:986: 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s ../../build.6Ps/src/compyle/translator.py:65: in py2c 261s result = converter.convert(src) 261s ^^^^^^^^^^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:252: in convert 261s result = self.visit(code) 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 261s return '\n'.join( 261s ../../build.6Ps/src/compyle/translator.py:653: in 261s self.visit(item) for item in node.body 261s ^^^^^^^^^^^^^^^^ 261s /usr/lib/python3.14/ast.py:506: in visit 261s return visitor(node) 261s ^^^^^^^^^^^^^ 261s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 261s 261s self = 261s node = Assign(targets=[Name(id='x', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='int', kind=None)], keywords=[]), type_comment=None) 261s 261s def visit_Assign(self, node): 261s if len(node.targets) != 1: 261s self.error("Assignments can have only one target.", node) 261s left, right = node.targets[0], node.value 261s if isinstance(right, ast.Call) and \ 261s isinstance(right.func, ast.Name) and right.func.id == 'declare': 261s > if not isinstance(right.args[0], ast.Str): 261s ^^^^^^^ 262s E AttributeError: module 'ast' has no attribute 'Str' 262s 262s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 262s _____________________________ test_declare_matrix ______________________________ 262s 262s def test_declare_matrix(): 262s # Given 262s src = dedent(''' 262s x = declare('matrix((3,))') 262s do(x[0]) 262s ''') 262s 262s # When 262s > code = py2c(src) 262s ^^^^^^^^^ 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1004: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s ../../build.6Ps/src/compyle/translator.py:65: in py2c 262s result = converter.convert(src) 262s ^^^^^^^^^^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:252: in convert 262s result = self.visit(code) 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 262s return '\n'.join( 262s ../../build.6Ps/src/compyle/translator.py:653: in 262s self.visit(item) for item in node.body 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s node = Assign(targets=[Name(id='x', ctx=Store())], value=Call(func=Name(id='declare', ctx=Load(...)), args=[Constant(value='matrix((3,))', kind=None)], keywords=[]), type_comment=None) 262s 262s def visit_Assign(self, node): 262s if len(node.targets) != 1: 262s self.error("Assignments can have only one target.", node) 262s left, right = node.targets[0], node.value 262s if isinstance(right, ast.Call) and \ 262s isinstance(right.func, ast.Name) and right.func.id == 'declare': 262s > if not isinstance(right.args[0], ast.Str): 262s ^^^^^^^ 262s E AttributeError: module 'ast' has no attribute 'Str' 262s 262s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 262s ________________ test_declare_call_declares_multiple_variables _________________ 262s 262s def test_declare_call_declares_multiple_variables(): 262s # Given 262s src = dedent(''' 262s x, y = declare('int', 2) 262s u, v = declare('matrix(3)', 2) 262s A = declare('matrix((2,2), "long")') 262s ''') 262s 262s # When 262s > code = py2c(src) 262s ^^^^^^^^^ 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1055: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s ../../build.6Ps/src/compyle/translator.py:65: in py2c 262s result = converter.convert(src) 262s ^^^^^^^^^^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:252: in convert 262s result = self.visit(code) 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 262s return '\n'.join( 262s ../../build.6Ps/src/compyle/translator.py:653: in 262s self.visit(item) for item in node.body 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s node = Assign(targets=[Tuple(elts=[Name(id='x', ctx=Store(...)), Name(id='y', ctx=Store(...))], ctx=Store())], value=Call(fun...ctx=Load(...)), args=[Constant(value='int', kind=None), Constant(value=2, kind=None)], keywords=[]), type_comment=None) 262s 262s def visit_Assign(self, node): 262s if len(node.targets) != 1: 262s self.error("Assignments can have only one target.", node) 262s left, right = node.targets[0], node.value 262s if isinstance(right, ast.Call) and \ 262s isinstance(right.func, ast.Name) and right.func.id == 'declare': 262s > if not isinstance(right.args[0], ast.Str): 262s ^^^^^^^ 262s E AttributeError: module 'ast' has no attribute 'Str' 262s 262s ../../build.6Ps/src/compyle/translator.py:344: AttributeError 262s __________________________________ test_class __________________________________ 262s 262s def test_class(): 262s # Given 262s src = dedent(''' 262s class Foo(object): 262s def g(self, x=0.0): 262s return x*2.0 262s def f(self, x=0.0): 262s y = x + 1 262s do(self.a, x) 262s z = self.g(y) 262s ''') 262s 262s # When 262s code = py2c(src) 262s 262s # Then 262s expect = dedent(''' 262s double Foo_g(Foo* self, double x) 262s { 262s return (x * 2.0); 262s } 262s 262s void Foo_f(Foo* self, double x) 262s { 262s double y; 262s double z; 262s y = (x + 1); 262s do(self->a, x); 262s z = Foo_g(self, y); 262s } 262s ''') 262s > assert code.strip() == expect.strip() 262s E AssertionError: assert 'double Foo_g...(self, y);\n}' == 'double Foo_g...(self, y);\n}' 262s E 262s E Skipping 42 identical leading characters in diff, use -v to show 262s E - turn (x * 2.0); 262s E ? ^^^ 262s E + turn (x * None); 262s E ? ^^^^ 262s E }... 262s E 262s E ...Full output truncated (12 lines hidden), use '-vv' to show 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1097: AssertionError 262s ----------------------------- Captured stdout call ----------------------------- 262s double Foo_g(Foo* self, double x) 262s { 262s return (x * None); 262s } 262s 262s void Foo_f(Foo* self, double x) 262s { 262s double y; 262s double z; 262s y = (x + None); 262s do(self->a, x); 262s z = Foo_g(self, y); 262s } 262s 262s _____________________________ test_wrapping_class ______________________________ 262s 262s def test_wrapping_class(): 262s # Given 262s class Dummy(object): 262s '''Class Docstring''' 262s 262s def __init__(self, x=0, f=0.0, s=''): 262s "Constructor docstring" 262s self.x = x 262s self.f = f 262s self.s = s 262s self._private = 1 262s 262s def method(self): 262s '''Method docstring. 262s ''' 262s pass 262s 262s obj = Dummy() 262s 262s # When 262s c = CConverter() 262s > result = c.parse_instance(obj) 262s ^^^^^^^^^^^^^^^^^^^^^ 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1191: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s ../../build.6Ps/src/compyle/translator.py:297: in parse_instance 262s code += self.convert(src, ignore_methods) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:252: in convert 262s result = self.visit(code) 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 262s return '\n'.join( 262s ../../build.6Ps/src/compyle/translator.py:653: in 262s self.visit(item) for item in node.body 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:417: in visit_ClassDef 262s code = [self.visit(x) for x in self._remove_docstring(node.body)] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s body = [Expr(value=Constant(value='Class Docstring', kind=None)), FunctionDef(name='__init__', args=arguments(posonlyargs=[],...ethod docstring.\n ', kind=None)), Pass()], decorator_list=[], returns=None, type_comment=None, type_params=[])] 262s 262s def _remove_docstring(self, body): 262s if body and isinstance(body[0], ast.Expr) and \ 262s > isinstance(body[0].value, ast.Str): 262s ^^^^^^^ 262s E AttributeError: module 'ast' has no attribute 'Str' 262s 262s ../../build.6Ps/src/compyle/translator.py:228: AttributeError 262s ___________________ test_wrapping_class_with_ignore_methods ____________________ 262s 262s def test_wrapping_class_with_ignore_methods(): 262s # Given 262s class Dummy1(object): 262s '''Class Docstring''' 262s 262s def f(self): 262s pass 262s 262s def not_me(self): 262s pass 262s 262s obj = Dummy1() 262s 262s # When 262s c = CConverter() 262s > result = c.parse_instance(obj, ignore_methods=['not_me']) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1232: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s ../../build.6Ps/src/compyle/translator.py:297: in parse_instance 262s code += self.convert(src, ignore_methods) 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:252: in convert 262s result = self.visit(code) 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 262s return '\n'.join( 262s ../../build.6Ps/src/compyle/translator.py:653: in 262s self.visit(item) for item in node.body 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:417: in visit_ClassDef 262s code = [self.visit(x) for x in self._remove_docstring(node.body)] 262s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s body = [Expr(value=Constant(value='Class Docstring', kind=None)), FunctionDef(name='f', args=arguments(posonlyargs=[], args=[...aults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None, type_params=[])] 262s 262s def _remove_docstring(self, body): 262s if body and isinstance(body[0], ast.Expr) and \ 262s > isinstance(body[0].value, ast.Str): 262s ^^^^^^^ 262s E AttributeError: module 'ast' has no attribute 'Str' 262s 262s ../../build.6Ps/src/compyle/translator.py:228: AttributeError 262s __________________________ test_cuda_local_conversion __________________________ 262s 262s def test_cuda_local_conversion(): 262s @annotate(xc='ldoublep', yc='lintp') 262s def knl(xc, yc): 262s xc[LID_0] = 1 262s yc[LID_0] = 1 262s 262s # When 262s converter = CUDAConverter() 262s code = converter.parse(knl) 262s 262s # Then 262s expect_1 = dedent(''' 262s WITHIN_KERNEL void knl(int size_xc, int size_yc) 262s { 262s extern LOCAL_MEM float shared_buff[]; 262s double* xc = (double*) shared_buff; 262s int* yc = (int*) &xc[size_xc]; 262s xc[LID_0] = 1; 262s yc[LID_0] = 1; 262s } 262s ''') 262s 262s expect_2 = dedent(''' 262s WITHIN_KERNEL void knl(int size_xc, int size_yc) 262s { 262s extern LOCAL_MEM float shared_buff[]; 262s int* yc = (int*) shared_buff; 262s double* xc = (double*) &yc[size_yc]; 262s xc[LID_0] = 1; 262s yc[LID_0] = 1; 262s } 262s ''') 262s 262s > assert code.strip() == expect_1.strip() or code.strip() == expect_2.strip() 262s E AssertionError: assert ('WITHIN_KERNE...0] = None;\n}' == 'WITHIN_KERNE...ID_0] = 1;\n}' 262s E 262s E Skipping 174 identical leading characters in diff, use -v to show 262s E - [LID_0] = 1; 262s E ? ^ 262s E + [LID_0] = None; 262s E ? ^^^^ 262s E - yc[LID_0] = 1;... 262s E 262s E ...Full output truncated (4 lines hidden), use '-vv' to show or 'WITHIN_KERNE...0] = None;\n}' == 'WITHIN_KERNE...ID_0] = 1;\n}' 262s E 262s E Skipping 87 identical leading characters in diff, use -v to show 262s E ff[]; 262s E - int* yc = (int*) shared_buff; 262s E - double* xc = (double*) &yc[size_yc]; 262s E ? ---- ^^ ^^^ 262s E + double* xc = (double*) shared_buff;... 262s E 262s E ...Full output truncated (11 lines hidden), use '-vv' to show) 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1333: AssertionError 262s ________________________ test_handles_parsing_functions ________________________ 262s 262s def test_handles_parsing_functions(): 262s # Given 262s def f(x=1.0): 262s return x + 1 262s 262s # When 262s t = CConverter() 262s code = t.parse_function(f) 262s 262s # Then 262s expect = dedent(''' 262s double f(double x) 262s { 262s return (x + 1); 262s } 262s ''') 262s > assert code.strip() == expect.strip() 262s E AssertionError: assert 'double f(dou...x + None);\n}' == 'double f(dou...n (x + 1);\n}' 262s E 262s E double f(double x) 262s E { 262s E - return (x + 1); 262s E ? ^ 262s E + return (x + None); 262s E ? ^^^^ 262s E } 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1352: AssertionError 262s _______________________________ test_cast_works ________________________________ 262s 262s def test_cast_works(): 262s # Given 262s def f(x=1.0): 262s return cast(x, "float") 262s 262s # When 262s t = OpenCLConverter() 262s > code = t.parse_function(f) 262s ^^^^^^^^^^^^^^^^^^^ 262s 262s ../../build.6Ps/src/compyle/tests/test_translator.py:1467: 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s ../../build.6Ps/src/compyle/translator.py:307: in parse_function 262s code = self.convert(src) 262s ^^^^^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:252: in convert 262s result = self.visit(code) 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:652: in visit_Module 262s return '\n'.join( 262s ../../build.6Ps/src/compyle/translator.py:653: in 262s self.visit(item) for item in node.body 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:584: in visit_FunctionDef 262s body = '\n'.join(self._indent_block(self.visit(item)) 262s ../../build.6Ps/src/compyle/translator.py:584: in 262s body = '\n'.join(self._indent_block(self.visit(item)) 262s ^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s ../../build.6Ps/src/compyle/translator.py:692: in visit_Return 262s return 'return %s;' % (self.visit(node.value)) 262s ^^^^^^^^^^^^^^^^^^^^^^ 262s /usr/lib/python3.14/ast.py:506: in visit 262s return visitor(node) 262s ^^^^^^^^^^^^^ 262s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 262s 262s self = 262s node = Call(func=Name(id='cast', ctx=Load()), args=[Name(id='x', ctx=Load()), Constant(value='float', kind=None)], keywords=[]) 262s 262s def visit_Call(self, node): 262s if isinstance(node.func, ast.Name): 262s if node.func.id == 'address': 262s return '(&%s)' % self.visit(node.args[0]) 262s elif 'atomic' in node.func.id: 262s return self.render_atomic(node.func.id, node.args[0]) 262s elif node.func.id == 'cast': 262s > return '(%s) (%s)' % (node.args[1].s, self.visit(node.args[0])) 262s ^^^^^^^^^^^^^^ 262s E AttributeError: 'Constant' object has no attribute 's' 262s 262s ../../build.6Ps/src/compyle/translator.py:388: AttributeError 262s =============================== warnings summary =============================== 262s compyle/tests/test_array.py: 23 warnings 262s /usr/lib/python3/dist-packages/pyopencl/__init__.py:519: CompilerWarning: Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more. 262s lambda: self._prg.build(options_bytes, devices), 262s 262s compyle/tests/test_array.py::test_trapz[cython] 262s compyle/tests/test_array.py::test_trapz[opencl] 262s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_array.py:452: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. 262s assert(array.trapz(y) == np.trapz(yn)) 262s 262s compyle/tests/test_array.py::test_trapz[cython] 262s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_array.py:453: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. 262s assert(array.trapz(y, x,) == np.trapz(yn, xn)) 262s 262s compyle/tests/test_array.py::test_trapz[cython] 262s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_array.py:454: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. 262s assert(array.trapz(y, dx=3) == np.trapz(yn, dx=3)) 262s 262s compyle/tests/test_jit.py::TestAnnotationHelper::test_non_jit_call_as_call_arg 262s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:202: UserWarning: 262s In code in line 5: 262s 262s return g(sin(a)) 262s ^ 262s 262s 262s Function called is not marked by the annotate decorator. Argument 262s type defaulting to 'double'. If the type is not 'double', store 262s the value in a variable of appropriate type and use the variable 262s 262s warnings.warn(msg) 262s 262s compyle/tests/test_jit.py::TestAnnotationHelper::test_non_jit_call_in_return 262s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:202: UserWarning: 262s In code in line 5: 262s 262s return sin(a) 262s ^ 262s 262s 262s Function called is not marked by the annotate decorator. Argument 262s type defaulting to 'double'. If the type is not 'double', store 262s the value in a variable of appropriate type and use the variable 262s 262s warnings.warn(msg) 262s 262s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 262s =========================== short test summary info ============================ 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_remove[opencl] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_align_multiple[cython] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_align_multiple[opencl] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_sort_by_keys[cython] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_radix_sort_by_keys 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_sort_by_keys_with_output[cython] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_diff[int32-opencl] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_diff[float32-opencl] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_diff[float64-opencl] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_trapz[opencl] - ... 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_take_bool[opencl-int32] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_take_bool[opencl-float32] 262s FAILED ../../build.6Ps/src/compyle/tests/test_array.py::test_take_bool[opencl-float64] 262s FAILED ../../build.6Ps/src/compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_function_with_annotation 262s FAILED ../../build.6Ps/src/compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare 262s FAILED ../../build.6Ps/src/compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix 262s FAILED ../../build.6Ps/src/compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_python3_annotation 262s FAILED ../../build.6Ps/src/compyle/tests/test_jit.py::TestAnnotationHelper::test_cast_return_type 262s FAILED ../../build.6Ps/src/compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables 262s FAILED ../../build.6Ps/src/compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg 262s FAILED ../../build.6Ps/src/compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg_nonjit 262s FAILED ../../build.6Ps/src/compyle/tests/test_low_level.py::TestKernel::test_kernel_with_local_memory_opencl 262s FAILED ../../build.6Ps/src/compyle/tests/test_low_level.py::TestKernel::test_simple_kernel_opencl 262s FAILED ../../build.6Ps/src/compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call 262s FAILED ../../build.6Ps/src/compyle/tests/test_low_level.py::TestCython::test_cython_with_externs 262s FAILED ../../build.6Ps/src/compyle/tests/test_template.py::test_simple_template 262s FAILED ../../build.6Ps/src/compyle/tests/test_template.py::test_that_source_code_is_available 262s FAILED ../../build.6Ps/src/compyle/tests/test_template.py::test_template_usable_in_code_generation 262s FAILED ../../build.6Ps/src/compyle/tests/test_template.py::test_template_with_extra_args 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_simple_assignment_expression 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_multiple_assignment_expressions 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_if_block - ... 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_conditionals 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_ternary_operator 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_multiple_boolops 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_multiple_bitwise_ops 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_power - Ass... 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_calling_function 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_calling_printf_with_string 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_subscript 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_simple_function_with_return 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_annotated_function 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_py3_annotations 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_calling_method_of_known_type 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_calling_method_of_known_type_in_method 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_while - Ass... 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_bool_true_false_and_none 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_for - Asser... 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_for_with_decreasing_range 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_for_with_declare 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_two_fors - ... 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_for_with_symbols 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_nested_for_with_symbols 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_with_two_functions 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_for_with_break_continue 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_attribute_access 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_declare_call_declares_variable 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_declare_matrix 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_declare_call_declares_multiple_variables 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_class - Ass... 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_wrapping_class 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_wrapping_class_with_ignore_methods 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_cuda_local_conversion 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_handles_parsing_functions 262s FAILED ../../build.6Ps/src/compyle/tests/test_translator.py::test_cast_works 262s = 65 failed, 201 passed, 57 skipped, 3 deselected, 1 xfailed, 29 warnings in 106.52s (0:01:46) = 262s E: pybuild pybuild:483: test: plugin distutils failed with: exit code=1: cd /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/build; python3.14 -m pytest -k "not test_that_multiple_compiles_do_not_occur_for_same_source and not test_const_as_call_arg and not test_const_in_return" --ignore=/tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_cuda.py --ignore=/tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_parallel.py /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests 262s I: pybuild base:384: cd /tmp/autopkgtest.g0jC0I/autopkgtest_tmp/build; python3.13 -m pytest -k "not test_that_multiple_compiles_do_not_occur_for_same_source and not test_const_as_call_arg and not test_const_in_return" --ignore=/tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_cuda.py --ignore=/tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_parallel.py /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests 263s ============================= test session starts ============================== 263s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 263s rootdir: /tmp/autopkgtest.g0jC0I/build.6Ps/src 263s configfile: pyproject.toml 263s plugins: typeguard-4.4.4 263s collected 327 items / 3 deselected / 324 selected 263s 271s ../../build.6Ps/src/compyle/tests/test_array.py ..s..s..s..s..s..s..s..s [ 7%] 322s ..s..s..s..s..s..s...s.sx..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.. [ 29%] 372s s..s..s..s..s..s..s..s..s..s..ss..s......sss......sss......sss..s [ 49%] 372s ../../build.6Ps/src/compyle/tests/test_ast_utils.py ....... [ 51%] 372s ../../build.6Ps/src/compyle/tests/test_capture_stream.py ..... [ 53%] 372s ../../build.6Ps/src/compyle/tests/test_config.py ............ [ 57%] 372s ../../build.6Ps/src/compyle/tests/test_cython_generator.py ............. [ 61%] 372s .... [ 62%] 373s ../../build.6Ps/src/compyle/tests/test_ext_module.py ........ [ 64%] 373s ../../build.6Ps/src/compyle/tests/test_gpu_struct.py s [ 65%] 373s ../../build.6Ps/src/compyle/tests/test_jit.py .......................... [ 73%] 373s [ 73%] 381s ../../build.6Ps/src/compyle/tests/test_low_level.py s.s..... [ 75%] 381s ../../build.6Ps/src/compyle/tests/test_profile.py ..... [ 77%] 385s ../../build.6Ps/src/compyle/tests/test_template.py ..... [ 78%] 385s ../../build.6Ps/src/compyle/tests/test_translator.py ................... [ 84%] 385s .................................... [ 95%] 385s ../../build.6Ps/src/compyle/tests/test_transpiler.py ... [ 96%] 385s ../../build.6Ps/src/compyle/tests/test_types.py ....... [ 98%] 385s ../../build.6Ps/src/compyle/tests/test_utils.py .... [100%] 385s 385s =============================== warnings summary =============================== 385s compyle/tests/test_array.py: 8 warnings 385s compyle/tests/test_jit.py: 5 warnings 385s compyle/tests/test_translator.py: 93 warnings 385s /usr/lib/python3.13/ast.py:422: DeprecationWarning: visit_Num is deprecated; add visit_Constant 385s return visitor(node) 385s 385s compyle/tests/test_array.py: 4 warnings 385s compyle/tests/test_translator.py: 93 warnings 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/translator.py:682: DeprecationWarning: Attribute n is deprecated and will be removed in Python 3.14; use value instead 385s return str(node.n) 385s 385s compyle/tests/test_array.py: 31 warnings 385s /usr/lib/python3/dist-packages/pyopencl/__init__.py:519: CompilerWarning: Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more. 385s lambda: self._prg.build(options_bytes, devices), 385s 385s compyle/tests/test_array.py: 5 warnings 385s compyle/tests/test_template.py: 5 warnings 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/template.py:52: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s template = body[-1].value.s 385s 385s compyle/tests/test_array.py::test_align_multiple[opencl] 385s compyle/tests/test_array.py::test_align_multiple[opencl] 385s compyle/tests/test_translator.py::test_simple_function_with_return 385s compyle/tests/test_translator.py::test_calling_method_of_known_type_in_method 385s compyle/tests/test_translator.py::test_wrapping_class 385s compyle/tests/test_translator.py::test_wrapping_class 385s compyle/tests/test_translator.py::test_wrapping_class_with_ignore_methods 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/translator.py:228: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead 385s isinstance(body[0].value, ast.Str): 385s 385s compyle/tests/test_array.py::test_radix_sort_by_keys 385s compyle/tests/test_array.py::test_radix_sort_by_keys 385s compyle/tests/test_array.py::test_radix_sort_by_keys 385s compyle/tests/test_array.py::test_radix_sort_by_keys 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_no_return_value 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_no_return_value 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_undeclared_variable_declaration_in_for 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:299: DeprecationWarning: Attribute n is deprecated and will be removed in Python 3.14; use value instead 385s return get_ctype_from_arg(node.n) 385s 385s compyle/tests/test_array.py::test_diff[int32-opencl] 385s compyle/tests/test_array.py::test_diff[float32-opencl] 385s compyle/tests/test_array.py::test_diff[float64-opencl] 385s compyle/tests/test_array.py::test_trapz[opencl] 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg_nonjit 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:205: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead 385s if not isinstance(node.args[0], ast.Str): 385s 385s compyle/tests/test_array.py::test_diff[int32-opencl] 385s compyle/tests/test_array.py::test_diff[float32-opencl] 385s compyle/tests/test_array.py::test_diff[float64-opencl] 385s compyle/tests/test_array.py::test_trapz[opencl] 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_declare_multiple_variables 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_variable_as_call_arg_nonjit 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:207: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s type_str = node.args[0].s 385s 385s compyle/tests/test_array.py: 3 warnings 385s compyle/tests/test_low_level.py: 2 warnings 385s compyle/tests/test_translator.py: 14 warnings 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/translator.py:344: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead 385s if not isinstance(right.args[0], ast.Str): 385s 385s compyle/tests/test_array.py: 3 warnings 385s compyle/tests/test_low_level.py: 2 warnings 385s compyle/tests/test_translator.py: 14 warnings 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/translator.py:346: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s type = right.args[0].s 385s 385s compyle/tests/test_array.py::test_trapz[cython] 385s compyle/tests/test_array.py::test_trapz[opencl] 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_array.py:452: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. 385s assert(array.trapz(y) == np.trapz(yn)) 385s 385s compyle/tests/test_array.py::test_trapz[cython] 385s compyle/tests/test_array.py::test_trapz[opencl] 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_array.py:453: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. 385s assert(array.trapz(y, x,) == np.trapz(yn, xn)) 385s 385s compyle/tests/test_array.py::test_trapz[cython] 385s compyle/tests/test_array.py::test_trapz[opencl] 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/tests/test_array.py:454: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`. 385s assert(array.trapz(y, dx=3) == np.trapz(yn, dx=3)) 385s 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_function_with_annotation 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_python3_annotation 385s compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call 385s compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call 385s compyle/tests/test_low_level.py::TestCython::test_cython_with_externs 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/cython_generator.py:129: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead 385s if not isinstance(arg0, ast.Str): 385s 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_function_with_annotation 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_declare 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_method_with_matrix 385s compyle/tests/test_cython_generator.py::TestCythonCodeGenerator::test_python3_annotation 385s compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call 385s compyle/tests/test_low_level.py::TestCython::test_cython_code_with_return_and_nested_call 385s compyle/tests/test_low_level.py::TestCython::test_cython_with_externs 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/cython_generator.py:133: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s return get_declare_info(arg0.s) 385s 385s compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source 385s compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source 385s compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source 385s compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source 385s compyle/tests/test_ext_module.py::TestExtModule::test_that_multiple_writes_do_not_occur_for_same_source 385s /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=2946) is multi-threaded, use of fork() may lead to deadlocks in the child. 385s self.pid = os.fork() 385s 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_cast_return_type 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:211: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead 385s if not isinstance(node.args[1], ast.Str): 385s 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_cast_return_type 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:213: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s return node.args[1].s 385s 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_non_jit_call_as_call_arg 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:202: UserWarning: 385s In code in line 5: 385s 385s return g(sin(a)) 385s ^ 385s 385s 385s Function called is not marked by the annotate decorator. Argument 385s type defaulting to 'double'. If the type is not 'double', store 385s the value in a variable of appropriate type and use the variable 385s 385s warnings.warn(msg) 385s 385s compyle/tests/test_jit.py::TestAnnotationHelper::test_non_jit_call_in_return 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/jit.py:202: UserWarning: 385s In code in line 5: 385s 385s return sin(a) 385s ^ 385s 385s 385s Function called is not marked by the annotate decorator. Argument 385s type defaulting to 'double'. If the type is not 'double', store 385s the value in a variable of appropriate type and use the variable 385s 385s warnings.warn(msg) 385s 385s compyle/tests/test_template.py::test_simple_template 385s compyle/tests/test_template.py::test_simple_template 385s compyle/tests/test_template.py::test_that_source_code_is_available 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/template.py:53: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s docstring = body[0].value.s if len(body) == 2 else '' 385s 385s compyle/tests/test_translator.py::test_calling_printf_with_string 385s compyle/tests/test_translator.py::test_calling_printf_with_string 385s /usr/lib/python3.13/ast.py:422: DeprecationWarning: visit_Str is deprecated; add visit_Constant 385s return visitor(node) 385s 385s compyle/tests/test_translator.py::test_calling_printf_with_string 385s compyle/tests/test_translator.py::test_calling_printf_with_string 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/translator.py:700: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s return r'"%s"' % node.s 385s 385s compyle/tests/test_translator.py::test_bool_true_false_and_none 385s compyle/tests/test_translator.py::test_bool_true_false_and_none 385s compyle/tests/test_translator.py::test_bool_true_false_and_none 385s compyle/tests/test_translator.py::test_bool_true_false_and_none 385s /usr/lib/python3.13/ast.py:422: DeprecationWarning: visit_NameConstant is deprecated; add visit_Constant 385s return visitor(node) 385s 385s compyle/tests/test_translator.py::test_cast_works 385s compyle/tests/test_translator.py::test_cast_works 385s /tmp/autopkgtest.g0jC0I/build.6Ps/src/compyle/translator.py:388: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead 385s return '(%s) (%s)' % (node.args[1].s, self.visit(node.args[0])) 385s 385s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 385s = 266 passed, 57 skipped, 3 deselected, 1 xfailed, 358 warnings in 122.22s (0:02:02) = 385s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 385s make: *** [/tmp/d8nVVUiRuG/run:4: pybuild-autopkgtest] Error 25 385s pybuild-autopkgtest: error: /tmp/d8nVVUiRuG/run pybuild-autopkgtest returned exit code 2 385s autopkgtest [14:20:18]: test pybuild-autopkgtest: -----------------------] 386s pybuild-autopkgtest FAIL non-zero exit status 25 386s autopkgtest [14:20:19]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 386s autopkgtest [14:20:19]: @@@@@@@@@@@@@@@@@@@@ summary 386s pybuild-autopkgtest FAIL non-zero exit status 25