0s autopkgtest [13:42:20]: starting date and time: 2025-11-17 13:42:20+0000 0s autopkgtest [13:42:20]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [13:42:20]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.8__phg67/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade importmagic --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-16.secgroup --name adt-resolute-arm64-importmagic-20251117-134220-juju-7f2275-prod-proposed-migration-environment-15-0eedec52-acea-49c5-8f83-dd23ddc1f801 --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-arm64-importmagic-20251117-134220-juju-7f2275-prod-proposed-migration-environment-15-0eedec52-acea-49c5-8f83-dd23ddc1f801 from image adt/ubuntu-resolute-arm64-server-20251117.img (UUID 1cd33fbb-18df-4c5a-b8f0-2dcb25269485)... 56s autopkgtest [13:43:16]: testbed dpkg architecture: arm64 56s autopkgtest [13:43:16]: testbed apt version: 3.1.11 57s autopkgtest [13:43:17]: @@@@@@@@@@@@@@@@@@@@ test bed setup 57s autopkgtest [13:43:17]: testbed release detected to be: None 58s autopkgtest [13:43:18]: updating testbed package index (apt update) 58s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 58s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 58s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 58s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 58s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 58s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 58s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 59s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 59s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [149 kB] 59s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [3084 B] 59s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [107 kB] 59s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [324 B] 59s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [577 kB] 59s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [17.8 kB] 59s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [12.5 kB] 59s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [576 B] 60s Fetched 1938 kB in 1s (1790 kB/s) 61s Reading package lists... 63s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 63s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 63s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 63s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 63s Reading package lists... 63s Reading package lists... 63s Building dependency tree... 63s Reading state information... 63s Calculating upgrade... 63s The following packages will be upgraded: 63s libpython3-stdlib python3 python3-minimal usbutils 63s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 63s Need to get 144 kB of archives. 63s After this operation, 0 B of additional disk space will be used. 63s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-minimal arm64 3.13.7-2 [27.8 kB] 64s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3 arm64 3.13.7-2 [23.9 kB] 64s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 libpython3-stdlib arm64 3.13.7-2 [10.6 kB] 64s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 usbutils arm64 1:019-1 [81.7 kB] 64s dpkg-preconfigure: unable to re-open stdin: No such file or directory 64s Fetched 144 kB in 0s (347 kB/s) 64s (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 ... 88137 files and directories currently installed.) 64s Preparing to unpack .../python3-minimal_3.13.7-2_arm64.deb ... 64s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 65s Setting up python3-minimal (3.13.7-2) ... 65s (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 ... 88137 files and directories currently installed.) 65s Preparing to unpack .../python3_3.13.7-2_arm64.deb ... 65s running python pre-rtupdate hooks for python3.13... 65s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 65s Preparing to unpack .../libpython3-stdlib_3.13.7-2_arm64.deb ... 65s Unpacking libpython3-stdlib:arm64 (3.13.7-2) over (3.13.7-1) ... 65s Preparing to unpack .../usbutils_1%3a019-1_arm64.deb ... 65s Unpacking usbutils (1:019-1) over (1:018-2) ... 65s Setting up usbutils (1:019-1) ... 65s Setting up libpython3-stdlib:arm64 (3.13.7-2) ... 65s Setting up python3 (3.13.7-2) ... 65s running python rtupdate hooks for python3.13... 65s running python post-rtupdate hooks for python3.13... 65s Processing triggers for man-db (2.13.1-1) ... 67s autopkgtest [13:43:27]: upgrading testbed (apt dist-upgrade and autopurge) 67s Reading package lists... 67s Building dependency tree... 67s Reading state information... 67s Calculating upgrade... 68s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 68s Reading package lists... 68s Building dependency tree... 68s Reading state information... 68s Solving dependencies... 69s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 71s autopkgtest [13:43:31]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 09:50:31 UTC 2025 72s autopkgtest [13:43:32]: @@@@@@@@@@@@@@@@@@@@ apt-source importmagic 74s Get:1 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (dsc) [2115 B] 74s Get:2 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (tar) [392 kB] 74s Get:3 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (diff) [4748 B] 74s gpgv: Signature made Fri Jan 10 15:30:49 2025 UTC 74s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 74s gpgv: issuer "tchet@debian.org" 74s gpgv: Can't check signature: No public key 74s dpkg-source: warning: cannot verify inline signature for ./importmagic_0.1.7-7.dsc: no acceptable signature found 74s autopkgtest [13:43:34]: testing package importmagic version 0.1.7-7 74s autopkgtest [13:43:34]: build not needed 75s autopkgtest [13:43:35]: test command1: preparing testbed 75s Reading package lists... 75s Building dependency tree... 75s Reading state information... 75s Solving dependencies... 76s The following NEW packages will be installed: 76s libpython3.14-minimal libpython3.14-stdlib python3-all python3-importmagic 76s python3-iniconfig python3-pluggy python3-pytest python3.14 76s python3.14-minimal 76s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 76s Need to get 6900 kB of archives. 76s After this operation, 27.5 MB of additional disk space will be used. 76s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-minimal arm64 3.14.0-4 [903 kB] 77s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14-minimal arm64 3.14.0-4 [2543 kB] 78s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-stdlib arm64 3.14.0-4 [2349 kB] 79s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14 arm64 3.14.0-4 [805 kB] 79s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3-all arm64 3.13.7-2 [890 B] 79s Get:6 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-importmagic all 0.1.7-7 [17.8 kB] 79s Get:7 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-iniconfig all 2.1.0-1 [6840 B] 79s Get:8 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pluggy all 1.6.0-1 [21.0 kB] 79s Get:9 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pytest all 8.3.5-2 [252 kB] 79s Fetched 6900 kB in 3s (2198 kB/s) 79s Selecting previously unselected package libpython3.14-minimal:arm64. 79s (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 ... 88137 files and directories currently installed.) 79s Preparing to unpack .../0-libpython3.14-minimal_3.14.0-4_arm64.deb ... 79s Unpacking libpython3.14-minimal:arm64 (3.14.0-4) ... 79s Selecting previously unselected package python3.14-minimal. 79s Preparing to unpack .../1-python3.14-minimal_3.14.0-4_arm64.deb ... 79s Unpacking python3.14-minimal (3.14.0-4) ... 79s Selecting previously unselected package libpython3.14-stdlib:arm64. 79s Preparing to unpack .../2-libpython3.14-stdlib_3.14.0-4_arm64.deb ... 79s Unpacking libpython3.14-stdlib:arm64 (3.14.0-4) ... 79s Selecting previously unselected package python3.14. 79s Preparing to unpack .../3-python3.14_3.14.0-4_arm64.deb ... 79s Unpacking python3.14 (3.14.0-4) ... 79s Selecting previously unselected package python3-all. 79s Preparing to unpack .../4-python3-all_3.13.7-2_arm64.deb ... 79s Unpacking python3-all (3.13.7-2) ... 80s Selecting previously unselected package python3-importmagic. 80s Preparing to unpack .../5-python3-importmagic_0.1.7-7_all.deb ... 80s Unpacking python3-importmagic (0.1.7-7) ... 80s Selecting previously unselected package python3-iniconfig. 80s Preparing to unpack .../6-python3-iniconfig_2.1.0-1_all.deb ... 80s Unpacking python3-iniconfig (2.1.0-1) ... 80s Selecting previously unselected package python3-pluggy. 80s Preparing to unpack .../7-python3-pluggy_1.6.0-1_all.deb ... 80s Unpacking python3-pluggy (1.6.0-1) ... 80s Selecting previously unselected package python3-pytest. 80s Preparing to unpack .../8-python3-pytest_8.3.5-2_all.deb ... 80s Unpacking python3-pytest (8.3.5-2) ... 80s Setting up python3-iniconfig (2.1.0-1) ... 80s Setting up libpython3.14-minimal:arm64 (3.14.0-4) ... 80s Setting up python3-pluggy (1.6.0-1) ... 80s Setting up python3-importmagic (0.1.7-7) ... 80s Setting up python3.14-minimal (3.14.0-4) ... 81s Setting up libpython3.14-stdlib:arm64 (3.14.0-4) ... 81s Setting up python3-pytest (8.3.5-2) ... 82s Setting up python3.14 (3.14.0-4) ... 83s Setting up python3-all (3.13.7-2) ... 83s Processing triggers for man-db (2.13.1-1) ... 83s Processing triggers for systemd (257.9-0ubuntu2) ... 84s autopkgtest [13:43:44]: test command1: set -e ; cp "importmagic/test_index.json" $AUTOPKGTEST_TMP ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py in :$(pwd)" ; $py -m pytest -v --pyargs importmagic ; done 84s autopkgtest [13:43:44]: test command1: [----------------------- 85s Testing with python3.14 in :/tmp/autopkgtest.GpVZ1G/autopkgtest_tmp 85s ============================= test session starts ============================== 85s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 -- /usr/bin/python3.14 85s cachedir: .pytest_cache 85s rootdir: /tmp/autopkgtest.GpVZ1G/autopkgtest_tmp 85s plugins: typeguard-4.4.2 85s collecting ... collected 66 items 85s 85s importer_test.py::test_get_update PASSED [ 1%] 85s importer_test.py::test_deep_import_of_unknown_symbol PASSED [ 3%] 85s importer_test.py::test_import_future_preserved PASSED [ 4%] 85s importer_test.py::test_update_imports_inserts_initial_imports PASSED [ 6%] 85s importer_test.py::test_update_imports_inserts_imports PASSED [ 7%] 85s importer_test.py::test_update_imports_correctly_aliases PASSED [ 9%] 85s importer_test.py::test_parse_imports PASSED [ 10%] 85s importer_test.py::test_imports_inserted_after_preamble PASSED [ 12%] 85s importer_test.py::test_imports_dont_delete_trailing_comments PASSED [ 13%] 85s importer_test.py::test_imports_dont_delete_imports_after_middle_comments PASSED [ 15%] 85s importer_test.py::test_imports_removes_unused PASSED [ 16%] 85s importer_test.py::test_imports_module_assignment PASSED [ 18%] 85s importer_test.py::test_import_as_kept PASSED [ 19%] 85s importer_test.py::test_from_import_as PASSED [ 21%] 85s importer_test.py::test_importer_wrapping_escaped PASSED [ 22%] 85s importer_test.py::test_importer_wrapping_escaped_longer PASSED [ 24%] 85s importer_test.py::test_importer_wrapping_parentheses PASSED [ 25%] 85s importer_test.py::test_importer_wrapping_parentheses_longer PASSED [ 27%] 85s importer_test.py::test_importer_wrapping_colums PASSED [ 28%] 85s importer_test.py::test_importer_directives_referenced PASSED [ 30%] 85s importer_test.py::test_importer_directives_not_referenced PASSED [ 31%] 85s importer_test.py::test_imports_partial_file PASSED [ 33%] 85s index_test.py::test_index_basic_api PASSED [ 34%] 85s index_test.py::test_index_filesystem PASSED [ 36%] 85s index_test.py::test_index_file_with_all FAILED [ 37%] 85s index_test.py::test_index_if_name_main PASSED [ 39%] 85s index_test.py::test_index_symbol_scores PASSED [ 40%] 85s index_test.py::test_index_score_deep_unknown_attribute PASSED [ 42%] 85s index_test.py::test_index_score_deep_reference PASSED [ 43%] 85s index_test.py::test_index_score_missing_symbol PASSED [ 45%] 85s index_test.py::test_index_score_sys_path PASSED [ 46%] 85s index_test.py::test_encoding_score PASSED [ 48%] 85s index_test.py::test_score_boosts_apply_to_scopes PASSED [ 50%] 85s symbols_test.py::test_parser_symbol_in_global_function PASSED [ 51%] 85s symbols_test.py::test_deep_package_reference_with_function_call PASSED [ 53%] 85s symbols_test.py::test_deep_package_reference_with_subscript PASSED [ 54%] 85s symbols_test.py::test_parser_class_methods_namespace_correctly PASSED [ 56%] 85s symbols_test.py::test_path_from_node_function PASSED [ 57%] 85s symbols_test.py::test_symbol_from_assignment PASSED [ 59%] 85s symbols_test.py::test_path_from_node_subscript PASSED [ 60%] 85s symbols_test.py::test_symbol_series PASSED [ 62%] 85s symbols_test.py::test_symbol_in_expression PASSED [ 63%] 85s symbols_test.py::test_symbol_from_nested_tuples PASSED [ 65%] 85s symbols_test.py::test_symbol_from_argument_defaults PASSED [ 66%] 85s symbols_test.py::test_symbol_from_decorator PASSED [ 68%] 85s symbols_test.py::test_referenced_symbols_from_decorated_function PASSED [ 69%] 85s symbols_test.py::test_find_unresolved_and_unreferenced_symbols PASSED [ 71%] 85s symbols_test.py::test_accepts_unicode_strings PASSED [ 72%] 85s symbols_test.py::TestSymbolCollection::test_attribute PASSED [ 74%] 85s symbols_test.py::TestSymbolCollection::test_tuple PASSED [ 75%] 85s symbols_test.py::TestSymbolCollection::test_chained_calls PASSED [ 77%] 85s symbols_test.py::TestSymbolCollection::test_chained_subscript PASSED [ 78%] 85s symbols_test.py::TestSymbolCollection::test_attribute_then_call PASSED [ 80%] 85s symbols_test.py::TestSymbolCollection::test_deep_attributes PASSED [ 81%] 85s symbols_test.py::TestSymbolCollection::test_generator PASSED [ 83%] 85s symbols_test.py::TestSymbolCollection::test_comprehension PASSED [ 84%] 85s symbols_test.py::TestSymbolCollection::test_class_attribute PASSED [ 86%] 85s symbols_test.py::TestSymbolCollection::test_with PASSED [ 87%] 85s symbols_test.py::TestSymbolCollection::test_with_variables PASSED [ 89%] 85s symbols_test.py::TestSymbolCollection::test_assignment_in_for PASSED [ 90%] 85s symbols_test.py::TestSymbolCollection::test_assignment_to_subscript PASSED [ 92%] 85s symbols_test.py::TestSymbolCollection::test_attribute_calls PASSED [ 93%] 85s symbols_test.py::TestSymbolCollection::test_attribute_calls_with_args PASSED [ 95%] 85s symbols_test.py::TestSymbolCollection::test_subscript_with_attrs PASSED [ 96%] 85s symbols_test.py::TestSymbolCollection::test_multiple_names PASSED [ 98%] 85s symbols_test.py::TestSymbolCollection::test_multiple_attributes PASSED [100%] 85s 85s =================================== FAILURES =================================== 85s ___________________________ test_index_file_with_all ___________________________ 85s 85s def test_index_file_with_all(): 85s src = dedent(''' 85s __all__ = ['one'] 85s 85s one = 1 85s two = 2 85s three = 3 85s ''') 85s tree = SymbolIndex() 85s with tree.enter('test') as subtree: 85s > subtree.index_source('test.py', src) 85s 85s /usr/lib/python3/dist-packages/importmagic/index_test.py:64: 85s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 85s /usr/lib/python3/dist-packages/importmagic/index.py:133: in index_source 85s visitor.visit(st) 85s /usr/lib/python3.14/ast.py:506: in visit 85s return visitor(node) 85s /usr/lib/python3.14/ast.py:514: in generic_visit 85s self.visit(item) 85s /usr/lib/python3.14/ast.py:506: in visit 85s return visitor(node) 85s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 85s 85s self = 85s node = Assign(targets=[Name(id='__all__', ctx=Store())], value=List(elts=[Constant(value='one', kind=None)], ctx=Load()), type_comment=None) 85s 85s def visit_Assign(self, node): 85s # TODO: Handle __all__ 85s is_name = lambda n: isinstance(n, ast.Name) 85s for name in filter(is_name, node.targets): 85s if name.id == '__all__' and isinstance(node.value, ast.List): 85s for subnode in node.value.elts: 85s > if isinstance(subnode, ast.Str): 85s E AttributeError: module 'ast' has no attribute 'Str' 85s 85s /usr/lib/python3/dist-packages/importmagic/index.py:407: AttributeError 85s =========================== short test summary info ============================ 85s FAILED index_test.py::test_index_file_with_all - AttributeError: module 'ast'... 85s ========================= 1 failed, 65 passed in 0.27s ========================= 86s autopkgtest [13:43:46]: test command1: -----------------------] 86s command1 FAIL non-zero exit status 1 86s autopkgtest [13:43:46]: test command1: - - - - - - - - - - results - - - - - - - - - - 86s autopkgtest [13:43:46]: @@@@@@@@@@@@@@@@@@@@ summary 86s command1 FAIL non-zero exit status 1