0s autopkgtest [13:55:57]: starting date and time: 2025-01-03 13:55:57+0000 0s autopkgtest [13:55:57]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [13:55:57]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.x8raua_9/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python3-defaults --apt-upgrade bottleneck --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.13.1-1~exp2' -- lxd -r lxd-armhf-10.145.243.201 lxd-armhf-10.145.243.201:autopkgtest/ubuntu/plucky/armhf 30s autopkgtest [13:56:27]: testbed dpkg architecture: armhf 32s autopkgtest [13:56:29]: testbed apt version: 2.9.18 38s autopkgtest [13:56:35]: @@@@@@@@@@@@@@@@@@@@ test bed setup 40s autopkgtest [13:56:37]: testbed release detected to be: None 50s autopkgtest [13:56:47]: updating testbed package index (apt update) 53s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 53s Get:2 http://ftpmaster.internal/ubuntu plucky InRelease [213 kB] 53s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 53s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 53s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9708 B] 53s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [60.7 kB] 53s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [10.1 kB] 53s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [664 kB] 53s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [59.7 kB] 53s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf Packages [756 B] 53s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [515 kB] 53s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [2064 B] 53s Get:13 http://ftpmaster.internal/ubuntu plucky/universe Sources [20.8 MB] 54s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf Packages [1355 kB] 54s Get:15 http://ftpmaster.internal/ubuntu plucky/universe armhf Packages [15.2 MB] 58s Fetched 39.0 MB in 5s (7916 kB/s) 59s Reading package lists... 68s autopkgtest [13:57:05]: upgrading testbed (apt dist-upgrade and autopurge) 70s Reading package lists... 71s Building dependency tree... 71s Reading state information... 71s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 71s Starting 2 pkgProblemResolver with broken count: 0 71s Done 72s Entering ResolveByKeep 72s 73s The following packages were automatically installed and are no longer required: 73s libnsl2 libpython3.12-minimal libpython3.12-stdlib python3.12 73s python3.12-minimal 73s Use 'apt autoremove' to remove them. 73s The following NEW packages will be installed: 73s libpython3.13-minimal libpython3.13-stdlib python3.13 python3.13-minimal 73s The following packages will be upgraded: 73s libpython3-stdlib python3 python3-minimal 73s 3 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 73s Need to get 5664 kB of archives. 73s After this operation, 19.4 MB of additional disk space will be used. 73s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libpython3.13-minimal armhf 3.13.1-2 [868 kB] 74s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf python3.13-minimal armhf 3.13.1-2 [2036 kB] 74s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3-minimal armhf 3.13.1-1~exp2 [27.6 kB] 74s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3 armhf 3.13.1-1~exp2 [23.9 kB] 74s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf libpython3.13-stdlib armhf 3.13.1-2 [1970 kB] 74s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf python3.13 armhf 3.13.1-2 [729 kB] 74s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libpython3-stdlib armhf 3.13.1-1~exp2 [10.2 kB] 74s Fetched 5664 kB in 1s (6777 kB/s) 74s Selecting previously unselected package libpython3.13-minimal:armhf. 74s (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 ... 59660 files and directories currently installed.) 74s Preparing to unpack .../libpython3.13-minimal_3.13.1-2_armhf.deb ... 74s Unpacking libpython3.13-minimal:armhf (3.13.1-2) ... 75s Selecting previously unselected package python3.13-minimal. 75s Preparing to unpack .../python3.13-minimal_3.13.1-2_armhf.deb ... 75s Unpacking python3.13-minimal (3.13.1-2) ... 75s Setting up libpython3.13-minimal:armhf (3.13.1-2) ... 75s Setting up python3.13-minimal (3.13.1-2) ... 76s (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 ... 59980 files and directories currently installed.) 76s Preparing to unpack .../python3-minimal_3.13.1-1~exp2_armhf.deb ... 76s Unpacking python3-minimal (3.13.1-1~exp2) over (3.12.8-1) ... 76s Setting up python3-minimal (3.13.1-1~exp2) ... 76s (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 ... 59980 files and directories currently installed.) 76s Preparing to unpack .../python3_3.13.1-1~exp2_armhf.deb ... 76s Unpacking python3 (3.13.1-1~exp2) over (3.12.8-1) ... 76s Selecting previously unselected package libpython3.13-stdlib:armhf. 76s Preparing to unpack .../libpython3.13-stdlib_3.13.1-2_armhf.deb ... 76s Unpacking libpython3.13-stdlib:armhf (3.13.1-2) ... 76s Selecting previously unselected package python3.13. 76s Preparing to unpack .../python3.13_3.13.1-2_armhf.deb ... 76s Unpacking python3.13 (3.13.1-2) ... 76s Preparing to unpack .../libpython3-stdlib_3.13.1-1~exp2_armhf.deb ... 76s Unpacking libpython3-stdlib:armhf (3.13.1-1~exp2) over (3.12.8-1) ... 76s Setting up libpython3.13-stdlib:armhf (3.13.1-2) ... 76s Setting up libpython3-stdlib:armhf (3.13.1-1~exp2) ... 76s Setting up python3.13 (3.13.1-2) ... 78s Setting up python3 (3.13.1-1~exp2) ... 78s /usr/bin/py3clean:101: DeprecationWarning: glob.glob1 is deprecated and will be removed in Python 3.15. Use glob.glob and pass a directory to its root_dir argument instead. 78s for fn in glob1(directory, "%s.*" % fname): 78s Processing triggers for man-db (2.13.0-1) ... 79s Processing triggers for systemd (257-2ubuntu1) ... 81s Reading package lists... 81s Building dependency tree... 81s Reading state information... 82s Starting pkgProblemResolver with broken count: 0 82s Starting 2 pkgProblemResolver with broken count: 0 82s Done 83s The following packages will be REMOVED: 83s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* python3.12* 83s python3.12-minimal* 84s 0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded. 84s After this operation, 19.9 MB disk space will be freed. 84s (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 ... 60397 files and directories currently installed.) 84s Removing python3.12 (3.12.8-3) ... 84s Removing libpython3.12-stdlib:armhf (3.12.8-3) ... 84s Removing libnsl2:armhf (1.3.0-3build3) ... 84s Removing python3.12-minimal (3.12.8-3) ... 84s /usr/bin/py3clean:125: DeprecationWarning: glob.glob1 is deprecated and will be removed in Python 3.15. Use glob.glob and pass a directory to its root_dir argument instead. 84s for fn in glob1(directory, "%s.%s.py[co]" % (fname, magic_tag)): 84s Removing libpython3.12-minimal:armhf (3.12.8-3) ... 84s Processing triggers for systemd (257-2ubuntu1) ... 84s Processing triggers for man-db (2.13.0-1) ... 84s Processing triggers for libc-bin (2.40-4ubuntu1) ... 85s (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 ... 59682 files and directories currently installed.) 85s Purging configuration files for python3.12-minimal (3.12.8-3) ... 85s Purging configuration files for libpython3.12-minimal:armhf (3.12.8-3) ... 88s autopkgtest [13:57:25]: rebooting testbed after setup commands that affected boot 144s autopkgtest [13:58:21]: testbed running kernel: Linux 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 18:12:14 UTC 2 178s autopkgtest [13:58:55]: @@@@@@@@@@@@@@@@@@@@ apt-source bottleneck 196s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.3.8+ds1-1build1 (dsc) [2386 B] 196s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.3.8+ds1-1build1 (tar) [76.3 kB] 196s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.3.8+ds1-1build1 (diff) [6096 B] 196s gpgv: Signature made Wed Nov 13 09:04:27 2024 UTC 196s gpgv: using RSA key 568BF22A66337CBFC9A6B9B72C83DBC8E9BD0E37 196s gpgv: Can't check signature: No public key 196s dpkg-source: warning: cannot verify inline signature for ./bottleneck_1.3.8+ds1-1build1.dsc: no acceptable signature found 196s autopkgtest [13:59:13]: testing package bottleneck version 1.3.8+ds1-1build1 199s autopkgtest [13:59:16]: build not needed 201s autopkgtest [13:59:18]: test command1: preparing testbed 203s Reading package lists... 203s Building dependency tree... 203s Reading state information... 204s Starting pkgProblemResolver with broken count: 0 204s Starting 2 pkgProblemResolver with broken count: 0 204s Done 205s The following NEW packages will be installed: 205s libblas3 libgfortran5 liblapack3 libnsl2 libpython3.12-minimal 205s libpython3.12-stdlib python3-all python3-bottleneck python3-iniconfig 205s python3-numpy python3-packaging python3-pluggy python3-pytest python3.12 205s python3.12-minimal 205s 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 205s Need to get 12.4 MB of archives. 205s After this operation, 49.3 MB of additional disk space will be used. 205s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libpython3.12-minimal armhf 3.12.8-3 [825 kB] 205s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf python3.12-minimal armhf 3.12.8-3 [2029 kB] 205s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libnsl2 armhf 1.3.0-3build3 [36.5 kB] 205s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf libpython3.12-stdlib armhf 3.12.8-3 [1939 kB] 205s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf python3.12 armhf 3.12.8-3 [667 kB] 205s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libblas3 armhf 3.12.0-4 [126 kB] 205s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libgfortran5 armhf 14.2.0-12ubuntu1 [311 kB] 205s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf liblapack3 armhf 3.12.0-4 [2086 kB] 205s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3-all armhf 3.13.1-1~exp2 [896 B] 205s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf python3-numpy armhf 1:1.26.4+ds-12 [4001 kB] 206s Get:11 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-bottleneck armhf 1.3.8+ds1-1build1 [90.4 kB] 206s Get:12 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 206s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf python3-packaging all 24.2-1 [51.5 kB] 206s Get:14 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 206s Get:15 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest all 8.3.3-1 [251 kB] 206s Fetched 12.4 MB in 1s (13.6 MB/s) 206s Selecting previously unselected package libpython3.12-minimal:armhf. 206s (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 ... 59680 files and directories currently installed.) 206s Preparing to unpack .../00-libpython3.12-minimal_3.12.8-3_armhf.deb ... 206s Unpacking libpython3.12-minimal:armhf (3.12.8-3) ... 206s Selecting previously unselected package python3.12-minimal. 206s Preparing to unpack .../01-python3.12-minimal_3.12.8-3_armhf.deb ... 206s Unpacking python3.12-minimal (3.12.8-3) ... 206s Selecting previously unselected package libnsl2:armhf. 206s Preparing to unpack .../02-libnsl2_1.3.0-3build3_armhf.deb ... 206s Unpacking libnsl2:armhf (1.3.0-3build3) ... 206s Selecting previously unselected package libpython3.12-stdlib:armhf. 206s Preparing to unpack .../03-libpython3.12-stdlib_3.12.8-3_armhf.deb ... 206s Unpacking libpython3.12-stdlib:armhf (3.12.8-3) ... 206s Selecting previously unselected package python3.12. 206s Preparing to unpack .../04-python3.12_3.12.8-3_armhf.deb ... 206s Unpacking python3.12 (3.12.8-3) ... 206s Selecting previously unselected package libblas3:armhf. 206s Preparing to unpack .../05-libblas3_3.12.0-4_armhf.deb ... 206s Unpacking libblas3:armhf (3.12.0-4) ... 206s Selecting previously unselected package libgfortran5:armhf. 206s Preparing to unpack .../06-libgfortran5_14.2.0-12ubuntu1_armhf.deb ... 206s Unpacking libgfortran5:armhf (14.2.0-12ubuntu1) ... 206s Selecting previously unselected package liblapack3:armhf. 206s Preparing to unpack .../07-liblapack3_3.12.0-4_armhf.deb ... 206s Unpacking liblapack3:armhf (3.12.0-4) ... 206s Selecting previously unselected package python3-all. 206s Preparing to unpack .../08-python3-all_3.13.1-1~exp2_armhf.deb ... 206s Unpacking python3-all (3.13.1-1~exp2) ... 206s Selecting previously unselected package python3-numpy. 207s Preparing to unpack .../09-python3-numpy_1%3a1.26.4+ds-12_armhf.deb ... 207s Unpacking python3-numpy (1:1.26.4+ds-12) ... 207s Selecting previously unselected package python3-bottleneck. 207s Preparing to unpack .../10-python3-bottleneck_1.3.8+ds1-1build1_armhf.deb ... 207s Unpacking python3-bottleneck (1.3.8+ds1-1build1) ... 207s Selecting previously unselected package python3-iniconfig. 207s Preparing to unpack .../11-python3-iniconfig_1.1.1-2_all.deb ... 207s Unpacking python3-iniconfig (1.1.1-2) ... 207s Selecting previously unselected package python3-packaging. 207s Preparing to unpack .../12-python3-packaging_24.2-1_all.deb ... 207s Unpacking python3-packaging (24.2-1) ... 207s Selecting previously unselected package python3-pluggy. 207s Preparing to unpack .../13-python3-pluggy_1.5.0-1_all.deb ... 207s Unpacking python3-pluggy (1.5.0-1) ... 207s Selecting previously unselected package python3-pytest. 207s Preparing to unpack .../14-python3-pytest_8.3.3-1_all.deb ... 207s Unpacking python3-pytest (8.3.3-1) ... 207s Setting up python3-iniconfig (1.1.1-2) ... 207s Setting up libpython3.12-minimal:armhf (3.12.8-3) ... 207s Setting up libblas3:armhf (3.12.0-4) ... 207s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 207s Setting up python3-packaging (24.2-1) ... 208s Setting up libgfortran5:armhf (14.2.0-12ubuntu1) ... 208s Setting up python3-pluggy (1.5.0-1) ... 208s Setting up libnsl2:armhf (1.3.0-3build3) ... 208s Setting up python3.12-minimal (3.12.8-3) ... 209s Setting up liblapack3:armhf (3.12.0-4) ... 209s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 209s Setting up libpython3.12-stdlib:armhf (3.12.8-3) ... 209s Setting up python3-pytest (8.3.3-1) ... 209s Setting up python3.12 (3.12.8-3) ... 211s Setting up python3-all (3.13.1-1~exp2) ... 211s Setting up python3-numpy (1:1.26.4+ds-12) ... 215s Setting up python3-bottleneck (1.3.8+ds1-1build1) ... 215s Processing triggers for systemd (257-2ubuntu1) ... 215s Processing triggers for man-db (2.13.0-1) ... 215s Processing triggers for libc-bin (2.40-4ubuntu1) ... 224s autopkgtest [13:59:41]: test command1: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import bottleneck as bn; bn.test()" ; done 224s autopkgtest [13:59:41]: test command1: [----------------------- 226s Testing with python3.12: 227s ============================= test session starts ============================== 227s platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0 227s rootdir: /tmp/autopkgtest.ZY9wk4/autopkgtest_tmp 227s plugins: typeguard-4.4.1 227s collected 192 items 227s 227s tests/input_modification_test.py ............................. [ 15%] 228s tests/list_input_test.py ............................. [ 30%] 228s tests/memory_test.py . [ 30%] 260s tests/move_test.py ................................. [ 47%] 262s tests/nonreduce_axis_test.py .................... [ 58%] 262s tests/nonreduce_test.py .......... [ 63%] 267s tests/reduce_test.py ................................................... [ 90%] 267s [ 90%] 267s tests/scalar_input_test.py .................. [ 99%] 267s tests/test_template.py F [100%] 267s 267s =================================== FAILURES =================================== 267s ______________________________ test_make_c_files _______________________________ 267s 267s def test_make_c_files() -> None: 267s dirpath = os.path.join(os.path.dirname(__file__), "data/template_test/") 267s modules = ["test"] 267s test_input = os.path.join(dirpath, "test.c") 267s if os.path.exists(test_input): 267s os.remove(test_input) 267s 267s > make_c_files(dirpath=dirpath, modules=modules) 267s 267s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 267s modules = ['test'] 267s test_input = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 267s 267s /usr/lib/python3/dist-packages/bottleneck/tests/test_template.py:14: 267s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 267s 267s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 267s modules = ['test'] 267s 267s def make_c_files( 267s dirpath: Optional[str] = None, modules: Optional[List[str]] = None 267s ) -> None: 267s if modules is None: 267s modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] 267s if dirpath is None: 267s dirpath = os.path.dirname(__file__) 267s for module in modules: 267s template_file = os.path.join(dirpath, module + "_template.c") 267s posix_template = path.relpath(path.join(dirpath, module + "_template.c")) 267s target_file = os.path.join(dirpath, module + ".c") 267s 267s if ( 267s os.path.exists(target_file) 267s and os.stat(template_file).st_mtime < os.stat(target_file).st_mtime 267s ): 267s continue 267s 267s with open(template_file, "r") as f: 267s src_str = f.read() 267s src_str = '#line 1 "{}"\n'.format(posix_template) + template(src_str) 267s if len(src_str) and src_str[-1] != "\n": 267s src_str += "\n" 267s > with open(target_file, "w") as f: 267s E PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 267s 267s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 267s f = <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' mode='r' encoding='UTF-8'> 267s module = 'test' 267s modules = ['test'] 267s posix_template = '../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 267s src_str = '#line 1 "../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c"\n// Copyright 20...ITY;\n if (bar >= 0) {\n bar = 0;\n }\n return PyFloat_FromDouble(bar);\n}\n\nREDUCE_MAIN(nanmax, 0)\n' 267s target_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 267s template_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 267s 267s /usr/lib/python3/dist-packages/bottleneck/src/bn_template.py:31: PermissionError 267s =========================== short test summary info ============================ 267s FAILED tests/test_template.py::test_make_c_files - PermissionError: [Errno 13... 267s ======================== 1 failed, 191 passed in 39.88s ======================== 267s Testing with python3.13: 267s ============================= test session starts ============================== 267s platform linux -- Python 3.13.1, pytest-8.3.3, pluggy-1.5.0 267s rootdir: /tmp/autopkgtest.ZY9wk4/autopkgtest_tmp 267s plugins: typeguard-4.4.1 267s collected 192 items 267s 268s tests/input_modification_test.py ............................. [ 15%] 268s tests/list_input_test.py ............................. [ 30%] 268s tests/memory_test.py . [ 30%] 300s tests/move_test.py ................................. [ 47%] 302s tests/nonreduce_axis_test.py .................... [ 58%] 302s tests/nonreduce_test.py .......... [ 63%] 307s tests/reduce_test.py ................................................... [ 90%] 307s [ 90%] 307s tests/scalar_input_test.py .................. [ 99%] 307s tests/test_template.py F [100%] 307s 307s =================================== FAILURES =================================== 307s ______________________________ test_make_c_files _______________________________ 307s 307s def test_make_c_files() -> None: 307s dirpath = os.path.join(os.path.dirname(__file__), "data/template_test/") 307s modules = ["test"] 307s test_input = os.path.join(dirpath, "test.c") 307s if os.path.exists(test_input): 307s os.remove(test_input) 307s 307s > make_c_files(dirpath=dirpath, modules=modules) 307s 307s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 307s modules = ['test'] 307s test_input = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 307s 307s /usr/lib/python3/dist-packages/bottleneck/tests/test_template.py:14: 307s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 307s 307s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 307s modules = ['test'] 307s 307s def make_c_files( 307s dirpath: Optional[str] = None, modules: Optional[List[str]] = None 307s ) -> None: 307s if modules is None: 307s modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] 307s if dirpath is None: 307s dirpath = os.path.dirname(__file__) 307s for module in modules: 307s template_file = os.path.join(dirpath, module + "_template.c") 307s posix_template = path.relpath(path.join(dirpath, module + "_template.c")) 307s target_file = os.path.join(dirpath, module + ".c") 307s 307s if ( 307s os.path.exists(target_file) 307s and os.stat(template_file).st_mtime < os.stat(target_file).st_mtime 307s ): 307s continue 307s 307s with open(template_file, "r") as f: 307s src_str = f.read() 307s src_str = '#line 1 "{}"\n'.format(posix_template) + template(src_str) 307s if len(src_str) and src_str[-1] != "\n": 307s src_str += "\n" 307s > with open(target_file, "w") as f: 307s E PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 307s 307s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 307s f = <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' mode='r' encoding='UTF-8'> 307s module = 'test' 307s modules = ['test'] 307s posix_template = '../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 307s src_str = '#line 1 "../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c"\n// Copyright 20...ITY;\n if (bar >= 0) {\n bar = 0;\n }\n return PyFloat_FromDouble(bar);\n}\n\nREDUCE_MAIN(nanmax, 0)\n' 307s target_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 307s template_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 307s 307s /usr/lib/python3/dist-packages/bottleneck/src/bn_template.py:31: PermissionError 307s =========================== short test summary info ============================ 307s FAILED tests/test_template.py::test_make_c_files - PermissionError: [Errno 13... 307s ======================== 1 failed, 191 passed in 39.49s ======================== 307s autopkgtest [14:01:04]: test command1: -----------------------] 312s autopkgtest [14:01:09]: test command1: - - - - - - - - - - results - - - - - - - - - - 312s command1 PASS 317s autopkgtest [14:01:14]: @@@@@@@@@@@@@@@@@@@@ summary 317s command1 PASS