0s autopkgtest [11:57:09]: starting date and time: 2025-11-17 11:57:09+0000 0s autopkgtest [11:57:09]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [11:57:09]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.6i5_qlzx/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-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-10.secgroup --name adt-resolute-amd64-importmagic-20251117-115709-juju-7f2275-prod-proposed-migration-environment-15-3132a127-f1f7-4ef6-9627-0f9334f6e80d --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-amd64-importmagic-20251117-115709-juju-7f2275-prod-proposed-migration-environment-15-3132a127-f1f7-4ef6-9627-0f9334f6e80d from image adt/ubuntu-resolute-amd64-server-20251117.img (UUID 9762b0cc-7c5b-4854-acd5-cc74ad0de8c6)... 45s autopkgtest [11:57:54]: testbed dpkg architecture: amd64 45s autopkgtest [11:57:54]: testbed apt version: 3.1.11 45s autopkgtest [11:57:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup 45s autopkgtest [11:57:54]: testbed release detected to be: None 46s autopkgtest [11:57:55]: updating testbed package index (apt update) 46s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 46s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 46s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 46s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 46s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 46s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 46s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 46s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 47s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [159 kB] 47s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [118 kB] 47s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [3096 B] 47s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [64.6 kB] 47s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3744 B] 47s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 47s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [279 kB] 47s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [607 kB] 47s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [21.2 kB] 47s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [13.4 kB] 47s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [6516 B] 47s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [680 B] 48s Fetched 2346 kB in 1s (2476 kB/s) 49s Reading package lists... 49s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 49s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 50s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 50s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 50s Reading package lists... 50s Reading package lists... 50s Building dependency tree... 50s Reading state information... 50s Calculating upgrade... 50s The following packages will be upgraded: 50s libpython3-stdlib python3 python3-minimal usbutils 50s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 50s Need to get 146 kB of archives. 50s After this operation, 0 B of additional disk space will be used. 50s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 50s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 50s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 50s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 usbutils amd64 1:019-1 [83.9 kB] 51s dpkg-preconfigure: unable to re-open stdin: No such file or directory 51s Fetched 146 kB in 0s (0 B/s) 51s (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 ... 83372 files and directories currently installed.) 51s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 51s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 51s Setting up python3-minimal (3.13.7-2) ... 51s (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 ... 83372 files and directories currently installed.) 51s Preparing to unpack .../python3_3.13.7-2_amd64.deb ... 51s running python pre-rtupdate hooks for python3.13... 51s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 51s Preparing to unpack .../libpython3-stdlib_3.13.7-2_amd64.deb ... 51s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 51s Preparing to unpack .../usbutils_1%3a019-1_amd64.deb ... 51s Unpacking usbutils (1:019-1) over (1:018-2) ... 51s Setting up usbutils (1:019-1) ... 51s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 51s Setting up python3 (3.13.7-2) ... 51s running python rtupdate hooks for python3.13... 51s running python post-rtupdate hooks for python3.13... 51s Processing triggers for man-db (2.13.1-1) ... 52s autopkgtest [11:58:01]: upgrading testbed (apt dist-upgrade and autopurge) 52s Reading package lists... 52s Building dependency tree... 52s Reading state information... 52s Calculating upgrade... 52s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 53s Reading package lists... 53s Building dependency tree... 53s Reading state information... 53s Solving dependencies... 53s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 55s autopkgtest [11:58:04]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:00:33 UTC 2025 55s autopkgtest [11:58:04]: @@@@@@@@@@@@@@@@@@@@ apt-source importmagic 56s Get:1 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (dsc) [2115 B] 56s Get:2 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (tar) [392 kB] 56s Get:3 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (diff) [4748 B] 56s gpgv: Signature made Fri Jan 10 15:30:49 2025 UTC 56s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 56s gpgv: issuer "tchet@debian.org" 56s gpgv: Can't check signature: No public key 56s dpkg-source: warning: cannot verify inline signature for ./importmagic_0.1.7-7.dsc: no acceptable signature found 57s autopkgtest [11:58:06]: testing package importmagic version 0.1.7-7 57s autopkgtest [11:58:06]: build not needed 57s autopkgtest [11:58:06]: test command1: preparing testbed 57s Reading package lists... 57s Building dependency tree... 57s Reading state information... 57s Solving dependencies... 57s The following NEW packages will be installed: 57s libpython3.14-minimal libpython3.14-stdlib python3-all python3-importmagic 57s python3-iniconfig python3-pluggy python3-pytest python3.14 57s python3.14-minimal 58s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 58s Need to get 6965 kB of archives. 58s After this operation, 26.0 MB of additional disk space will be used. 58s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.0-4 [906 kB] 58s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.0-4 [2559 kB] 58s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.0-4 [2397 kB] 58s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.0-4 [805 kB] 58s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-all amd64 3.13.7-2 [890 B] 58s Get:6 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-importmagic all 0.1.7-7 [17.8 kB] 58s Get:7 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-1 [6840 B] 58s Get:8 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-1 [21.0 kB] 58s Get:9 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 8.3.5-2 [252 kB] 59s Fetched 6965 kB in 1s (6633 kB/s) 59s Selecting previously unselected package libpython3.14-minimal:amd64. 59s (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 ... 83372 files and directories currently installed.) 59s Preparing to unpack .../0-libpython3.14-minimal_3.14.0-4_amd64.deb ... 59s Unpacking libpython3.14-minimal:amd64 (3.14.0-4) ... 59s Selecting previously unselected package python3.14-minimal. 59s Preparing to unpack .../1-python3.14-minimal_3.14.0-4_amd64.deb ... 59s Unpacking python3.14-minimal (3.14.0-4) ... 59s Selecting previously unselected package libpython3.14-stdlib:amd64. 59s Preparing to unpack .../2-libpython3.14-stdlib_3.14.0-4_amd64.deb ... 59s Unpacking libpython3.14-stdlib:amd64 (3.14.0-4) ... 59s Selecting previously unselected package python3.14. 59s Preparing to unpack .../3-python3.14_3.14.0-4_amd64.deb ... 59s Unpacking python3.14 (3.14.0-4) ... 59s Selecting previously unselected package python3-all. 59s Preparing to unpack .../4-python3-all_3.13.7-2_amd64.deb ... 59s Unpacking python3-all (3.13.7-2) ... 59s Selecting previously unselected package python3-importmagic. 59s Preparing to unpack .../5-python3-importmagic_0.1.7-7_all.deb ... 59s Unpacking python3-importmagic (0.1.7-7) ... 59s Selecting previously unselected package python3-iniconfig. 59s Preparing to unpack .../6-python3-iniconfig_2.1.0-1_all.deb ... 59s Unpacking python3-iniconfig (2.1.0-1) ... 59s Selecting previously unselected package python3-pluggy. 59s Preparing to unpack .../7-python3-pluggy_1.6.0-1_all.deb ... 59s Unpacking python3-pluggy (1.6.0-1) ... 59s Selecting previously unselected package python3-pytest. 59s Preparing to unpack .../8-python3-pytest_8.3.5-2_all.deb ... 59s Unpacking python3-pytest (8.3.5-2) ... 59s Setting up python3-iniconfig (2.1.0-1) ... 59s Setting up libpython3.14-minimal:amd64 (3.14.0-4) ... 59s Setting up python3-pluggy (1.6.0-1) ... 59s Setting up python3-importmagic (0.1.7-7) ... 59s Setting up python3.14-minimal (3.14.0-4) ... 60s Setting up libpython3.14-stdlib:amd64 (3.14.0-4) ... 60s Setting up python3-pytest (8.3.5-2) ... 60s Setting up python3.14 (3.14.0-4) ... 61s Setting up python3-all (3.13.7-2) ... 61s Processing triggers for man-db (2.13.1-1) ... 61s Processing triggers for systemd (257.9-0ubuntu2) ... 62s autopkgtest [11:58:11]: 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 62s autopkgtest [11:58:11]: test command1: [----------------------- 62s Testing with python3.14 in :/tmp/autopkgtest.dfqIMp/autopkgtest_tmp 62s ============================= test session starts ============================== 62s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 -- /usr/bin/python3.14 62s cachedir: .pytest_cache 62s rootdir: /tmp/autopkgtest.dfqIMp/autopkgtest_tmp 62s plugins: typeguard-4.4.2 62s collecting ... collected 66 items 62s 62s importer_test.py::test_get_update PASSED [ 1%] 62s importer_test.py::test_deep_import_of_unknown_symbol PASSED [ 3%] 62s importer_test.py::test_import_future_preserved PASSED [ 4%] 62s importer_test.py::test_update_imports_inserts_initial_imports PASSED [ 6%] 62s importer_test.py::test_update_imports_inserts_imports PASSED [ 7%] 62s importer_test.py::test_update_imports_correctly_aliases PASSED [ 9%] 62s importer_test.py::test_parse_imports PASSED [ 10%] 62s importer_test.py::test_imports_inserted_after_preamble PASSED [ 12%] 62s importer_test.py::test_imports_dont_delete_trailing_comments PASSED [ 13%] 62s importer_test.py::test_imports_dont_delete_imports_after_middle_comments PASSED [ 15%] 62s importer_test.py::test_imports_removes_unused PASSED [ 16%] 62s importer_test.py::test_imports_module_assignment PASSED [ 18%] 62s importer_test.py::test_import_as_kept PASSED [ 19%] 62s importer_test.py::test_from_import_as PASSED [ 21%] 62s importer_test.py::test_importer_wrapping_escaped PASSED [ 22%] 62s importer_test.py::test_importer_wrapping_escaped_longer PASSED [ 24%] 62s importer_test.py::test_importer_wrapping_parentheses PASSED [ 25%] 62s importer_test.py::test_importer_wrapping_parentheses_longer PASSED [ 27%] 62s importer_test.py::test_importer_wrapping_colums PASSED [ 28%] 62s importer_test.py::test_importer_directives_referenced PASSED [ 30%] 62s importer_test.py::test_importer_directives_not_referenced PASSED [ 31%] 62s importer_test.py::test_imports_partial_file PASSED [ 33%] 62s index_test.py::test_index_basic_api PASSED [ 34%] 62s index_test.py::test_index_filesystem PASSED [ 36%] 62s index_test.py::test_index_file_with_all FAILED [ 37%] 62s index_test.py::test_index_if_name_main PASSED [ 39%] 62s index_test.py::test_index_symbol_scores PASSED [ 40%] 62s index_test.py::test_index_score_deep_unknown_attribute PASSED [ 42%] 62s index_test.py::test_index_score_deep_reference PASSED [ 43%] 62s index_test.py::test_index_score_missing_symbol PASSED [ 45%] 62s index_test.py::test_index_score_sys_path PASSED [ 46%] 62s index_test.py::test_encoding_score PASSED [ 48%] 62s index_test.py::test_score_boosts_apply_to_scopes PASSED [ 50%] 62s symbols_test.py::test_parser_symbol_in_global_function PASSED [ 51%] 62s symbols_test.py::test_deep_package_reference_with_function_call PASSED [ 53%] 62s symbols_test.py::test_deep_package_reference_with_subscript PASSED [ 54%] 62s symbols_test.py::test_parser_class_methods_namespace_correctly PASSED [ 56%] 62s symbols_test.py::test_path_from_node_function PASSED [ 57%] 62s symbols_test.py::test_symbol_from_assignment PASSED [ 59%] 62s symbols_test.py::test_path_from_node_subscript PASSED [ 60%] 62s symbols_test.py::test_symbol_series PASSED [ 62%] 62s symbols_test.py::test_symbol_in_expression PASSED [ 63%] 62s symbols_test.py::test_symbol_from_nested_tuples PASSED [ 65%] 62s symbols_test.py::test_symbol_from_argument_defaults PASSED [ 66%] 62s symbols_test.py::test_symbol_from_decorator PASSED [ 68%] 62s symbols_test.py::test_referenced_symbols_from_decorated_function PASSED [ 69%] 62s symbols_test.py::test_find_unresolved_and_unreferenced_symbols PASSED [ 71%] 62s symbols_test.py::test_accepts_unicode_strings PASSED [ 72%] 62s symbols_test.py::TestSymbolCollection::test_attribute PASSED [ 74%] 62s symbols_test.py::TestSymbolCollection::test_tuple PASSED [ 75%] 62s symbols_test.py::TestSymbolCollection::test_chained_calls PASSED [ 77%] 62s symbols_test.py::TestSymbolCollection::test_chained_subscript PASSED [ 78%] 62s symbols_test.py::TestSymbolCollection::test_attribute_then_call PASSED [ 80%] 62s symbols_test.py::TestSymbolCollection::test_deep_attributes PASSED [ 81%] 62s symbols_test.py::TestSymbolCollection::test_generator PASSED [ 83%] 62s symbols_test.py::TestSymbolCollection::test_comprehension PASSED [ 84%] 62s symbols_test.py::TestSymbolCollection::test_class_attribute PASSED [ 86%] 62s symbols_test.py::TestSymbolCollection::test_with PASSED [ 87%] 62s symbols_test.py::TestSymbolCollection::test_with_variables PASSED [ 89%] 62s symbols_test.py::TestSymbolCollection::test_assignment_in_for PASSED [ 90%] 62s symbols_test.py::TestSymbolCollection::test_assignment_to_subscript PASSED [ 92%] 62s symbols_test.py::TestSymbolCollection::test_attribute_calls PASSED [ 93%] 62s symbols_test.py::TestSymbolCollection::test_attribute_calls_with_args PASSED [ 95%] 62s symbols_test.py::TestSymbolCollection::test_subscript_with_attrs PASSED [ 96%] 62s symbols_test.py::TestSymbolCollection::test_multiple_names PASSED [ 98%] 62s symbols_test.py::TestSymbolCollection::test_multiple_attributes PASSED [100%] 62s 62s =================================== FAILURES =================================== 62s ___________________________ test_index_file_with_all ___________________________ 62s 62s def test_index_file_with_all(): 62s src = dedent(''' 62s __all__ = ['one'] 62s 62s one = 1 62s two = 2 62s three = 3 62s ''') 62s tree = SymbolIndex() 62s with tree.enter('test') as subtree: 62s > subtree.index_source('test.py', src) 62s 62s /usr/lib/python3/dist-packages/importmagic/index_test.py:64: 62s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 62s /usr/lib/python3/dist-packages/importmagic/index.py:133: in index_source 62s visitor.visit(st) 62s /usr/lib/python3.14/ast.py:506: in visit 62s return visitor(node) 62s /usr/lib/python3.14/ast.py:514: in generic_visit 62s self.visit(item) 62s /usr/lib/python3.14/ast.py:506: in visit 62s return visitor(node) 62s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 62s 62s self = 62s node = Assign(targets=[Name(id='__all__', ctx=Store())], value=List(elts=[Constant(value='one', kind=None)], ctx=Load()), type_comment=None) 62s 62s def visit_Assign(self, node): 62s # TODO: Handle __all__ 62s is_name = lambda n: isinstance(n, ast.Name) 62s for name in filter(is_name, node.targets): 62s if name.id == '__all__' and isinstance(node.value, ast.List): 62s for subnode in node.value.elts: 62s > if isinstance(subnode, ast.Str): 62s E AttributeError: module 'ast' has no attribute 'Str' 62s 62s /usr/lib/python3/dist-packages/importmagic/index.py:407: AttributeError 62s =========================== short test summary info ============================ 62s FAILED index_test.py::test_index_file_with_all - AttributeError: module 'ast'... 62s ========================= 1 failed, 65 passed in 0.14s ========================= 63s autopkgtest [11:58:12]: test command1: -----------------------] 63s command1 FAIL non-zero exit status 1 63s autopkgtest [11:58:12]: test command1: - - - - - - - - - - results - - - - - - - - - - 64s autopkgtest [11:58:13]: @@@@@@@@@@@@@@@@@@@@ summary 64s command1 FAIL non-zero exit status 1