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