0s autopkgtest [11:18:37]: starting date and time: 2025-02-19 11:18:37+0000 0s autopkgtest [11:18:37]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [11:18:37]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.jogqszqc/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:sphinx --apt-upgrade bottleneck --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=sphinx/8.1.3-5 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor builder-cpu2-ram4-disk20 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-32.secgroup --name adt-plucky-amd64-bottleneck-20250219-111837-juju-7f2275-prod-proposed-migration-environment-2-759d2608-c97b-4cb0-a2cd-60f25cf51206 --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-amd64 -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/ 142s autopkgtest [11:20:59]: testbed dpkg architecture: amd64 142s autopkgtest [11:20:59]: testbed apt version: 2.9.29 143s autopkgtest [11:21:00]: @@@@@@@@@@@@@@@@@@@@ test bed setup 143s autopkgtest [11:21:00]: testbed release detected to be: None 144s autopkgtest [11:21:01]: updating testbed package index (apt update) 144s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 144s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 144s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 144s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 144s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [13.9 kB] 144s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 144s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [750 kB] 145s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.1 kB] 145s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [81.8 kB] 145s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [101 kB] 145s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/restricted i386 Packages [2412 B] 145s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [7984 B] 145s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [265 kB] 145s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [697 kB] 145s Get:15 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [11.5 kB] 145s Get:16 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [3128 B] 145s Fetched 2124 kB in 1s (2232 kB/s) 146s Reading package lists... 147s Reading package lists... 147s Building dependency tree... 147s Reading state information... 147s Calculating upgrade... 148s The following NEW packages will be installed: 148s libapt-pkg7.0 148s The following packages will be upgraded: 148s apt apt-utils iproute2 liblsof0 libp11-kit0 lsof rsyslog 148s 7 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 148s Need to get 5234 kB of archives. 148s After this operation, 4074 kB of additional disk space will be used. 148s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 libapt-pkg7.0 amd64 2.9.30 [1131 kB] 148s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 apt amd64 2.9.30 [1434 kB] 149s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 apt-utils amd64 2.9.30 [222 kB] 149s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 iproute2 amd64 6.13.0-1ubuntu1 [1277 kB] 149s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 libp11-kit0 amd64 0.25.5-2ubuntu3 [311 kB] 149s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 rsyslog amd64 8.2412.0-2ubuntu1 [555 kB] 149s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 lsof amd64 4.99.4+dfsg-1 [245 kB] 149s Get:8 http://ftpmaster.internal/ubuntu plucky/main amd64 liblsof0 amd64 4.99.4+dfsg-1 [59.6 kB] 149s Preconfiguring packages ... 149s Fetched 5234 kB in 1s (5881 kB/s) 149s Selecting previously unselected package libapt-pkg7.0:amd64. 149s (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 ... 108925 files and directories currently installed.) 149s Preparing to unpack .../libapt-pkg7.0_2.9.30_amd64.deb ... 149s Unpacking libapt-pkg7.0:amd64 (2.9.30) ... 149s Setting up libapt-pkg7.0:amd64 (2.9.30) ... 149s (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 ... 108974 files and directories currently installed.) 149s Preparing to unpack .../archives/apt_2.9.30_amd64.deb ... 150s Unpacking apt (2.9.30) over (2.9.29) ... 150s Setting up apt (2.9.30) ... 150s (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 ... 108974 files and directories currently installed.) 150s Preparing to unpack .../0-apt-utils_2.9.30_amd64.deb ... 150s Unpacking apt-utils (2.9.30) over (2.9.29) ... 150s Preparing to unpack .../1-iproute2_6.13.0-1ubuntu1_amd64.deb ... 151s Unpacking iproute2 (6.13.0-1ubuntu1) over (6.10.0-2ubuntu1) ... 151s Preparing to unpack .../2-libp11-kit0_0.25.5-2ubuntu3_amd64.deb ... 151s Unpacking libp11-kit0:amd64 (0.25.5-2ubuntu3) over (0.25.5-2ubuntu2) ... 151s Preparing to unpack .../3-rsyslog_8.2412.0-2ubuntu1_amd64.deb ... 151s Unpacking rsyslog (8.2412.0-2ubuntu1) over (8.2412.0-1ubuntu1) ... 151s Preparing to unpack .../4-lsof_4.99.4+dfsg-1_amd64.deb ... 151s Unpacking lsof (4.99.4+dfsg-1) over (4.99.3+dfsg-2) ... 151s Preparing to unpack .../5-liblsof0_4.99.4+dfsg-1_amd64.deb ... 151s Unpacking liblsof0 (4.99.4+dfsg-1) over (4.99.3+dfsg-2) ... 151s Setting up apt-utils (2.9.30) ... 151s Setting up liblsof0 (4.99.4+dfsg-1) ... 151s Setting up iproute2 (6.13.0-1ubuntu1) ... 151s Setting up rsyslog (8.2412.0-2ubuntu1) ... 151s info: The user `syslog' is already a member of `adm'. 152s Setting up libp11-kit0:amd64 (0.25.5-2ubuntu3) ... 152s Setting up lsof (4.99.4+dfsg-1) ... 152s Processing triggers for man-db (2.13.0-1) ... 154s Processing triggers for libc-bin (2.40-4ubuntu1) ... 156s Reading package lists... 156s Building dependency tree... 156s Reading state information... 156s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 156s autopkgtest [11:21:13]: upgrading testbed (apt dist-upgrade and autopurge) 157s Reading package lists... 157s Building dependency tree... 157s Reading state information... 157s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 157s Starting 2 pkgProblemResolver with broken count: 0 157s Done 158s Entering ResolveByKeep 158s 158s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 159s Reading package lists... 159s Building dependency tree... 159s Reading state information... 159s Starting pkgProblemResolver with broken count: 0 159s Starting 2 pkgProblemResolver with broken count: 0 159s Done 160s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 160s autopkgtest [11:21:17]: rebooting testbed after setup commands that affected boot 184s autopkgtest [11:21:41]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 4 16:02:16 UTC 2025 186s autopkgtest [11:21:43]: @@@@@@@@@@@@@@@@@@@@ apt-source bottleneck 189s Get:1 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.4.2+ds1-2 (dsc) [2526 B] 189s Get:2 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.4.2+ds1-2 (tar) [76.7 kB] 189s Get:3 http://ftpmaster.internal/ubuntu plucky/universe bottleneck 1.4.2+ds1-2 (diff) [6148 B] 189s gpgv: Signature made Mon Jan 27 14:09:27 2025 UTC 189s gpgv: using RSA key 9B03EBB98300DF97C2B123BFCC8C6BDD1403F4CA 189s gpgv: issuer "roehling@debian.org" 189s gpgv: Can't check signature: No public key 189s dpkg-source: warning: cannot verify inline signature for ./bottleneck_1.4.2+ds1-2.dsc: no acceptable signature found 189s autopkgtest [11:21:46]: testing package bottleneck version 1.4.2+ds1-2 189s autopkgtest [11:21:46]: build not needed 190s autopkgtest [11:21:47]: test command1: preparing testbed 190s Reading package lists... 190s Building dependency tree... 190s Reading state information... 191s Starting pkgProblemResolver with broken count: 0 191s Starting 2 pkgProblemResolver with broken count: 0 191s Done 191s The following NEW packages will be installed: 191s libblas3 libgfortran5 liblapack3 python3-all python3-bottleneck 191s python3-iniconfig python3-numpy python3-packaging python3-pluggy 191s python3-pytest python3.12 python3.12-minimal 191s 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. 191s Need to get 13.2 MB of archives. 191s After this operation, 63.4 MB of additional disk space will be used. 191s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.12-minimal amd64 3.12.9-1 [2348 kB] 192s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.12 amd64 3.12.9-1 [671 kB] 192s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libblas3 amd64 3.12.1-2 [359 kB] 192s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 libgfortran5 amd64 15-20250213-1ubuntu1 [920 kB] 192s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 liblapack3 amd64 3.12.1-2 [3179 kB] 192s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-all amd64 3.13.1-1~exp2 [894 B] 192s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-numpy amd64 1:1.26.4+ds-13 [5319 kB] 192s Get:8 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-bottleneck amd64 1.4.2+ds1-2 [90.3 kB] 192s Get:9 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 192s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-packaging all 24.2-1 [51.5 kB] 192s Get:11 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 192s Get:12 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest all 8.3.4-1 [252 kB] 193s Fetched 13.2 MB in 1s (11.8 MB/s) 193s Selecting previously unselected package python3.12-minimal. 193s (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 ... 108975 files and directories currently installed.) 193s Preparing to unpack .../00-python3.12-minimal_3.12.9-1_amd64.deb ... 193s Unpacking python3.12-minimal (3.12.9-1) ... 193s Selecting previously unselected package python3.12. 193s Preparing to unpack .../01-python3.12_3.12.9-1_amd64.deb ... 193s Unpacking python3.12 (3.12.9-1) ... 193s Selecting previously unselected package libblas3:amd64. 193s Preparing to unpack .../02-libblas3_3.12.1-2_amd64.deb ... 193s Unpacking libblas3:amd64 (3.12.1-2) ... 193s Selecting previously unselected package libgfortran5:amd64. 193s Preparing to unpack .../03-libgfortran5_15-20250213-1ubuntu1_amd64.deb ... 193s Unpacking libgfortran5:amd64 (15-20250213-1ubuntu1) ... 193s Selecting previously unselected package liblapack3:amd64. 193s Preparing to unpack .../04-liblapack3_3.12.1-2_amd64.deb ... 193s Unpacking liblapack3:amd64 (3.12.1-2) ... 193s Selecting previously unselected package python3-all. 193s Preparing to unpack .../05-python3-all_3.13.1-1~exp2_amd64.deb ... 193s Unpacking python3-all (3.13.1-1~exp2) ... 193s Selecting previously unselected package python3-numpy. 193s Preparing to unpack .../06-python3-numpy_1%3a1.26.4+ds-13_amd64.deb ... 193s Unpacking python3-numpy (1:1.26.4+ds-13) ... 193s Selecting previously unselected package python3-bottleneck. 193s Preparing to unpack .../07-python3-bottleneck_1.4.2+ds1-2_amd64.deb ... 193s Unpacking python3-bottleneck (1.4.2+ds1-2) ... 193s Selecting previously unselected package python3-iniconfig. 194s Preparing to unpack .../08-python3-iniconfig_1.1.1-2_all.deb ... 194s Unpacking python3-iniconfig (1.1.1-2) ... 194s Selecting previously unselected package python3-packaging. 194s Preparing to unpack .../09-python3-packaging_24.2-1_all.deb ... 194s Unpacking python3-packaging (24.2-1) ... 194s Selecting previously unselected package python3-pluggy. 194s Preparing to unpack .../10-python3-pluggy_1.5.0-1_all.deb ... 194s Unpacking python3-pluggy (1.5.0-1) ... 194s Selecting previously unselected package python3-pytest. 194s Preparing to unpack .../11-python3-pytest_8.3.4-1_all.deb ... 194s Unpacking python3-pytest (8.3.4-1) ... 194s Setting up python3-iniconfig (1.1.1-2) ... 194s Setting up python3.12-minimal (3.12.9-1) ... 195s Setting up python3.12 (3.12.9-1) ... 196s Setting up python3-all (3.13.1-1~exp2) ... 196s Setting up libblas3:amd64 (3.12.1-2) ... 196s 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 196s Setting up python3-packaging (24.2-1) ... 196s Setting up libgfortran5:amd64 (15-20250213-1ubuntu1) ... 196s Setting up python3-pluggy (1.5.0-1) ... 196s Setting up liblapack3:amd64 (3.12.1-2) ... 196s 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 196s Setting up python3-pytest (8.3.4-1) ... 197s Setting up python3-numpy (1:1.26.4+ds-13) ... 201s Setting up python3-bottleneck (1.4.2+ds1-2) ... 201s Processing triggers for systemd (257.2-3ubuntu1) ... 201s Processing triggers for man-db (2.13.0-1) ... 201s Processing triggers for libc-bin (2.40-4ubuntu1) ... 203s autopkgtest [11:22:00]: 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 203s autopkgtest [11:22:00]: test command1: [----------------------- 203s Testing with python3.12: 203s ============================= test session starts ============================== 203s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 203s rootdir: /tmp/autopkgtest.9MnHVJ/autopkgtest_tmp 203s plugins: typeguard-4.4.1 203s collected 192 items 203s 204s tests/input_modification_test.py ............................. [ 15%] 204s tests/list_input_test.py ............................. [ 30%] 204s tests/memory_test.py . [ 30%] 239s tests/move_test.py ................................. [ 47%] 241s tests/nonreduce_axis_test.py .................... [ 58%] 242s tests/nonreduce_test.py .......... [ 63%] 247s tests/reduce_test.py ................................................... [ 90%] 247s [ 90%] 247s tests/scalar_input_test.py .................. [ 99%] 247s tests/test_template.py F [100%] 247s 247s =================================== FAILURES =================================== 247s ______________________________ test_make_c_files _______________________________ 247s 247s def test_make_c_files() -> None: 247s dirpath = os.path.join(os.path.dirname(__file__), "data/template_test/") 247s modules = ["test"] 247s test_input = os.path.join(dirpath, "test.c") 247s if os.path.exists(test_input): 247s os.remove(test_input) 247s 247s > make_c_files(dirpath=dirpath, modules=modules) 247s 247s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 247s modules = ['test'] 247s test_input = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 247s 247s /usr/lib/python3/dist-packages/bottleneck/tests/test_template.py:14: 247s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 247s 247s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 247s modules = ['test'] 247s 247s def make_c_files( 247s dirpath: Optional[str] = None, modules: Optional[List[str]] = None 247s ) -> None: 247s if modules is None: 247s modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] 247s if dirpath is None: 247s dirpath = os.path.dirname(__file__) 247s for module in modules: 247s template_file = os.path.join(dirpath, module + "_template.c") 247s posix_template = path.relpath(path.join(dirpath, module + "_template.c")) 247s target_file = os.path.join(dirpath, module + ".c") 247s 247s if ( 247s os.path.exists(target_file) 247s and os.stat(template_file).st_mtime < os.stat(target_file).st_mtime 247s ): 247s continue 247s 247s with open(template_file, "r") as f: 247s src_str = f.read() 247s src_str = '#line 1 "{}"\n'.format(posix_template) + template(src_str) 247s if len(src_str) and src_str[-1] != "\n": 247s src_str += "\n" 247s > with open(target_file, "w") as f: 247s E PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 247s 247s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 247s f = <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' mode='r' encoding='UTF-8'> 247s module = 'test' 247s modules = ['test'] 247s posix_template = '../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 247s 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' 247s target_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 247s template_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 247s 247s /usr/lib/python3/dist-packages/bottleneck/src/bn_template.py:31: PermissionError 247s =========================== short test summary info ============================ 247s FAILED tests/test_template.py::test_make_c_files - PermissionError: [Errno 13... 247s ======================== 1 failed, 191 passed in 43.90s ======================== 247s Testing with python3.13: 248s ============================= test session starts ============================== 248s platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 248s rootdir: /tmp/autopkgtest.9MnHVJ/autopkgtest_tmp 248s plugins: typeguard-4.4.1 248s collected 192 items 248s 248s tests/input_modification_test.py ............................. [ 15%] 248s tests/list_input_test.py ............................. [ 30%] 248s tests/memory_test.py . [ 30%] 284s tests/move_test.py ................................. [ 47%] 287s tests/nonreduce_axis_test.py .................... [ 58%] 288s tests/nonreduce_test.py .......... [ 63%] 294s tests/reduce_test.py ................................................... [ 90%] 294s [ 90%] 294s tests/scalar_input_test.py .................. [ 99%] 294s tests/test_template.py F [100%] 294s 294s =================================== FAILURES =================================== 294s ______________________________ test_make_c_files _______________________________ 294s 294s def test_make_c_files() -> None: 294s dirpath = os.path.join(os.path.dirname(__file__), "data/template_test/") 294s modules = ["test"] 294s test_input = os.path.join(dirpath, "test.c") 294s if os.path.exists(test_input): 294s os.remove(test_input) 294s 294s > make_c_files(dirpath=dirpath, modules=modules) 294s 294s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 294s modules = ['test'] 294s test_input = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 294s 294s /usr/lib/python3/dist-packages/bottleneck/tests/test_template.py:14: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 294s modules = ['test'] 294s 294s def make_c_files( 294s dirpath: Optional[str] = None, modules: Optional[List[str]] = None 294s ) -> None: 294s if modules is None: 294s modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] 294s if dirpath is None: 294s dirpath = os.path.dirname(__file__) 294s for module in modules: 294s template_file = os.path.join(dirpath, module + "_template.c") 294s posix_template = path.relpath(path.join(dirpath, module + "_template.c")) 294s target_file = os.path.join(dirpath, module + ".c") 294s 294s if ( 294s os.path.exists(target_file) 294s and os.stat(template_file).st_mtime < os.stat(target_file).st_mtime 294s ): 294s continue 294s 294s with open(template_file, "r") as f: 294s src_str = f.read() 294s src_str = '#line 1 "{}"\n'.format(posix_template) + template(src_str) 294s if len(src_str) and src_str[-1] != "\n": 294s src_str += "\n" 294s > with open(target_file, "w") as f: 294s E PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 294s 294s dirpath = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/' 294s f = <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' mode='r' encoding='UTF-8'> 294s module = 'test' 294s modules = ['test'] 294s posix_template = '../../../usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 294s 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' 294s target_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test.c' 294s template_file = '/usr/lib/python3/dist-packages/bottleneck/tests/data/template_test/test_template.c' 294s 294s /usr/lib/python3/dist-packages/bottleneck/src/bn_template.py:31: PermissionError 294s =========================== short test summary info ============================ 294s FAILED tests/test_template.py::test_make_c_files - PermissionError: [Errno 13... 294s ======================== 1 failed, 191 passed in 46.11s ======================== 294s autopkgtest [11:23:31]: test command1: -----------------------] 295s command1 PASS 295s autopkgtest [11:23:32]: test command1: - - - - - - - - - - results - - - - - - - - - - 296s autopkgtest [11:23:33]: @@@@@@@@@@@@@@@@@@@@ summary 296s command1 PASS 332s nova [W] Skipping flock for amd64 332s Creating nova instance adt-plucky-amd64-bottleneck-20250219-111837-juju-7f2275-prod-proposed-migration-environment-2-759d2608-c97b-4cb0-a2cd-60f25cf51206 from image adt/ubuntu-plucky-amd64-server-20250219.img (UUID 90711abf-916f-4a80-845a-825250a78697)... 332s nova [W] Timed out waiting for 236b4151-4280-4ce8-b2d4-a4a09823adca to get deleted.