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