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