0s autopkgtest [17:25:16]: starting date and time: 2026-01-22 17:25:16+0000 0s autopkgtest [17:25:16]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [17:25:16]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.v3aau7g6/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade python-memory-profiler --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-arm64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-arm64-20.secgroup --name adt-resolute-arm64-python-memory-profiler-20260122-172515-juju-7f2275-prod-proposed-migration-environment-15-54e412d3-fcdf-4b89-a1dd-be39b4790a00 --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-arm64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-arm64-python-memory-profiler-20260122-172515-juju-7f2275-prod-proposed-migration-environment-15-54e412d3-fcdf-4b89-a1dd-be39b4790a00 from image adt/ubuntu-resolute-arm64-server-20260122.img (UUID ed27afc7-5f46-4e8b-ad73-864280a0ddbb)... 80s autopkgtest [17:26:36]: testbed dpkg architecture: arm64 80s autopkgtest [17:26:36]: testbed apt version: 3.1.12 80s autopkgtest [17:26:36]: @@@@@@@@@@@@@@@@@@@@ test bed setup 80s autopkgtest [17:26:36]: testbed release detected to be: None 81s autopkgtest [17:26:37]: updating testbed package index (apt update) 81s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 81s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 81s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 81s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 81s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 81s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [80.9 kB] 81s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [19.2 kB] 82s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [815 kB] 83s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [103 kB] 83s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [3316 B] 83s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [7876 B] 83s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [120 B] 83s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [639 kB] 84s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [16.2 kB] 84s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [4636 B] 84s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [460 B] 87s Fetched 1818 kB in 3s (626 kB/s) 87s Reading package lists... 88s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 88s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 88s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 88s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 89s Reading package lists... 89s Reading package lists... 89s Building dependency tree... 89s Reading state information... 89s Calculating upgrade... 90s The following packages were automatically installed and are no longer required: 90s python3.13 python3.13-minimal 90s Use 'sudo apt autoremove' to remove them. 90s The following NEW packages will be installed: 90s libpython3.14-minimal libpython3.14-stdlib python3.14 python3.14-minimal 90s The following packages will be upgraded: 90s libpython3-stdlib python3 python3-gdbm python3-minimal 90s 4 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 90s Need to get 6705 kB of archives. 90s After this operation, 26.0 MB of additional disk space will be used. 90s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-minimal arm64 3.14.2-1 [917 kB] 91s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14-minimal arm64 3.14.2-1 [2548 kB] 94s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-gdbm arm64 3.14.2-1 [11.1 kB] 94s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.14.2-1 [28.2 kB] 94s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.14.2-1 [22.9 kB] 95s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-stdlib arm64 3.14.2-1 [2351 kB] 98s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14 arm64 3.14.2-1 [816 kB] 99s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.14.2-1 [10.9 kB] 99s dpkg-preconfigure: unable to re-open stdin: No such file or directory 99s Fetched 6705 kB in 9s (774 kB/s) 99s Selecting previously unselected package libpython3.14-minimal:arm64. 99s (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 ... 135223 files and directories currently installed.) 99s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_arm64.deb ... 99s Unpacking libpython3.14-minimal:arm64 (3.14.2-1) ... 99s Selecting previously unselected package python3.14-minimal. 99s Preparing to unpack .../python3.14-minimal_3.14.2-1_arm64.deb ... 99s Unpacking python3.14-minimal (3.14.2-1) ... 99s Preparing to unpack .../python3-gdbm_3.14.2-1_arm64.deb ... 99s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-1) ... 100s Setting up libpython3.14-minimal:arm64 (3.14.2-1) ... 100s Setting up python3.14-minimal (3.14.2-1) ... 101s (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 ... 135565 files and directories currently installed.) 101s Preparing to unpack .../python3-minimal_3.14.2-1_arm64.deb ... 101s Unpacking python3-minimal (3.14.2-1) over (3.13.7-1) ... 101s Setting up python3-minimal (3.14.2-1) ... 101s (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 ... 135565 files and directories currently installed.) 101s Preparing to unpack .../python3_3.14.2-1_arm64.deb ... 101s running python pre-rtupdate hooks for python3.14... 101s Unpacking python3 (3.14.2-1) over (3.13.7-1) ... 101s Selecting previously unselected package libpython3.14-stdlib:arm64. 101s Preparing to unpack .../libpython3.14-stdlib_3.14.2-1_arm64.deb ... 101s Unpacking libpython3.14-stdlib:arm64 (3.14.2-1) ... 102s Selecting previously unselected package python3.14. 102s Preparing to unpack .../python3.14_3.14.2-1_arm64.deb ... 102s Unpacking python3.14 (3.14.2-1) ... 102s Preparing to unpack .../libpython3-stdlib_3.14.2-1_arm64.deb ... 102s Unpacking libpython3-stdlib:arm64 (3.14.2-1) over (3.13.7-1) ... 102s Setting up libpython3.14-stdlib:arm64 (3.14.2-1) ... 102s Setting up python3.14 (3.14.2-1) ... 103s Setting up libpython3-stdlib:arm64 (3.14.2-1) ... 103s Setting up python3-gdbm (3.14.2-1) ... 103s Setting up python3 (3.14.2-1) ... 103s running python rtupdate hooks for python3.14... 103s running python post-rtupdate hooks for python3.14... 103s Processing triggers for man-db (2.13.1-1) ... 104s Processing triggers for systemd (259-1ubuntu2) ... 104s autopkgtest [17:27:00]: upgrading testbed (apt dist-upgrade and autopurge) 104s Reading package lists... 104s Building dependency tree... 104s Reading state information... 105s Calculating upgrade... 105s The following packages were automatically installed and are no longer required: 105s python3.13 python3.13-minimal 105s Use 'sudo apt autoremove' to remove them. 105s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 105s Reading package lists... 106s Building dependency tree... 106s Reading state information... 106s Solving dependencies... 106s The following packages will be REMOVED: 106s python3.13* python3.13-minimal* 107s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 107s After this operation, 7766 kB disk space will be freed. 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 ... 135995 files and directories currently installed.) 107s Removing python3.13 (3.13.11-1) ... 107s Removing python3.13-minimal (3.13.11-1) ... 107s Processing triggers for man-db (2.13.1-1) ... 108s Processing triggers for systemd (259-1ubuntu2) ... 108s (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 ... 135968 files and directories currently installed.) 108s Purging configuration files for python3.13-minimal (3.13.11-1) ... 110s autopkgtest [17:27:06]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:41:39 UTC 2026 111s autopkgtest [17:27:07]: @@@@@@@@@@@@@@@@@@@@ apt-source python-memory-profiler 113s Get:1 http://ftpmaster.internal/ubuntu resolute/universe python-memory-profiler 0.61-2 (dsc) [2268 B] 113s Get:2 http://ftpmaster.internal/ubuntu resolute/universe python-memory-profiler 0.61-2 (tar) [145 kB] 113s Get:3 http://ftpmaster.internal/ubuntu resolute/universe python-memory-profiler 0.61-2 (diff) [4752 B] 113s gpgv: Signature made Sat Dec 7 20:26:18 2024 UTC 113s gpgv: using RSA key AB6B1DBEB0342F27571DED6AB26614B452F446B6 113s gpgv: issuer "mitya57@debian.org" 113s gpgv: Can't check signature: No public key 113s dpkg-source: warning: cannot verify inline signature for ./python-memory-profiler_0.61-2.dsc: no acceptable signature found 113s autopkgtest [17:27:09]: testing package python-memory-profiler version 0.61-2 114s autopkgtest [17:27:10]: build not needed 114s autopkgtest [17:27:10]: test command1: preparing testbed 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Solving dependencies... 115s The following NEW packages will be installed: 115s python3-all python3-memory-profiler python3-psutil python3.13 115s python3.13-minimal 116s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 116s Need to get 3335 kB of archives. 116s After this operation, 9138 kB of additional disk space will be used. 116s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.13-minimal arm64 3.13.11-1 [2346 kB] 119s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.13 arm64 3.13.11-1 [758 kB] 120s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-all arm64 3.14.2-1 [888 B] 120s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-psutil arm64 7.1.0-1ubuntu1 [191 kB] 120s Get:5 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-memory-profiler all 0.61-2 [39.7 kB] 121s Fetched 3335 kB in 5s (688 kB/s) 121s Selecting previously unselected package python3.13-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 ... 135970 files and directories currently installed.) 121s Preparing to unpack .../python3.13-minimal_3.13.11-1_arm64.deb ... 121s Unpacking python3.13-minimal (3.13.11-1) ... 121s Selecting previously unselected package python3.13. 121s Preparing to unpack .../python3.13_3.13.11-1_arm64.deb ... 121s Unpacking python3.13 (3.13.11-1) ... 121s Selecting previously unselected package python3-all. 121s Preparing to unpack .../python3-all_3.14.2-1_arm64.deb ... 121s Unpacking python3-all (3.14.2-1) ... 121s Selecting previously unselected package python3-psutil. 121s Preparing to unpack .../python3-psutil_7.1.0-1ubuntu1_arm64.deb ... 121s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 121s Selecting previously unselected package python3-memory-profiler. 121s Preparing to unpack .../python3-memory-profiler_0.61-2_all.deb ... 121s Unpacking python3-memory-profiler (0.61-2) ... 121s Setting up python3-psutil (7.1.0-1ubuntu1) ... 122s Setting up python3.13-minimal (3.13.11-1) ... 122s Setting up python3-memory-profiler (0.61-2) ... 123s Setting up python3.13 (3.13.11-1) ... 124s Setting up python3-all (3.14.2-1) ... 124s Processing triggers for man-db (2.13.1-1) ... 124s Processing triggers for systemd (259-1ubuntu2) ... 125s autopkgtest [17:27:21]: test command1: set -e ; cp -r test/ Makefile "$AUTOPKGTEST_TMP" ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; PYTHON=$py make test ; done 125s autopkgtest [17:27:21]: test command1: [----------------------- 125s Testing with python3.13: 125s python3.13 -m memory_profiler test/test_func.py 126s Filename: test/test_func.py 126s 126s Line # Mem usage Increment Occurrences Line Contents 126s ============================================================= 126s 2 21.422 MiB 21.422 MiB 2 @profile 126s 3 def test_1(i): 126s 4 # .. will be called twice .. 126s 5 21.422 MiB 0.000 MiB 2 c = {} 126s 6 22.262 MiB 0.000 MiB 10012 for i in range(i): 126s 7 22.262 MiB 0.840 MiB 10010 c[i] = 2 126s 126s 126s python3.13 -m memory_profiler test/test_loop.py 128s Filename: test/test_loop.py 128s 128s Line # Mem usage Increment Occurrences Line Contents 128s ============================================================= 128s 11 22.285 MiB 22.285 MiB 1 @profile 128s 12 def test_2(): 128s 13 29.918 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 128s 14 182.508 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 128s 15 29.918 MiB -152.590 MiB 1 del b 128s 16 128s 17 29.918 MiB -0.262 MiB 3 for i in range(2): 128s 18 29.918 MiB -0.262 MiB 2 a = [1] * (10 ** 6) 128s 19 182.508 MiB 304.918 MiB 2 b = [2] * (2 * 10 ** 7) 128s 20 29.918 MiB -305.441 MiB 2 del b 128s 21 29.656 MiB -0.262 MiB 1 return a 128s 128s 128s python3.13 -m memory_profiler test/test_mprofile.py 131s Filename: test/test_mprofile.py 131s 131s Line # Mem usage Increment Occurrences Line Contents 131s ============================================================= 131s 5 21.461 MiB 21.461 MiB 1 @profile 131s 6 def test1(l): 131s 7 """test1 docstring""" 131s 8 22.230 MiB 0.770 MiB 1 a = [1] * l 131s 9 22.230 MiB 0.000 MiB 1 time.sleep(1) 131s 10 22.230 MiB 0.000 MiB 1 return a 131s 131s 131s Filename: test/test_mprofile.py 131s 131s Line # Mem usage Increment Occurrences Line Contents 131s ============================================================= 131s 12 21.465 MiB 21.465 MiB 1 @profile 131s 13 def test2(l): 131s 14 22.992 MiB 1.527 MiB 1 b = [1] * l 131s 15 22.992 MiB 0.000 MiB 1 time.sleep(1) 131s 16 22.992 MiB 0.000 MiB 1 return b 131s 131s 131s python3.13 -m memory_profiler test/test_as.py 131s Filename: test/test_as.py 131s 131s Line # Mem usage Increment Occurrences Line Contents 131s ============================================================= 131s 3 21.414 MiB 21.414 MiB 1 @profile 131s 4 def f(): 131s 5 21.414 MiB 0.000 MiB 1 o = math.sqrt(2013) 131s 6 21.414 MiB 0.000 MiB 1 return o 131s 131s 131s python3.13 -m memory_profiler test/test_global.py 131s python3.13 -m memory_profiler test/test_precision_command_line.py 134s Filename: test/test_precision_command_line.py 134s 134s Line # Mem usage Increment Occurrences Line Contents 134s ============================================================= 134s 11 21.457 MiB 21.457 MiB 1 @profile(precision=4) 134s 12 def test_1(): 134s 13 29.090 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 134s 14 181.680 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 134s 15 181.680 MiB 0.000 MiB 1 time.sleep(0.6) 134s 16 29.090 MiB -152.590 MiB 1 del b 134s 17 134s 18 29.090 MiB -0.027 MiB 3 for i in range(2): 134s 19 29.090 MiB -0.027 MiB 2 a = [1] * (10 ** 6) 134s 20 181.680 MiB 305.152 MiB 2 b = [2] * (2 * 10 ** 7) 134s 21 29.090 MiB -305.207 MiB 2 del b 134s 22 29.062 MiB -0.027 MiB 1 return a 134s 134s 134s Filename: test/test_precision_command_line.py 134s 134s Line # Mem usage Increment Occurrences Line Contents 134s ============================================================= 134s 24 29.066 MiB 29.066 MiB 1 @profile(precision=2) 134s 25 def test_2(): 134s 26 29.066 MiB 0.000 MiB 1 a = {} 134s 27 29.066 MiB 0.000 MiB 1 time.sleep(0.5) 134s 28 29.672 MiB 0.000 MiB 10001 for i in range(10000): 134s 29 29.672 MiB 0.605 MiB 10000 a[i] = i + 1 134s 30 29.672 MiB 0.000 MiB 1 time.sleep(0.6) 134s 31 29.672 MiB 0.000 MiB 1 return 134s 134s 134s python3.13 -m memory_profiler test/test_gen.py 134s Filename: test/test_gen.py 134s 134s Line # Mem usage Increment Occurrences Line Contents 134s ============================================================= 134s 2 21.547 MiB 21.547 MiB 1 @profile 134s 3 def my_func(): 134s 4 29.180 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 134s 5 181.770 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 134s 6 29.180 MiB -152.590 MiB 1 del b 134s 7 29.180 MiB 0.000 MiB 1 yield a 134s 134s 134s Filename: test/test_gen.py 134s 134s Line # Mem usage Increment Occurrences Line Contents 134s ============================================================= 134s 10 21.547 MiB 21.547 MiB 1 @profile 134s 11 def test_comprehension(): 134s 12 # Dict comprehension 134s 13 33.492 MiB 11.941 MiB 28 d_comp = dict((str(k*k), [v] * (1<<17)) 134s 14 33.492 MiB 0.004 MiB 14 for (v, k) in enumerate(range(99, 111))) 134s 15 134s 16 # List comprehension 134s 17 52.414 MiB 18.922 MiB 100 l_comp = [[i] * (i<<9) for i in range(99)] 134s 18 36.629 MiB -15.785 MiB 1 del l_comp 134s 19 36.629 MiB 0.000 MiB 1 del d_comp 134s 20 134s 21 36.629 MiB 0.000 MiB 4 def hh(x=1): 134s 22 # Set comprehension 134s 23 56.188 MiB 19.559 MiB 135 s_comp = set(('Z',) * (k<<13) for k in range(x, 19 + 2*x)) 134s 24 56.188 MiB 0.000 MiB 3 return s_comp 134s 25 134s 26 36.629 MiB 0.000 MiB 1 val = [range(1, 4), max(1, 4), 42 + len(hh())] 134s 27 56.188 MiB 0.000 MiB 1 val = hh() | hh(4) 134s 28 56.188 MiB 0.000 MiB 1 val.add(40) 134s 29 62.480 MiB 6.293 MiB 100 l1_comp = [[(1, i)] * (i<<9) for i in range(99)] 134s 30 81.297 MiB 18.816 MiB 100 l2_comp = [[(3, i)] * (i<<9) for i in range(99)] 134s 31 134s 32 81.297 MiB 0.000 MiB 1 return val 134s 134s 134s Filename: test/test_gen.py 134s 134s Line # Mem usage Increment Occurrences Line Contents 134s ============================================================= 134s 35 21.547 MiB 21.547 MiB 1 @profile 134s 36 def test_generator(): 134s 37 45.559 MiB 24.012 MiB 9 a_gen = ([42] * (1<<20) for __ in '123') 134s 38 45.559 MiB 0.000 MiB 1 huge_lst = list(a_gen) 134s 39 134s 40 45.559 MiB 0.000 MiB 1 b_gen = ([24] * (1<<20) for __ in '123') 134s 41 45.559 MiB 0.000 MiB 1 del b_gen 134s 42 21.547 MiB -24.012 MiB 1 del huge_lst 134s 43 134s 44 21.547 MiB 0.000 MiB 1 return a_gen 134s 134s 134s python3.13 -m memory_profiler test/test_unicode.py 134s Filename: test/test_unicode.py 134s 134s Line # Mem usage Increment Occurrences Line Contents 134s ============================================================= 134s 2 21.410 MiB 21.410 MiB 1 @profile 134s 3 def test_unicode(txt): 134s 4 # test when unicode is present 134s 5 21.410 MiB 0.000 MiB 1 txt = txt.replace (u"ی", u"ي") #Arabic Yah = ي 134s 6 21.410 MiB 0.000 MiB 1 return txt 134s 134s 134s python3.13 test/test_tracemalloc.py 141s python3.13 test/test_import.py 141s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_import.py 141s 141s Line # Mem usage Increment Occurrences Line Contents 141s ============================================================= 141s 4 20.5 MiB 20.5 MiB 1 @profile 141s 5 def my_func(): 141s 6 28.2 MiB 7.6 MiB 1 a = [1] * (10 ** 6) 141s 7 180.7 MiB 152.6 MiB 1 b = [2] * (2 * 10 ** 7) 141s 8 28.2 MiB -152.6 MiB 1 del b 141s 9 28.2 MiB 0.0 MiB 1 return a 141s 141s 141s python3.13 test/test_memory_usage.py 144s python3.13 test/test_precision_import.py 147s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_precision_import.py 147s 147s Line # Mem usage Increment Occurrences Line Contents 147s ============================================================= 147s 13 20.5547 MiB 20.5547 MiB 1 @profile(precision=4) 147s 14 def test_1(): 147s 15 28.1875 MiB 7.6328 MiB 1 a = [1] * (10 ** 6) 147s 16 180.7773 MiB 152.5898 MiB 1 b = [2] * (2 * 10 ** 7) 147s 17 180.7773 MiB 0.0000 MiB 1 time.sleep(0.6) 147s 18 28.1914 MiB -152.5859 MiB 1 del b 147s 19 147s 20 28.1953 MiB -0.0039 MiB 3 for i in range(2): 147s 21 28.1953 MiB -0.0078 MiB 2 a = [1] * (10 ** 6) 147s 22 180.7852 MiB 305.1719 MiB 2 b = [2] * (2 * 10 ** 7) 147s 23 28.1953 MiB -305.1875 MiB 2 del b 147s 24 28.1875 MiB -0.0078 MiB 1 return a 147s 147s 147s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_precision_import.py 147s 147s Line # Mem usage Increment Occurrences Line Contents 147s ============================================================= 147s 26 28.31250 MiB 28.31250 MiB 1 @profile(precision=5) 147s 27 def test_2(): 147s 28 28.31250 MiB 0.00000 MiB 1 a = {} 147s 29 28.31641 MiB 0.00391 MiB 1 time.sleep(0.5) 147s 30 28.92578 MiB 0.00391 MiB 10001 for i in range(10000): 147s 31 28.92578 MiB 0.60547 MiB 10000 a[i] = i + 1 147s 32 28.92578 MiB 0.00000 MiB 1 time.sleep(0.6) 147s 33 28.92578 MiB 0.00000 MiB 1 return 147s 147s 147s python3.13 test/test_exception.py 147s Success 147s python3.13 test/test_exit_code.py 147s Traceback (most recent call last): 147s File "", line 198, in _run_module_as_main 147s File "", line 88, in _run_code 147s File "/usr/lib/python3/dist-packages/memory_profiler.py", line 1348, in 147s exec_with_profiler(script_filename, prof, args.backend, script_args) 147s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 147s File "/usr/lib/python3/dist-packages/memory_profiler.py", line 1249, in exec_with_profiler 147s exec(compile(f.read(), filename, 'exec'), ns, ns) 147s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 147s File "/tmp/tmp2ggem9wx.py", line 1, in 147s raise RuntimeError('I am not working nicely') 147s RuntimeError: I am not working nicely 147s ERROR:mprof:Program resulted with a non-zero exit code: 1 148s ..Traceback (most recent call last): 148s File "", line 198, in _run_module_as_main 148s File "", line 88, in _run_code 148s File "/usr/lib/python3/dist-packages/memory_profiler.py", line 1348, in 148s exec_with_profiler(script_filename, prof, args.backend, script_args) 148s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 148s File "/usr/lib/python3/dist-packages/memory_profiler.py", line 1249, in exec_with_profiler 148s exec(compile(f.read(), filename, 'exec'), ns, ns) 148s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 148s File "/tmp/tmpzus2bhfu.py", line 1, in 148s raise RuntimeError('I am not working nicely') 148s RuntimeError: I am not working nicely 148s . 148s ---------------------------------------------------------------------- 148s Ran 3 tests in 0.861s 148s 148s OK 148s : Sampling memory every 0.1s 148s running new process 148s running as a Python program... 148s : Sampling memory every 0.1s 148s running new process 148s running as a Python program... 148s : Sampling memory every 0.1s 148s running new process 148s running as a Python program... 148s python3.13 test/test_mprof.py 148s python3.13 test/test_async.py 148s . 148s ---------------------------------------------------------------------- 148s Ran 1 test in 0.000s 148s 148s OK 148s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_async.py 148s 148s Line # Mem usage Increment Occurrences Line Contents 148s ============================================================= 148s 7 20.6 MiB 20.6 MiB 1 @profile 148s 8 async def my_func(): 148s 9 28.3 MiB 7.6 MiB 1 a = [1] * (10 ** 6) 148s 10 180.8 MiB 152.6 MiB 1 b = [2] * (2 * 10 ** 7) 148s 11 181.0 MiB 0.1 MiB 2 await asyncio.sleep(1e-2) 148s 12 28.4 MiB -152.6 MiB 1 del b 148s 148s 148s python3.13 -m mprof run test/test_func.py 148s mprof.py: Sampling memory every 0.1s 148s running new process 148s running as a Python program... 148s Testing with python3.14: 148s python3.14 -m memory_profiler test/test_func.py 148s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 148s if iscoroutinefunction(func): 149s Filename: test/test_func.py 149s 149s Line # Mem usage Increment Occurrences Line Contents 149s ============================================================= 149s 2 23.633 MiB 23.629 MiB 2 @profile 149s 3 def test_1(i): 149s 4 # .. will be called twice .. 149s 5 23.633 MiB 0.004 MiB 2 c = {} 149s 6 24.441 MiB 0.008 MiB 10012 for i in range(i): 149s 7 24.441 MiB 0.801 MiB 10010 c[i] = 2 149s 149s 149s python3.14 -m memory_profiler test/test_loop.py 149s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 149s if iscoroutinefunction(func): 152s Filename: test/test_loop.py 152s 152s Line # Mem usage Increment Occurrences Line Contents 152s ============================================================= 152s 11 24.449 MiB 24.449 MiB 1 @profile 152s 12 def test_2(): 152s 13 32.082 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 152s 14 184.672 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 152s 15 32.082 MiB -152.590 MiB 1 del b 152s 16 152s 17 32.082 MiB -0.262 MiB 3 for i in range(2): 152s 18 32.082 MiB -0.262 MiB 2 a = [1] * (10 ** 6) 152s 19 184.672 MiB 304.918 MiB 2 b = [2] * (2 * 10 ** 7) 152s 20 32.082 MiB -305.441 MiB 2 del b 152s 21 31.820 MiB -0.262 MiB 1 return a 152s 152s 152s python3.14 -m memory_profiler test/test_mprofile.py 152s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 152s if iscoroutinefunction(func): 154s Filename: test/test_mprofile.py 154s 154s Line # Mem usage Increment Occurrences Line Contents 154s ============================================================= 154s 5 23.699 MiB 23.699 MiB 1 @profile 154s 6 def test1(l): 154s 7 """test1 docstring""" 154s 8 24.469 MiB 0.770 MiB 1 a = [1] * l 154s 9 24.469 MiB 0.000 MiB 1 time.sleep(1) 154s 10 24.469 MiB 0.000 MiB 1 return a 154s 154s 154s Filename: test/test_mprofile.py 154s 154s Line # Mem usage Increment Occurrences Line Contents 154s ============================================================= 154s 12 23.703 MiB 23.703 MiB 1 @profile 154s 13 def test2(l): 154s 14 25.230 MiB 1.527 MiB 1 b = [1] * l 154s 15 25.230 MiB 0.000 MiB 1 time.sleep(1) 154s 16 25.230 MiB 0.000 MiB 1 return b 154s 154s 154s python3.14 -m memory_profiler test/test_as.py 154s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 154s if iscoroutinefunction(func): 154s Filename: test/test_as.py 154s 154s Line # Mem usage Increment Occurrences Line Contents 154s ============================================================= 154s 3 23.625 MiB 23.625 MiB 1 @profile 154s 4 def f(): 154s 5 23.629 MiB 0.004 MiB 1 o = math.sqrt(2013) 154s 6 23.629 MiB 0.000 MiB 1 return o 154s 154s 154s python3.14 -m memory_profiler test/test_global.py 154s python3.14 -m memory_profiler test/test_precision_command_line.py 154s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 154s if iscoroutinefunction(func): 157s Filename: test/test_precision_command_line.py 157s 157s Line # Mem usage Increment Occurrences Line Contents 157s ============================================================= 157s 11 23.648 MiB 23.648 MiB 1 @profile(precision=4) 157s 12 def test_1(): 157s 13 31.281 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 157s 14 183.871 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 157s 15 183.871 MiB 0.000 MiB 1 time.sleep(0.6) 157s 16 31.281 MiB -152.590 MiB 1 del b 157s 17 157s 18 31.281 MiB -0.051 MiB 3 for i in range(2): 157s 19 31.281 MiB -0.051 MiB 2 a = [1] * (10 ** 6) 157s 20 183.871 MiB 305.129 MiB 2 b = [2] * (2 * 10 ** 7) 157s 21 31.281 MiB -305.230 MiB 2 del b 157s 22 31.230 MiB -0.051 MiB 1 return a 157s 157s 157s Filename: test/test_precision_command_line.py 157s 157s Line # Mem usage Increment Occurrences Line Contents 157s ============================================================= 157s 24 31.230 MiB 31.230 MiB 1 @profile(precision=2) 157s 25 def test_2(): 157s 26 31.234 MiB 0.004 MiB 1 a = {} 157s 27 31.234 MiB 0.000 MiB 1 time.sleep(0.5) 157s 28 31.836 MiB 0.602 MiB 10001 for i in range(10000): 157s 29 31.836 MiB 0.000 MiB 10000 a[i] = i + 1 157s 30 31.836 MiB 0.000 MiB 1 time.sleep(0.6) 157s 31 31.836 MiB 0.000 MiB 1 return 157s 157s 157s python3.14 -m memory_profiler test/test_gen.py 157s Filename: test/test_gen.py 157s 157s Line # Mem usage Increment Occurrences Line Contents 157s ============================================================= 157s 2 23.719 MiB 23.719 MiB 1 @profile 157s 3 def my_func(): 157s 4 31.352 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 157s 5 183.941 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 157s 6 31.352 MiB -152.590 MiB 1 del b 157s 7 31.352 MiB 0.000 MiB 2 yield a 157s 157s 157s Filename: test/test_gen.py 157s 157s Line # Mem usage Increment Occurrences Line Contents 157s ============================================================= 157s 10 23.723 MiB 23.723 MiB 1 @profile 157s 11 def test_comprehension(): 157s 12 # Dict comprehension 157s 13 35.668 MiB 11.941 MiB 28 d_comp = dict((str(k*k), [v] * (1<<17)) 157s 14 35.668 MiB 0.004 MiB 14 for (v, k) in enumerate(range(99, 111))) 157s 15 157s 16 # List comprehension 157s 17 54.590 MiB 18.922 MiB 100 l_comp = [[i] * (i<<9) for i in range(99)] 157s 18 38.809 MiB -15.781 MiB 1 del l_comp 157s 19 38.809 MiB 0.000 MiB 1 del d_comp 157s 20 157s 21 38.812 MiB 0.004 MiB 4 def hh(x=1): 157s 22 # Set comprehension 157s 23 58.371 MiB 19.559 MiB 135 s_comp = set(('Z',) * (k<<13) for k in range(x, 19 + 2*x)) 157s 24 58.371 MiB 0.000 MiB 3 return s_comp 157s 25 157s 26 38.809 MiB 0.000 MiB 1 val = [range(1, 4), max(1, 4), 42 + len(hh())] 157s 27 58.371 MiB 0.000 MiB 1 val = hh() | hh(4) 157s 28 58.371 MiB 0.000 MiB 1 val.add(40) 157s 29 64.664 MiB 6.293 MiB 100 l1_comp = [[(1, i)] * (i<<9) for i in range(99)] 157s 30 83.488 MiB 18.824 MiB 100 l2_comp = [[(3, i)] * (i<<9) for i in range(99)] 157s 31 157s 32 83.488 MiB 0.000 MiB 1 return val 157s 157s 157s Filename: test/test_gen.py 157s 157s Line # Mem usage Increment Occurrences Line Contents 157s ============================================================= 157s 35 23.719 MiB 23.719 MiB 1 @profile 157s 36 def test_generator(): 157s 37 47.730 MiB 24.012 MiB 9 a_gen = ([42] * (1<<20) for __ in '123') 157s 38 47.730 MiB 0.000 MiB 1 huge_lst = list(a_gen) 157s 39 157s 40 47.734 MiB 0.004 MiB 1 b_gen = ([24] * (1<<20) for __ in '123') 157s 41 47.734 MiB 0.000 MiB 1 del b_gen 157s 42 23.723 MiB -24.012 MiB 1 del huge_lst 157s 43 157s 44 23.723 MiB 0.000 MiB 1 return a_gen 157s 157s 157s python3.14 -m memory_profiler test/test_unicode.py 157s Filename: test/test_unicode.py 157s 157s Line # Mem usage Increment Occurrences Line Contents 157s ============================================================= 157s 2 23.621 MiB 23.621 MiB 1 @profile 157s 3 def test_unicode(txt): 157s 4 # test when unicode is present 157s 5 23.621 MiB 0.000 MiB 1 txt = txt.replace (u"ی", u"ي") #Arabic Yah = ي 157s 6 23.625 MiB 0.004 MiB 1 return txt 157s 157s 157s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 157s if iscoroutinefunction(func): 157s /usr/lib/python3/dist-packages/memory_profiler.py:751: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead 157s if iscoroutinefunction(func): 157s python3.14 test/test_tracemalloc.py 165s python3.14 test/test_import.py 165s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_import.py 165s 165s Line # Mem usage Increment Occurrences Line Contents 165s ============================================================= 165s 4 23.0 MiB 23.0 MiB 1 @profile 165s 5 def my_func(): 165s 6 30.6 MiB 7.6 MiB 1 a = [1] * (10 ** 6) 165s 7 183.2 MiB 152.6 MiB 1 b = [2] * (2 * 10 ** 7) 165s 8 30.6 MiB -152.6 MiB 1 del b 165s 9 30.6 MiB 0.0 MiB 1 return a 165s 165s 165s python3.14 test/test_memory_usage.py 167s python3.14 test/test_precision_import.py 170s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_precision_import.py 170s 170s Line # Mem usage Increment Occurrences Line Contents 170s ============================================================= 170s 13 23.0234 MiB 23.0234 MiB 1 @profile(precision=4) 170s 14 def test_1(): 170s 15 30.6562 MiB 7.6328 MiB 1 a = [1] * (10 ** 6) 170s 16 183.2461 MiB 152.5898 MiB 1 b = [2] * (2 * 10 ** 7) 170s 17 183.2461 MiB 0.0000 MiB 1 time.sleep(0.6) 170s 18 30.6562 MiB -152.5898 MiB 1 del b 170s 19 170s 20 30.6562 MiB -0.0625 MiB 3 for i in range(2): 170s 21 30.6562 MiB -0.0625 MiB 2 a = [1] * (10 ** 6) 170s 22 183.2461 MiB 305.1172 MiB 2 b = [2] * (2 * 10 ** 7) 170s 23 30.6562 MiB -305.2422 MiB 2 del b 170s 24 30.5977 MiB -0.0586 MiB 1 return a 170s 170s 170s Filename: /tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_precision_import.py 170s 170s Line # Mem usage Increment Occurrences Line Contents 170s ============================================================= 170s 26 30.66406 MiB 30.66406 MiB 1 @profile(precision=5) 170s 27 def test_2(): 170s 28 30.66406 MiB 0.00000 MiB 1 a = {} 170s 29 30.66406 MiB 0.00000 MiB 1 time.sleep(0.5) 170s 30 31.26953 MiB 0.59766 MiB 10001 for i in range(10000): 170s 31 31.26953 MiB 0.00781 MiB 10000 a[i] = i + 1 170s 32 31.26953 MiB 0.00000 MiB 1 time.sleep(0.6) 170s 33 31.26953 MiB 0.00000 MiB 1 return 170s 170s 170s python3.14 test/test_exception.py 170s Traceback (most recent call last): 170s File "", line 1, in 170s from multiprocessing.forkserver import main; main(5, 7, ['__main__'], **{'sys_path': ['/tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test', '/usr/lib/python314.zip', '/usr/lib/python3.14', '/usr/lib/python3.14/lib-dynload', '/usr/local/lib/python3.14/dist-packages', '/usr/lib/python3/dist-packages'], 'main_path': '/tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_exception.py', 'authkey_r': 9}) 170s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/forkserver.py", line 217, in main 170s spawn.import_main_path(main_path) 170s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/spawn.py", line 307, in import_main_path 170s _fixup_main_from_path(main_path) 170s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/spawn.py", line 297, in _fixup_main_from_path 170s main_content = runpy.run_path(main_path, 170s run_name="__mp_main__") 170s File "", line 287, in run_path 170s File "", line 98, in _run_module_code 170s File "", line 88, in _run_code 170s File "/tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_exception.py", line 9, in 170s out = memory_usage((foo, tuple(), {}), timeout=1) 170s File "/usr/lib/python3/dist-packages/memory_profiler.py", line 372, in memory_usage 170s p.start() 170s ~~~~~~~^^ 170s File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start 170s self._popen = self._Popen(self) 170s ~~~~~~~~~~~^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/context.py", line 224, in _Popen 170s return _default_context.get_context().Process._Popen(process_obj) 170s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/context.py", line 300, in _Popen 170s return Popen(process_obj) 170s File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__ 170s super().__init__(process_obj) 170s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__ 170s self._launch(process_obj) 170s ~~~~~~~~~~~~^^^^^^^^^^^^^ 170s File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 42, in _launch 170s prep_data = spawn.get_preparation_data(process_obj._name) 170s File "/usr/lib/python3.14/multiprocessing/spawn.py", line 164, in get_preparation_data 170s _check_not_importing_main() 170s ~~~~~~~~~~~~~~~~~~~~~~~~~^^ 170s File "/usr/lib/python3.14/multiprocessing/spawn.py", line 140, in _check_not_importing_main 170s raise RuntimeError(''' 170s ...<16 lines>... 170s ''') 170s RuntimeError: 170s An attempt has been made to start a new process before the 170s current process has finished its bootstrapping phase. 170s 170s This probably means that you are not using fork to start your 170s child processes and you have forgotten to use the proper idiom 170s in the main module: 170s 170s if __name__ == '__main__': 170s freeze_support() 170s ... 170s 170s The "freeze_support()" line can be omitted if the program 170s is not going to be frozen to produce an executable. 170s 170s To fix this issue, refer to the "Safe importing of main module" 170s section in https://docs.python.org/3/library/multiprocessing.html 170s 171s Traceback (most recent call last): 171s File "/tmp/autopkgtest.mAdfBh/autopkgtest_tmp/test/test_exception.py", line 9, in 171s out = memory_usage((foo, tuple(), {}), timeout=1) 171s File "/usr/lib/python3/dist-packages/memory_profiler.py", line 372, in memory_usage 171s p.start() 171s ~~~~~~~^^ 171s File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start 171s self._popen = self._Popen(self) 171s ~~~~~~~~~~~^^^^^^ 171s File "/usr/lib/python3.14/multiprocessing/context.py", line 224, in _Popen 171s return _default_context.get_context().Process._Popen(process_obj) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/multiprocessing/context.py", line 300, in _Popen 171s return Popen(process_obj) 171s File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__ 171s super().__init__(process_obj) 171s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__ 171s self._launch(process_obj) 171s ~~~~~~~~~~~~^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 51, in _launch 171s self.sentinel, w = forkserver.connect_to_new_process(self._fds) 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 171s File "/usr/lib/python3.14/multiprocessing/forkserver.py", line 106, in connect_to_new_process 171s connection.answer_challenge( 171s ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 171s wrapped_client, self._forkserver_authkey) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3.14/multiprocessing/connection.py", line 970, in answer_challenge 171s message = connection.recv_bytes(256) # reject large message 171s File "/usr/lib/python3.14/multiprocessing/connection.py", line 222, in recv_bytes 171s buf = self._recv_bytes(maxlength) 171s File "/usr/lib/python3.14/multiprocessing/connection.py", line 447, in _recv_bytes 171s buf = self._recv(4) 171s File "/usr/lib/python3.14/multiprocessing/connection.py", line 412, in _recv 171s chunk = read(handle, to_read) 171s ConnectionResetError: [Errno 104] Connection reset by peer 171s make: *** [Makefile:18: test] Error 1 171s autopkgtest [17:28:07]: test command1: -----------------------] 172s autopkgtest [17:28:08]: test command1: - - - - - - - - - - results - - - - - - - - - - 172s command1 FAIL non-zero exit status 2 172s autopkgtest [17:28:08]: @@@@@@@@@@@@@@@@@@@@ summary 172s command1 FAIL non-zero exit status 2