0s autopkgtest [14:57:48]: starting date and time: 2025-01-03 14:57:48+0000 0s autopkgtest [14:57:48]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [14:57:48]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.8ozat8yd/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-14.secgroup --name adt-plucky-ppc64el-bottleneck-20250103-145748-juju-7f2275-prod-proposed-migration-environment-15-98669297-d888-4d5f-b6a3-eed4c92ef5d4 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 97s autopkgtest [14:59:25]: testbed dpkg architecture: ppc64el 97s autopkgtest [14:59:25]: testbed apt version: 2.9.18 97s autopkgtest [14:59:25]: @@@@@@@@@@@@@@@@@@@@ test bed setup 97s autopkgtest [14:59:25]: testbed release detected to be: None 98s autopkgtest [14:59:26]: updating testbed package index (apt update) 98s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 99s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 99s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 99s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 99s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [10.1 kB] 99s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [60.7 kB] 99s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [669 kB] 99s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [9708 B] 99s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [71.1 kB] 99s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [756 B] 99s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [551 kB] 99s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [2584 B] 99s Fetched 1449 kB in 1s (1472 kB/s) 100s Reading package lists... 101s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s Calculating upgrade... 102s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 102s Reading package lists... 102s Building dependency tree... 102s Reading state information... 102s 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 102s autopkgtest [14:59:30]: upgrading testbed (apt dist-upgrade and autopurge) 103s Reading package lists... 103s Building dependency tree... 103s Reading state information... 103s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 103s Starting 2 pkgProblemResolver with broken count: 0 103s Done 104s Entering ResolveByKeep 104s 104s The following packages were automatically installed and are no longer required: 104s python3.12 python3.12-minimal 104s Use 'sudo apt autoremove' to remove them. 104s The following NEW packages will be installed: 104s libpython3.13-minimal libpython3.13-stdlib python3.13 python3.13-minimal 104s The following packages will be upgraded: 104s libpython3-stdlib python3 python3-minimal 104s 3 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 104s Need to get 6300 kB of archives. 104s After this operation, 26.2 MB of additional disk space will be used. 104s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.1-2 [883 kB] 105s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.1-2 [2496 kB] 105s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.13.1-1~exp2 [27.6 kB] 105s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.13.1-1~exp2 [24.0 kB] 105s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.1-2 [2131 kB] 105s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.1-2 [729 kB] 105s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.13.1-1~exp2 [10.2 kB] 105s Fetched 6300 kB in 1s (7396 kB/s) 106s Selecting previously unselected package libpython3.13-minimal:ppc64el. 106s (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 ... 74025 files and directories currently installed.) 106s Preparing to unpack .../libpython3.13-minimal_3.13.1-2_ppc64el.deb ... 106s Unpacking libpython3.13-minimal:ppc64el (3.13.1-2) ... 106s Selecting previously unselected package python3.13-minimal. 106s Preparing to unpack .../python3.13-minimal_3.13.1-2_ppc64el.deb ... 106s Unpacking python3.13-minimal (3.13.1-2) ... 106s Setting up libpython3.13-minimal:ppc64el (3.13.1-2) ... 106s Setting up python3.13-minimal (3.13.1-2) ... 107s (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 ... 74345 files and directories currently installed.) 107s Preparing to unpack .../python3-minimal_3.13.1-1~exp2_ppc64el.deb ... 107s Unpacking python3-minimal (3.13.1-1~exp2) over (3.12.8-1) ... 107s Setting up python3-minimal (3.13.1-1~exp2) ... 107s (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 ... 74345 files and directories currently installed.) 107s Preparing to unpack .../python3_3.13.1-1~exp2_ppc64el.deb ... 107s Unpacking python3 (3.13.1-1~exp2) over (3.12.8-1) ... 107s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 107s Preparing to unpack .../libpython3.13-stdlib_3.13.1-2_ppc64el.deb ... 107s Unpacking libpython3.13-stdlib:ppc64el (3.13.1-2) ... 108s Selecting previously unselected package python3.13. 108s Preparing to unpack .../python3.13_3.13.1-2_ppc64el.deb ... 108s Unpacking python3.13 (3.13.1-2) ... 108s Preparing to unpack .../libpython3-stdlib_3.13.1-1~exp2_ppc64el.deb ... 108s Unpacking libpython3-stdlib:ppc64el (3.13.1-1~exp2) over (3.12.8-1) ... 108s Setting up libpython3.13-stdlib:ppc64el (3.13.1-2) ... 108s Setting up libpython3-stdlib:ppc64el (3.13.1-1~exp2) ... 108s Setting up python3.13 (3.13.1-2) ... 109s Setting up python3 (3.13.1-1~exp2) ... 109s /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. 109s for fn in glob1(directory, "%s.*" % fname): 109s Processing triggers for man-db (2.13.0-1) ... 110s Processing triggers for systemd (257-2ubuntu1) ... 110s Reading package lists... 111s Building dependency tree... 111s Reading state information... 111s Starting pkgProblemResolver with broken count: 0 111s Starting 2 pkgProblemResolver with broken count: 0 111s Done 111s The following packages will be REMOVED: 111s python3.12* python3.12-minimal* 112s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 112s After this operation, 9889 kB disk space will be freed. 112s (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 ... 74762 files and directories currently installed.) 112s Removing python3.12 (3.12.8-3) ... 112s Removing python3.12-minimal (3.12.8-3) ... 112s /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. 112s for fn in glob1(directory, "%s.%s.py[co]" % (fname, magic_tag)): 113s Processing triggers for man-db (2.13.0-1) ... 113s Processing triggers for systemd (257-2ubuntu1) ... 113s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 74734 files and directories currently installed.) 113s Purging configuration files for python3.12-minimal (3.12.8-3) ... 116s autopkgtest [14:59:44]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 116s autopkgtest [14:59:44]: @@@@@@@@@@@@@@@@@@@@ apt-source bottleneck 118s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.3.8+ds1-1build1 (dsc) [2386 B] 118s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.3.8+ds1-1build1 (tar) [76.3 kB] 118s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.3.8+ds1-1build1 (diff) [6096 B] 118s gpgv: Signature made Wed Nov 13 09:04:27 2024 UTC 118s gpgv: using RSA key 568BF22A66337CBFC9A6B9B72C83DBC8E9BD0E37 118s gpgv: Can't check signature: No public key 118s dpkg-source: warning: cannot verify inline signature for ./bottleneck_1.3.8+ds1-1build1.dsc: no acceptable signature found 118s autopkgtest [14:59:46]: testing package bottleneck version 1.3.8+ds1-1build1 119s autopkgtest [14:59:47]: build not needed 119s autopkgtest [14:59:47]: test command1: preparing testbed 119s Reading package lists... 119s Building dependency tree... 119s Reading state information... 120s Starting pkgProblemResolver with broken count: 0 120s Starting 2 pkgProblemResolver with broken count: 0 120s Done 120s The following NEW packages will be installed: 120s libblas3 libgfortran5 liblapack3 python3-all python3-bottleneck 120s python3-iniconfig python3-numpy python3-packaging python3-pluggy 120s python3-pytest python3.12 python3.12-minimal 120s 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. 120s Need to get 12.1 MB of archives. 120s After this operation, 59.2 MB of additional disk space will be used. 120s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12-minimal ppc64el 3.12.8-3 [2465 kB] 121s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12 ppc64el 3.12.8-3 [667 kB] 121s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libblas3 ppc64el 3.12.0-4 [222 kB] 121s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgfortran5 ppc64el 14.2.0-12ubuntu1 [571 kB] 121s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblapack3 ppc64el 3.12.0-4 [2814 kB] 121s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-all ppc64el 3.13.1-1~exp2 [896 B] 121s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-numpy ppc64el 1:1.26.4+ds-12 [4917 kB] 121s Get:8 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-bottleneck ppc64el 1.3.8+ds1-1build1 [97.4 kB] 121s Get:9 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 121s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 121s Get:11 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 121s Get:12 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 121s Fetched 12.1 MB in 1s (12.6 MB/s) 121s Selecting previously unselected package python3.12-minimal. 121s (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 ... 74734 files and directories currently installed.) 121s Preparing to unpack .../00-python3.12-minimal_3.12.8-3_ppc64el.deb ... 121s Unpacking python3.12-minimal (3.12.8-3) ... 121s Selecting previously unselected package python3.12. 121s Preparing to unpack .../01-python3.12_3.12.8-3_ppc64el.deb ... 121s Unpacking python3.12 (3.12.8-3) ... 121s Selecting previously unselected package libblas3:ppc64el. 121s Preparing to unpack .../02-libblas3_3.12.0-4_ppc64el.deb ... 121s Unpacking libblas3:ppc64el (3.12.0-4) ... 121s Selecting previously unselected package libgfortran5:ppc64el. 121s Preparing to unpack .../03-libgfortran5_14.2.0-12ubuntu1_ppc64el.deb ... 121s Unpacking libgfortran5:ppc64el (14.2.0-12ubuntu1) ... 122s Selecting previously unselected package liblapack3:ppc64el. 122s Preparing to unpack .../04-liblapack3_3.12.0-4_ppc64el.deb ... 122s Unpacking liblapack3:ppc64el (3.12.0-4) ... 122s Selecting previously unselected package python3-all. 122s Preparing to unpack .../05-python3-all_3.13.1-1~exp2_ppc64el.deb ... 122s Unpacking python3-all (3.13.1-1~exp2) ... 122s Selecting previously unselected package python3-numpy. 122s Preparing to unpack .../06-python3-numpy_1%3a1.26.4+ds-12_ppc64el.deb ... 122s Unpacking python3-numpy (1:1.26.4+ds-12) ... 122s Selecting previously unselected package python3-bottleneck. 122s Preparing to unpack .../07-python3-bottleneck_1.3.8+ds1-1build1_ppc64el.deb ... 122s Unpacking python3-bottleneck (1.3.8+ds1-1build1) ... 122s Selecting previously unselected package python3-iniconfig. 122s Preparing to unpack .../08-python3-iniconfig_1.1.1-2_all.deb ... 122s Unpacking python3-iniconfig (1.1.1-2) ... 122s Selecting previously unselected package python3-packaging. 122s Preparing to unpack .../09-python3-packaging_24.2-1_all.deb ... 122s Unpacking python3-packaging (24.2-1) ... 122s Selecting previously unselected package python3-pluggy. 122s Preparing to unpack .../10-python3-pluggy_1.5.0-1_all.deb ... 122s Unpacking python3-pluggy (1.5.0-1) ... 122s Selecting previously unselected package python3-pytest. 122s Preparing to unpack .../11-python3-pytest_8.3.3-1_all.deb ... 122s Unpacking python3-pytest (8.3.3-1) ... 122s Setting up python3-iniconfig (1.1.1-2) ... 122s Setting up python3.12-minimal (3.12.8-3) ... 124s Setting up python3.12 (3.12.8-3) ... 126s Setting up python3-all (3.13.1-1~exp2) ... 126s Setting up libblas3:ppc64el (3.12.0-4) ... 126s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/blas/libblas.so.3 to provide /usr/lib/powerpc64le-linux-gnu/libblas.so.3 (libblas.so.3-powerpc64le-linux-gnu) in auto mode 126s Setting up python3-packaging (24.2-1) ... 126s Setting up libgfortran5:ppc64el (14.2.0-12ubuntu1) ... 126s Setting up python3-pluggy (1.5.0-1) ... 126s Setting up liblapack3:ppc64el (3.12.0-4) ... 126s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/powerpc64le-linux-gnu/liblapack.so.3 (liblapack.so.3-powerpc64le-linux-gnu) in auto mode 126s Setting up python3-pytest (8.3.3-1) ... 127s Setting up python3-numpy (1:1.26.4+ds-12) ... 131s Setting up python3-bottleneck (1.3.8+ds1-1build1) ... 131s Processing triggers for systemd (257-2ubuntu1) ... 132s Processing triggers for man-db (2.13.0-1) ... 132s Processing triggers for libc-bin (2.40-4ubuntu1) ... 133s autopkgtest [15:00:01]: 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 133s autopkgtest [15:00:01]: test command1: [----------------------- 133s Testing with python3.12: 134s ============================= test session starts ============================== 134s platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0 134s rootdir: /tmp/autopkgtest.ajdPqJ/autopkgtest_tmp 134s plugins: typeguard-4.4.1 134s collected 192 items 134s 135s tests/input_modification_test.py ............................. [ 15%] 135s tests/list_input_test.py ............................. [ 30%] 135s tests/memory_test.py . [ 30%] 187s tests/move_test.py ................................. [ 47%] 187s tests/nonreduce_axis_test.py .................... [ 58%] 188s tests/nonreduce_test.py .......... [ 63%] 195s tests/reduce_test.py ................................................... [ 90%] 195s [ 90%] 195s tests/scalar_input_test.py .................. [ 99%] 195s tests/test_template.py F [100%] 195s 195s =================================== FAILURES =================================== 195s ______________________________ test_make_c_files _______________________________ 195s 195s def test_make_c_files() -> None: 195s dirpath = os.path.join(os.path.dirname(__file__), "data/template_test/") 195s modules = ["test"] 195s test_input = os.path.join(dirpath, "test.c") 195s if os.path.exists(test_input): 195s os.remove(test_input) 195s 195s > make_c_files(dirpath=dirpath, modules=modules) 195s 195s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 195s modules = ['test'] 195s test_input = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 195s 195s /usr/lib/python3/dist-packages/bottleneck/tests/test_template.py:14: 195s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 195s 195s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 195s modules = ['test'] 195s 195s def make_c_files( 195s dirpath: Optional[str] = None, modules: Optional[List[str]] = None 195s ) -> None: 195s if modules is None: 195s modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] 195s if dirpath is None: 195s dirpath = os.path.dirname(__file__) 195s for module in modules: 195s template_file = os.path.join(dirpath, module + "_template.c") 195s posix_template = path.relpath(path.join(dirpath, module + "_template.c")) 195s target_file = os.path.join(dirpath, module + ".c") 195s 195s if ( 195s os.path.exists(target_file) 195s and os.stat(template_file).st_mtime < os.stat(target_file).st_mtime 195s ): 195s continue 195s 195s with open(template_file, "r") as f: 195s src_str = f.read() 195s src_str = '#line 1 "{}"\n'.format(posix_template) + template(src_str) 195s if len(src_str) and src_str[-1] != "\n": 195s src_str += "\n" 195s > with open(target_file, "w") as f: 195s E PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 195s 195s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 195s f = <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' mode='r' encoding='UTF-8'> 195s module = 'test' 195s modules = ['test'] 195s posix_template = '../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 195s 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' 195s target_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 195s template_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 195s 195s /usr/lib/python3/dist-packages/bottleneck/src/bn_template.py:31: PermissionError 195s =========================== short test summary info ============================ 195s FAILED tests/test_template.py::test_make_c_files - PermissionError: [Errno 13... 195s =================== 1 failed, 191 passed in 60.70s (0:01:00) =================== 195s Testing with python3.13: 195s ============================= test session starts ============================== 195s platform linux -- Python 3.13.1, pytest-8.3.3, pluggy-1.5.0 195s rootdir: /tmp/autopkgtest.ajdPqJ/autopkgtest_tmp 195s plugins: typeguard-4.4.1 195s collected 192 items 195s 196s tests/input_modification_test.py ............................. [ 15%] 196s tests/list_input_test.py ............................. [ 30%] 196s tests/memory_test.py . [ 30%] 243s tests/move_test.py ................................. [ 47%] 246s tests/nonreduce_axis_test.py .................... [ 58%] 247s tests/nonreduce_test.py .......... [ 63%] 253s tests/reduce_test.py ................................................... [ 90%] 253s [ 90%] 253s tests/scalar_input_test.py .................. [ 99%] 253s tests/test_template.py F [100%] 253s 253s =================================== FAILURES =================================== 253s ______________________________ test_make_c_files _______________________________ 253s 253s def test_make_c_files() -> None: 253s dirpath = os.path.join(os.path.dirname(__file__), "data/template_test/") 253s modules = ["test"] 253s test_input = os.path.join(dirpath, "test.c") 253s if os.path.exists(test_input): 253s os.remove(test_input) 253s 253s > make_c_files(dirpath=dirpath, modules=modules) 253s 253s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 253s modules = ['test'] 253s test_input = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 253s 253s /usr/lib/python3/dist-packages/bottleneck/tests/test_template.py:14: 253s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 253s 253s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 253s modules = ['test'] 253s 253s def make_c_files( 253s dirpath: Optional[str] = None, modules: Optional[List[str]] = None 253s ) -> None: 253s if modules is None: 253s modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] 253s if dirpath is None: 253s dirpath = os.path.dirname(__file__) 253s for module in modules: 253s template_file = os.path.join(dirpath, module + "_template.c") 253s posix_template = path.relpath(path.join(dirpath, module + "_template.c")) 253s target_file = os.path.join(dirpath, module + ".c") 253s 253s if ( 253s os.path.exists(target_file) 253s and os.stat(template_file).st_mtime < os.stat(target_file).st_mtime 253s ): 253s continue 253s 253s with open(template_file, "r") as f: 253s src_str = f.read() 253s src_str = '#line 1 "{}"\n'.format(posix_template) + template(src_str) 253s if len(src_str) and src_str[-1] != "\n": 253s src_str += "\n" 253s > with open(target_file, "w") as f: 253s E PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 253s 253s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 253s f = <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' mode='r' encoding='UTF-8'> 253s module = 'test' 253s modules = ['test'] 253s posix_template = '../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 253s 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' 253s target_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 253s template_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 253s 253s /usr/lib/python3/dist-packages/bottleneck/src/bn_template.py:31: PermissionError 253s =========================== short test summary info ============================ 253s FAILED tests/test_template.py::test_make_c_files - PermissionError: [Errno 13... 253s ======================== 1 failed, 191 passed in 58.32s ======================== 254s autopkgtest [15:02:02]: test command1: -----------------------] 254s command1 PASS 254s autopkgtest [15:02:02]: test command1: - - - - - - - - - - results - - - - - - - - - - 254s autopkgtest [15:02:02]: @@@@@@@@@@@@@@@@@@@@ summary 254s command1 PASS 272s nova [W] Using flock in prodstack6-ppc64el 272s Creating nova instance adt-plucky-ppc64el-bottleneck-20250103-145748-juju-7f2275-prod-proposed-migration-environment-15-98669297-d888-4d5f-b6a3-eed4c92ef5d4 from image adt/ubuntu-plucky-ppc64el-server-20250103.img (UUID f20efbba-1df4-424c-8de8-0f24e2643aa4)... 272s nova [W] Timed out waiting for 6653dcc1-43af-4a5c-a5b8-d678899c6621 to get deleted.