0s autopkgtest [11:42:53]: starting date and time: 2025-11-17 11:42:53+0000 0s autopkgtest [11:42:53]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [11:42:53]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.cuuvgjim/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --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 -- lxd -r lxd-armhf-10.145.243.107 lxd-armhf-10.145.243.107:autopkgtest/ubuntu/resolute/armhf 20s autopkgtest [11:43:13]: testbed dpkg architecture: armhf 22s autopkgtest [11:43:15]: testbed apt version: 3.1.11 26s autopkgtest [11:43:19]: @@@@@@@@@@@@@@@@@@@@ test bed setup 28s autopkgtest [11:43:21]: testbed release detected to be: None 36s autopkgtest [11:43:28]: updating testbed package index (apt update) 38s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 38s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [87.8 kB] 38s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 38s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 38s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 38s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 38s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 38s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 38s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [138 kB] 38s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted armhf Packages [940 B] 38s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [536 kB] 38s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9684 B] 38s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 39s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1416 kB] 39s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1369 kB] 39s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.2 MB] 43s Fetched 41.1 MB in 5s (7748 kB/s) 44s Reading package lists... 49s autopkgtest [11:43:42]: upgrading testbed (apt dist-upgrade and autopurge) 51s Reading package lists... 52s Building dependency tree... 52s Reading state information... 52s Calculating upgrade... 52s The following packages will be upgraded: 52s libpython3-stdlib python3 python3-minimal usbutils 53s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 53s Need to get 140 kB of archives. 53s After this operation, 0 B of additional disk space will be used. 53s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-minimal armhf 3.13.7-2 [27.8 kB] 53s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3 armhf 3.13.7-2 [23.9 kB] 53s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpython3-stdlib armhf 3.13.7-2 [10.6 kB] 53s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf usbutils armhf 1:019-1 [77.7 kB] 53s Fetched 140 kB in 1s (276 kB/s) 53s (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 ... 65904 files and directories currently installed.) 53s Preparing to unpack .../python3-minimal_3.13.7-2_armhf.deb ... 53s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 53s Setting up python3-minimal (3.13.7-2) ... 54s (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 ... 65904 files and directories currently installed.) 54s Preparing to unpack .../python3_3.13.7-2_armhf.deb ... 54s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 54s Preparing to unpack .../libpython3-stdlib_3.13.7-2_armhf.deb ... 54s Unpacking libpython3-stdlib:armhf (3.13.7-2) over (3.13.7-1) ... 54s Preparing to unpack .../usbutils_1%3a019-1_armhf.deb ... 54s Unpacking usbutils (1:019-1) over (1:018-2) ... 54s Setting up usbutils (1:019-1) ... 54s Setting up libpython3-stdlib:armhf (3.13.7-2) ... 54s Setting up python3 (3.13.7-2) ... 54s Processing triggers for man-db (2.13.1-1) ... 57s Reading package lists... 57s Building dependency tree... 57s Reading state information... 57s Solving dependencies... 58s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 60s autopkgtest [11:43:53]: rebooting testbed after setup commands that affected boot 100s autopkgtest [11:44:33]: testbed running kernel: Linux 6.8.0-86-generic #87~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 29 09:26:46 UTC 2 124s autopkgtest [11:44:57]: @@@@@@@@@@@@@@@@@@@@ apt-source importmagic 134s Get:1 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (dsc) [2115 B] 134s Get:2 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (tar) [392 kB] 134s Get:3 http://ftpmaster.internal/ubuntu resolute/universe importmagic 0.1.7-7 (diff) [4748 B] 135s gpgv: Signature made Fri Jan 10 15:30:49 2025 UTC 135s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 135s gpgv: issuer "tchet@debian.org" 135s gpgv: Can't check signature: No public key 135s dpkg-source: warning: cannot verify inline signature for ./importmagic_0.1.7-7.dsc: no acceptable signature found 135s autopkgtest [11:45:08]: testing package importmagic version 0.1.7-7 137s autopkgtest [11:45:10]: build not needed 139s autopkgtest [11:45:12]: test command1: preparing testbed 141s Reading package lists... 141s Building dependency tree... 141s Reading state information... 141s Solving dependencies... 142s The following NEW packages will be installed: 142s libpython3.14-minimal libpython3.14-stdlib python3-all python3-importmagic 142s python3-iniconfig python3-pluggy python3-pytest python3.14 142s python3.14-minimal 142s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 142s Need to get 6412 kB of archives. 142s After this operation, 24.0 MB of additional disk space will be used. 142s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-minimal armhf 3.14.0-4 [892 kB] 142s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14-minimal armhf 3.14.0-4 [2146 kB] 142s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-stdlib armhf 3.14.0-4 [2270 kB] 143s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14 armhf 3.14.0-4 [805 kB] 143s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-all armhf 3.13.7-2 [890 B] 143s Get:6 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-importmagic all 0.1.7-7 [17.8 kB] 143s Get:7 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-iniconfig all 2.1.0-1 [6840 B] 143s Get:8 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pluggy all 1.6.0-1 [21.0 kB] 143s Get:9 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pytest all 8.3.5-2 [252 kB] 143s Fetched 6412 kB in 1s (6563 kB/s) 143s Selecting previously unselected package libpython3.14-minimal:armhf. 143s (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 ... 65904 files and directories currently installed.) 143s Preparing to unpack .../0-libpython3.14-minimal_3.14.0-4_armhf.deb ... 143s Unpacking libpython3.14-minimal:armhf (3.14.0-4) ... 143s Selecting previously unselected package python3.14-minimal. 143s Preparing to unpack .../1-python3.14-minimal_3.14.0-4_armhf.deb ... 143s Unpacking python3.14-minimal (3.14.0-4) ... 143s Selecting previously unselected package libpython3.14-stdlib:armhf. 143s Preparing to unpack .../2-libpython3.14-stdlib_3.14.0-4_armhf.deb ... 143s Unpacking libpython3.14-stdlib:armhf (3.14.0-4) ... 143s Selecting previously unselected package python3.14. 143s Preparing to unpack .../3-python3.14_3.14.0-4_armhf.deb ... 143s Unpacking python3.14 (3.14.0-4) ... 143s Selecting previously unselected package python3-all. 143s Preparing to unpack .../4-python3-all_3.13.7-2_armhf.deb ... 143s Unpacking python3-all (3.13.7-2) ... 143s Selecting previously unselected package python3-importmagic. 143s Preparing to unpack .../5-python3-importmagic_0.1.7-7_all.deb ... 143s Unpacking python3-importmagic (0.1.7-7) ... 143s Selecting previously unselected package python3-iniconfig. 143s Preparing to unpack .../6-python3-iniconfig_2.1.0-1_all.deb ... 143s Unpacking python3-iniconfig (2.1.0-1) ... 143s Selecting previously unselected package python3-pluggy. 143s Preparing to unpack .../7-python3-pluggy_1.6.0-1_all.deb ... 143s Unpacking python3-pluggy (1.6.0-1) ... 143s Selecting previously unselected package python3-pytest. 143s Preparing to unpack .../8-python3-pytest_8.3.5-2_all.deb ... 143s Unpacking python3-pytest (8.3.5-2) ... 143s Setting up python3-iniconfig (2.1.0-1) ... 144s Setting up libpython3.14-minimal:armhf (3.14.0-4) ... 144s Setting up python3-pluggy (1.6.0-1) ... 144s Setting up python3-importmagic (0.1.7-7) ... 144s Setting up python3.14-minimal (3.14.0-4) ... 145s Setting up libpython3.14-stdlib:armhf (3.14.0-4) ... 145s Setting up python3-pytest (8.3.5-2) ... 146s Setting up python3.14 (3.14.0-4) ... 147s Setting up python3-all (3.13.7-2) ... 147s Processing triggers for man-db (2.13.1-1) ... 147s Processing triggers for systemd (257.9-0ubuntu2) ... 156s autopkgtest [11:45:29]: 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 156s autopkgtest [11:45:29]: test command1: [----------------------- 157s Testing with python3.14 in :/tmp/autopkgtest.4iuP4T/autopkgtest_tmp 158s ============================= test session starts ============================== 158s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 -- /usr/bin/python3.14 158s cachedir: .pytest_cache 158s rootdir: /tmp/autopkgtest.4iuP4T/autopkgtest_tmp 158s plugins: typeguard-4.4.2 158s collecting ... collected 66 items 158s 158s importer_test.py::test_get_update PASSED [ 1%] 158s importer_test.py::test_deep_import_of_unknown_symbol PASSED [ 3%] 158s importer_test.py::test_import_future_preserved PASSED [ 4%] 158s importer_test.py::test_update_imports_inserts_initial_imports PASSED [ 6%] 158s importer_test.py::test_update_imports_inserts_imports PASSED [ 7%] 158s importer_test.py::test_update_imports_correctly_aliases PASSED [ 9%] 158s importer_test.py::test_parse_imports PASSED [ 10%] 158s importer_test.py::test_imports_inserted_after_preamble PASSED [ 12%] 158s importer_test.py::test_imports_dont_delete_trailing_comments PASSED [ 13%] 158s importer_test.py::test_imports_dont_delete_imports_after_middle_comments PASSED [ 15%] 158s importer_test.py::test_imports_removes_unused PASSED [ 16%] 158s importer_test.py::test_imports_module_assignment PASSED [ 18%] 158s importer_test.py::test_import_as_kept PASSED [ 19%] 158s importer_test.py::test_from_import_as PASSED [ 21%] 158s importer_test.py::test_importer_wrapping_escaped PASSED [ 22%] 158s importer_test.py::test_importer_wrapping_escaped_longer PASSED [ 24%] 158s importer_test.py::test_importer_wrapping_parentheses PASSED [ 25%] 158s importer_test.py::test_importer_wrapping_parentheses_longer PASSED [ 27%] 158s importer_test.py::test_importer_wrapping_colums PASSED [ 28%] 158s importer_test.py::test_importer_directives_referenced PASSED [ 30%] 158s importer_test.py::test_importer_directives_not_referenced PASSED [ 31%] 158s importer_test.py::test_imports_partial_file PASSED [ 33%] 158s index_test.py::test_index_basic_api PASSED [ 34%] 158s index_test.py::test_index_filesystem PASSED [ 36%] 158s index_test.py::test_index_file_with_all FAILED [ 37%] 158s index_test.py::test_index_if_name_main PASSED [ 39%] 158s index_test.py::test_index_symbol_scores PASSED [ 40%] 158s index_test.py::test_index_score_deep_unknown_attribute PASSED [ 42%] 158s index_test.py::test_index_score_deep_reference PASSED [ 43%] 158s index_test.py::test_index_score_missing_symbol PASSED [ 45%] 158s index_test.py::test_index_score_sys_path PASSED [ 46%] 158s index_test.py::test_encoding_score PASSED [ 48%] 158s index_test.py::test_score_boosts_apply_to_scopes PASSED [ 50%] 158s symbols_test.py::test_parser_symbol_in_global_function PASSED [ 51%] 158s symbols_test.py::test_deep_package_reference_with_function_call PASSED [ 53%] 158s symbols_test.py::test_deep_package_reference_with_subscript PASSED [ 54%] 158s symbols_test.py::test_parser_class_methods_namespace_correctly PASSED [ 56%] 158s symbols_test.py::test_path_from_node_function PASSED [ 57%] 158s symbols_test.py::test_symbol_from_assignment PASSED [ 59%] 158s symbols_test.py::test_path_from_node_subscript PASSED [ 60%] 158s symbols_test.py::test_symbol_series PASSED [ 62%] 158s symbols_test.py::test_symbol_in_expression PASSED [ 63%] 158s symbols_test.py::test_symbol_from_nested_tuples PASSED [ 65%] 158s symbols_test.py::test_symbol_from_argument_defaults PASSED [ 66%] 158s symbols_test.py::test_symbol_from_decorator PASSED [ 68%] 158s symbols_test.py::test_referenced_symbols_from_decorated_function PASSED [ 69%] 158s symbols_test.py::test_find_unresolved_and_unreferenced_symbols PASSED [ 71%] 158s symbols_test.py::test_accepts_unicode_strings PASSED [ 72%] 158s symbols_test.py::TestSymbolCollection::test_attribute PASSED [ 74%] 158s symbols_test.py::TestSymbolCollection::test_tuple PASSED [ 75%] 158s symbols_test.py::TestSymbolCollection::test_chained_calls PASSED [ 77%] 158s symbols_test.py::TestSymbolCollection::test_chained_subscript PASSED [ 78%] 158s symbols_test.py::TestSymbolCollection::test_attribute_then_call PASSED [ 80%] 158s symbols_test.py::TestSymbolCollection::test_deep_attributes PASSED [ 81%] 158s symbols_test.py::TestSymbolCollection::test_generator PASSED [ 83%] 158s symbols_test.py::TestSymbolCollection::test_comprehension PASSED [ 84%] 158s symbols_test.py::TestSymbolCollection::test_class_attribute PASSED [ 86%] 158s symbols_test.py::TestSymbolCollection::test_with PASSED [ 87%] 158s symbols_test.py::TestSymbolCollection::test_with_variables PASSED [ 89%] 158s symbols_test.py::TestSymbolCollection::test_assignment_in_for PASSED [ 90%] 158s symbols_test.py::TestSymbolCollection::test_assignment_to_subscript PASSED [ 92%] 158s symbols_test.py::TestSymbolCollection::test_attribute_calls PASSED [ 93%] 158s symbols_test.py::TestSymbolCollection::test_attribute_calls_with_args PASSED [ 95%] 158s symbols_test.py::TestSymbolCollection::test_subscript_with_attrs PASSED [ 96%] 158s symbols_test.py::TestSymbolCollection::test_multiple_names PASSED [ 98%] 158s symbols_test.py::TestSymbolCollection::test_multiple_attributes PASSED [100%] 158s 158s =================================== FAILURES =================================== 158s ___________________________ test_index_file_with_all ___________________________ 158s 158s def test_index_file_with_all(): 158s src = dedent(''' 158s __all__ = ['one'] 158s 158s one = 1 158s two = 2 158s three = 3 158s ''') 158s tree = SymbolIndex() 158s with tree.enter('test') as subtree: 158s > subtree.index_source('test.py', src) 158s 158s /usr/lib/python3/dist-packages/importmagic/index_test.py:64: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/importmagic/index.py:133: in index_source 158s visitor.visit(st) 158s /usr/lib/python3.14/ast.py:506: in visit 158s return visitor(node) 158s /usr/lib/python3.14/ast.py:514: in generic_visit 158s self.visit(item) 158s /usr/lib/python3.14/ast.py:506: in visit 158s return visitor(node) 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s node = Assign(targets=[Name(id='__all__', ctx=Store())], value=List(elts=[Constant(value='one', kind=None)], ctx=Load()), type_comment=None) 158s 158s def visit_Assign(self, node): 158s # TODO: Handle __all__ 158s is_name = lambda n: isinstance(n, ast.Name) 158s for name in filter(is_name, node.targets): 158s if name.id == '__all__' and isinstance(node.value, ast.List): 158s for subnode in node.value.elts: 158s > if isinstance(subnode, ast.Str): 158s E AttributeError: module 'ast' has no attribute 'Str' 158s 158s /usr/lib/python3/dist-packages/importmagic/index.py:407: AttributeError 158s =========================== short test summary info ============================ 158s FAILED index_test.py::test_index_file_with_all - AttributeError: module 'ast'... 158s ========================= 1 failed, 65 passed in 0.26s ========================= 159s autopkgtest [11:45:32]: test command1: -----------------------] 163s command1 FAIL non-zero exit status 1 163s autopkgtest [11:45:36]: test command1: - - - - - - - - - - results - - - - - - - - - - 168s autopkgtest [11:45:41]: @@@@@@@@@@@@@@@@@@@@ summary 168s command1 FAIL non-zero exit status 1