0s autopkgtest [14:33:16]: starting date and time: 2024-11-13 14:33:16+0000 0s autopkgtest [14:33:16]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [14:33:16]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.cosgs3am/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults,src:python3-stdlib-extensions --apt-upgrade python-gast --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-22.secgroup --name adt-plucky-s390x-python-gast-20241113-143315-juju-7f2275-prod-proposed-migration-environment-20-4d6d7955-0a1f-49e8-ad3d-673b7cecfb8d --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 117s autopkgtest [14:35:13]: testbed dpkg architecture: s390x 117s autopkgtest [14:35:13]: testbed apt version: 2.9.8 117s autopkgtest [14:35:13]: @@@@@@@@@@@@@@@@@@@@ test bed setup 118s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 118s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [105 kB] 118s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 118s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [962 kB] 118s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [16.5 kB] 118s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [110 kB] 118s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [639 kB] 118s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [17.4 kB] 118s Fetched 1931 kB in 1s (2302 kB/s) 118s Reading package lists... 120s Reading package lists... 121s Building dependency tree... 121s Reading state information... 121s Calculating upgrade... 121s The following NEW packages will be installed: 121s python3.13-gdbm 121s The following packages will be upgraded: 121s libgnutls30t64 libgpgme11t64 libjson-glib-1.0-0 libjson-glib-1.0-common 121s libpython3-stdlib libutempter0 python3 python3-gdbm python3-minimal 121s 9 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 121s Need to get 1285 kB of archives. 121s After this operation, 103 kB of additional disk space will be used. 121s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-minimal s390x 3.12.7-1 [27.4 kB] 121s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3 s390x 3.12.7-1 [24.0 kB] 121s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libpython3-stdlib s390x 3.12.7-1 [10.0 kB] 121s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls30t64 s390x 3.8.8-2ubuntu1 [950 kB] 121s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-gdbm s390x 3.13.0-2 [31.0 kB] 121s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-gdbm s390x 3.12.7-1 [8642 B] 121s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libgpgme11t64 s390x 1.23.2-5ubuntu4 [151 kB] 121s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 121s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-0 s390x 1.10.0+ds-3 [67.5 kB] 121s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libutempter0 s390x 1.2.1-4 [9708 B] 122s Fetched 1285 kB in 1s (2143 kB/s) 122s (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 ... 55510 files and directories currently installed.) 122s Preparing to unpack .../python3-minimal_3.12.7-1_s390x.deb ... 122s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 122s Setting up python3-minimal (3.12.7-1) ... 122s (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 ... 55510 files and directories currently installed.) 122s Preparing to unpack .../python3_3.12.7-1_s390x.deb ... 122s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 122s Preparing to unpack .../libpython3-stdlib_3.12.7-1_s390x.deb ... 122s Unpacking libpython3-stdlib:s390x (3.12.7-1) over (3.12.6-0ubuntu1) ... 122s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_s390x.deb ... 122s Unpacking libgnutls30t64:s390x (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 122s Setting up libgnutls30t64:s390x (3.8.8-2ubuntu1) ... 122s Selecting previously unselected package python3.13-gdbm. 122s (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 ... 55510 files and directories currently installed.) 122s Preparing to unpack .../0-python3.13-gdbm_3.13.0-2_s390x.deb ... 122s Unpacking python3.13-gdbm (3.13.0-2) ... 122s Preparing to unpack .../1-python3-gdbm_3.12.7-1_s390x.deb ... 122s Unpacking python3-gdbm:s390x (3.12.7-1) over (3.12.6-1ubuntu1) ... 122s Preparing to unpack .../2-libgpgme11t64_1.23.2-5ubuntu4_s390x.deb ... 122s Unpacking libgpgme11t64:s390x (1.23.2-5ubuntu4) over (1.18.0-4.1ubuntu4) ... 122s Preparing to unpack .../3-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 122s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 122s Preparing to unpack .../4-libjson-glib-1.0-0_1.10.0+ds-3_s390x.deb ... 122s Unpacking libjson-glib-1.0-0:s390x (1.10.0+ds-3) over (1.10.0+ds-2) ... 122s Preparing to unpack .../5-libutempter0_1.2.1-4_s390x.deb ... 122s Unpacking libutempter0:s390x (1.2.1-4) over (1.2.1-3build1) ... 122s Setting up libutempter0:s390x (1.2.1-4) ... 122s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 122s Setting up libgpgme11t64:s390x (1.23.2-5ubuntu4) ... 122s Setting up python3.13-gdbm (3.13.0-2) ... 122s Setting up libpython3-stdlib:s390x (3.12.7-1) ... 122s Setting up python3 (3.12.7-1) ... 122s Setting up libjson-glib-1.0-0:s390x (1.10.0+ds-3) ... 122s Setting up python3-gdbm:s390x (3.12.7-1) ... 122s Processing triggers for man-db (2.12.1-3) ... 123s Processing triggers for libc-bin (2.40-1ubuntu3) ... 123s Reading package lists... 123s Building dependency tree... 123s Reading state information... 123s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 123s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 123s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 123s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 124s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 124s Reading package lists... 124s Reading package lists... 124s Building dependency tree... 124s Reading state information... 124s Calculating upgrade... 125s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 125s Reading package lists... 125s Building dependency tree... 125s Reading state information... 125s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 127s autopkgtest [14:35:23]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 128s autopkgtest [14:35:24]: @@@@@@@@@@@@@@@@@@@@ apt-source python-gast 129s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-gast 0.5.2-2 (dsc) [1534 B] 129s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-gast 0.5.2-2 (tar) [14.5 kB] 129s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-gast 0.5.2-2 (diff) [3072 B] 129s gpgv: Signature made Mon Oct 11 21:44:53 2021 UTC 129s gpgv: using EDDSA key EE9AD6F90520FA11F69F4824477B0DB0263A54D8 129s gpgv: issuer "stefanor@debian.org" 129s gpgv: Can't check signature: No public key 129s dpkg-source: warning: cannot verify inline signature for ./python-gast_0.5.2-2.dsc: no acceptable signature found 129s autopkgtest [14:35:25]: testing package python-gast version 0.5.2-2 130s autopkgtest [14:35:26]: build not needed 130s autopkgtest [14:35:26]: test upstream-tests: preparing testbed 131s Reading package lists... 132s Building dependency tree... 132s Reading state information... 132s Starting pkgProblemResolver with broken count: 0 132s Starting 2 pkgProblemResolver with broken count: 0 132s Done 132s The following additional packages will be installed: 132s libpython3.13-minimal libpython3.13-stdlib python3-all python3-gast 132s python3-iniconfig python3-packaging python3-pluggy python3-pytest python3.13 132s python3.13-minimal 132s Suggested packages: 132s python3.13-venv python3.13-doc binfmt-support 132s The following NEW packages will be installed: 132s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib python3-all 132s python3-gast python3-iniconfig python3-packaging python3-pluggy 132s python3-pytest python3.13 python3.13-minimal 132s 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. 132s Need to get 6185 kB/6185 kB of archives. 132s After this operation, 24.1 MB of additional disk space will be used. 132s Get:1 /tmp/autopkgtest.g9Onzv/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [724 B] 132s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-minimal s390x 3.13.0-2 [877 kB] 132s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-minimal s390x 3.13.0-2 [2172 kB] 132s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-stdlib s390x 3.13.0-2 [2086 kB] 133s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13 s390x 3.13.0-2 [719 kB] 133s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-all s390x 3.12.7-1 [890 B] 133s Get:7 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-gast all 0.5.2-2 [9394 B] 133s Get:8 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 133s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 133s Get:10 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 133s Get:11 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.3-1 [251 kB] 133s Fetched 6185 kB in 1s (7623 kB/s) 133s Selecting previously unselected package libpython3.13-minimal:s390x. 133s (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 ... 55517 files and directories currently installed.) 133s Preparing to unpack .../00-libpython3.13-minimal_3.13.0-2_s390x.deb ... 133s Unpacking libpython3.13-minimal:s390x (3.13.0-2) ... 133s Selecting previously unselected package python3.13-minimal. 133s Preparing to unpack .../01-python3.13-minimal_3.13.0-2_s390x.deb ... 133s Unpacking python3.13-minimal (3.13.0-2) ... 133s Selecting previously unselected package libpython3.13-stdlib:s390x. 133s Preparing to unpack .../02-libpython3.13-stdlib_3.13.0-2_s390x.deb ... 133s Unpacking libpython3.13-stdlib:s390x (3.13.0-2) ... 133s Selecting previously unselected package python3.13. 133s Preparing to unpack .../03-python3.13_3.13.0-2_s390x.deb ... 133s Unpacking python3.13 (3.13.0-2) ... 133s Selecting previously unselected package python3-all. 133s Preparing to unpack .../04-python3-all_3.12.7-1_s390x.deb ... 133s Unpacking python3-all (3.12.7-1) ... 133s Selecting previously unselected package python3-gast. 133s Preparing to unpack .../05-python3-gast_0.5.2-2_all.deb ... 133s Unpacking python3-gast (0.5.2-2) ... 133s Selecting previously unselected package python3-iniconfig. 133s Preparing to unpack .../06-python3-iniconfig_1.1.1-2_all.deb ... 133s Unpacking python3-iniconfig (1.1.1-2) ... 133s Selecting previously unselected package python3-packaging. 133s Preparing to unpack .../07-python3-packaging_24.1-1_all.deb ... 133s Unpacking python3-packaging (24.1-1) ... 133s Selecting previously unselected package python3-pluggy. 133s Preparing to unpack .../08-python3-pluggy_1.5.0-1_all.deb ... 133s Unpacking python3-pluggy (1.5.0-1) ... 133s Selecting previously unselected package python3-pytest. 133s Preparing to unpack .../09-python3-pytest_8.3.3-1_all.deb ... 133s Unpacking python3-pytest (8.3.3-1) ... 133s Selecting previously unselected package autopkgtest-satdep. 133s Preparing to unpack .../10-1-autopkgtest-satdep.deb ... 133s Unpacking autopkgtest-satdep (0) ... 133s Setting up python3-iniconfig (1.1.1-2) ... 133s Setting up python3-gast (0.5.2-2) ... 133s Setting up libpython3.13-minimal:s390x (3.13.0-2) ... 133s Setting up python3-packaging (24.1-1) ... 134s Setting up python3-pluggy (1.5.0-1) ... 134s Setting up python3.13-minimal (3.13.0-2) ... 134s Setting up libpython3.13-stdlib:s390x (3.13.0-2) ... 134s Setting up python3.13 (3.13.0-2) ... 135s Setting up python3-pytest (8.3.3-1) ... 136s Setting up python3-all (3.12.7-1) ... 136s Setting up autopkgtest-satdep (0) ... 136s Processing triggers for man-db (2.12.1-3) ... 136s Processing triggers for systemd (256.5-2ubuntu4) ... 138s (Reading database ... 56429 files and directories currently installed.) 138s Removing autopkgtest-satdep (0) ... 139s autopkgtest [14:35:34]: test upstream-tests: [----------------------- 139s 'tests' -> '/tmp/autopkgtest.g9Onzv/autopkgtest_tmp/tests' 139s 'tests/__init__.py' -> '/tmp/autopkgtest.g9Onzv/autopkgtest_tmp/tests/__init__.py' 139s 'tests/test_api.py' -> '/tmp/autopkgtest.g9Onzv/autopkgtest_tmp/tests/test_api.py' 139s 'tests/test_compat.py' -> '/tmp/autopkgtest.g9Onzv/autopkgtest_tmp/tests/test_compat.py' 139s 'tests/test_self.py' -> '/tmp/autopkgtest.g9Onzv/autopkgtest_tmp/tests/test_self.py' 139s Running testsuite with python3.13: 139s ============================= test session starts ============================== 139s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 139s rootdir: /tmp/autopkgtest.g9Onzv/autopkgtest_tmp 139s plugins: typeguard-4.4.1 139s collected 36 items 139s 139s tests/test_api.py ....F........F [ 38%] 139s tests/test_compat.py FFFFFFFFFFFFFFFFFFFF [ 94%] 139s tests/test_self.py .. [100%] 139s 139s =================================== FAILURES =================================== 139s ____________________________ APITestCase.test_dump _____________________________ 139s 139s self = 139s 139s def test_dump(self): 139s code = 'lambda x: x' 139s tree = gast.parse(code, mode='eval') 139s dump = gast.dump(tree) 139s norm = ("Expression(body=Lambda(args=arguments(args=[Name(" 139s "id='x', ctx=Param(), " 139s "annotation=None, type_comment=None)], posonlyargs=[], " 139s "vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, " 139s "defaults=[]), body=Name(id='x', ctx=Load(), " 139s "annotation=None, type_comment=None)" 139s "))") 139s > self.assertEqual(dump, norm) 139s E AssertionError: "Expr[59 chars]ram())]), body=Name(id='x', ctx=Load())))" != "Expr[59 chars]ram(), annotation=None, type_comment=None)], p[148 chars]e)))" 139s E - Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param())]), body=Name(id='x', ctx=Load()))) 139s E + Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=Name(id='x', ctx=Load(), annotation=None, type_comment=None))) 139s 139s tests/test_api.py:39: AssertionError 139s ____________________________ APITestCase.test_walk _____________________________ 139s 139s self = 139s 139s def test_walk(self): 139s code = 'x + 1' 139s tree = gast.parse(code, mode='eval') 139s dump = gast.dump(tree) 139s norm = ("Expression(body=BinOp(left=Name(id='x', ctx=Load(), " 139s "annotation=None, type_comment=None), op=Add(), " 139s "right=Constant(value=1, kind=None)))") 139s > self.assertEqual(dump, norm) 139s E AssertionError: "Expr[41 chars]oad()), op=Add(), right=Constant(value=1)))" != "Expr[41 chars]oad(), annotation=None, type_comment=None), op[40 chars]e)))" 139s E - Expression(body=BinOp(left=Name(id='x', ctx=Load()), op=Add(), right=Constant(value=1))) 139s E + Expression(body=BinOp(left=Name(id='x', ctx=Load(), annotation=None, type_comment=None), op=Add(), right=Constant(value=1, kind=None))) 139s E ? ++++++++++++++++++++++++++++++++++++ +++++++++++ 139s 139s tests/test_api.py:48: AssertionError 139s ______________________ CompatTestCase.test_ArgAnnotation _______________________ 139s 139s self = 139s 139s def test_ArgAnnotation(self): 139s code = 'def foo(x:int): pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=" 139s "[Name(id='x', ctx=Param(), annotation=Name" 139s "(id='int', ctx=Load(), annotation=None, type_comment=None" 139s "), type_comment=None)], posonlyargs=" 139s "[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=" 139s "None, defaults=[]), body=[Pass()], decorator_list=[], " 139s "returns=None, type_comment=None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[111 chars]oad()))]), body=[Pass()])])" != "Modu[111 chars]oad(), annotation=None, type_comment=None), ty[186 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='x', ctx=Param(), annotation=Name(id='int', ctx=Load()))]), body=[Pass()])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='x', ctx=Param(), annotation=Name(id='int', ctx=Load(), annotation=None, type_comment=None), type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:42: AssertionError 139s ___________________________ CompatTestCase.test_Call ___________________________ 139s 139s self = 139s 139s def test_Call(self): 139s self.maxDiff = None 139s code = 'foo(x, y=1, *args, **kwargs)' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Expr(value=Call(func=Name(id='foo', ctx=Load" 139s "(), annotation=None, type_comment=None" 139s "), args=[Name(id='x', ctx=Load(), " 139s "annotation=None, type_comment=None), Starred(value=Name(" 139s "id='args', ctx=Load(), annotation=None, type_comment=None)" 139s ", ctx=Load())], keywords=[keyword(" 139s "arg='y', value=Constant(value=1, kind=None)), keyword(arg" 139s "=None, value=Name(id='kwargs', ctx=Load(), annotation=None, " 139s "type_comment=None))]))], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[50 chars]oad()), args=[Name(id='x', ctx=Load()), Starre[149 chars]))])" != "Modu[50 chars]oad(), annotation=None, type_comment=None), ar[331 chars]=[])" 139s E - Module(body=[Expr(value=Call(func=Name(id='foo', ctx=Load()), args=[Name(id='x', ctx=Load()), Starred(value=Name(id='args', ctx=Load()), ctx=Load())], keywords=[keyword(arg='y', value=Constant(value=1)), keyword(value=Name(id='kwargs', ctx=Load()))]))]) 139s E + Module(body=[Expr(value=Call(func=Name(id='foo', ctx=Load(), annotation=None, type_comment=None), args=[Name(id='x', ctx=Load(), annotation=None, type_comment=None), Starred(value=Name(id='args', ctx=Load(), annotation=None, type_comment=None), ctx=Load())], keywords=[keyword(arg='y', value=Constant(value=1, kind=None)), keyword(arg=None, value=Name(id='kwargs', ctx=Load(), annotation=None, type_comment=None))]))], type_ignores=[]) 139s 139s tests/test_compat.py:213: AssertionError 139s _________________________ CompatTestCase.test_Ellipsis _________________________ 139s 139s self = 139s 139s def test_Ellipsis(self): 139s self.maxDiff = None 139s code = 'def foo(a): a[...]' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 139s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 139s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 139s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 139s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 139s ", slice=Constant(value=Ellipsis, kind=None), ctx=Load()))], " 139s "decorator_list=[], returns=None, type_comment=" 139s "None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[67 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[304 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Constant(value=Ellipsis), ctx=Load()))])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Constant(value=Ellipsis, kind=None), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:317: AssertionError 139s _________________________ CompatTestCase.test_ExtSlice _________________________ 139s 139s self = 139s 139s def test_ExtSlice(self): 139s self.maxDiff = None 139s code = 'def foo(a): a[:,:]' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 139s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 139s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 139s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 139s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 139s ", slice=Tuple(elts=[Slice(lower=None, upper=None, step=" 139s "None), Slice(lower=None, upper=None, step=None)], ctx=Load())" 139s ", ctx=Load()))], decorator_list=[], returns=None, " 139s "type_comment=None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[85 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[377 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Tuple(elts=[Slice(), Slice()], ctx=Load()), ctx=Load()))])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Tuple(elts=[Slice(lower=None, upper=None, step=None), Slice(lower=None, upper=None, step=None)], ctx=Load()), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:286: AssertionError 139s _____________________ CompatTestCase.test_ExtSliceEllipsis _____________________ 139s 139s self = 139s 139s def test_ExtSliceEllipsis(self): 139s self.maxDiff = None 139s code = 'def foo(a): a[1, ...]' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 139s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 139s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 139s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 139s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 139s ", slice=Tuple(elts=[Constant(value=1, kind=None)" 139s ", Constant(value=Ellipsis, kind=None)], ctx=Load()), ctx=" 139s "Load()))], decorator_list=[], returns=None, type_comment=" 139s "None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[112 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[360 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Tuple(elts=[Constant(value=1), Constant(value=Ellipsis)], ctx=Load()), ctx=Load()))])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Tuple(elts=[Constant(value=1, kind=None), Constant(value=Ellipsis, kind=None)], ctx=Load()), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:333: AssertionError 139s ________________________ CompatTestCase.test_ExtSlices _________________________ 139s 139s self = 139s 139s def test_ExtSlices(self): 139s self.maxDiff = None 139s code = 'def foo(a): a[1,:]' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 139s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 139s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 139s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 139s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 139s ", slice=Tuple(elts=[Constant(value=1, kind=" 139s "None), Slice(lower=None, upper=None, step=None)], ctx=Load())" 139s ", ctx=Load()))], decorator_list=[], returns=None, " 139s "type_comment=None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[95 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[365 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Tuple(elts=[Constant(value=1), Slice()], ctx=Load()), ctx=Load()))])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Tuple(elts=[Constant(value=1, kind=None), Slice(lower=None, upper=None, step=None)], ctx=Load()), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:302: AssertionError 139s ______________________ CompatTestCase.test_FormattedValue ______________________ 139s 139s self = 139s 139s def test_FormattedValue(self): 139s code = 'e = 1; f"{e}"' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Assign(targets=[Name(id='e', ctx=Store()" 139s ", annotation=None, type_comment=None" 139s ")], value=Constant(value=1, kind=None), " 139s "type_comment=None), Expr(value=" 139s "JoinedStr(values=[FormattedValue(value=Name(id='e', " 139s "ctx=Load(), annotation=None, type_comment=None), " 139s "conversion=-1, format_spec=None)]))], " 139s "type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[44 chars]ore())], value=Constant(value=1)), Expr(value=[80 chars]))])" != "Modu[44 chars]ore(), annotation=None, type_comment=None)], v[217 chars]=[])" 139s E - Module(body=[Assign(targets=[Name(id='e', ctx=Store())], value=Constant(value=1)), Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='e', ctx=Load()), conversion=-1)]))]) 139s E + Module(body=[Assign(targets=[Name(id='e', ctx=Store(), annotation=None, type_comment=None)], value=Constant(value=1, kind=None), type_comment=None), Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='e', ctx=Load(), annotation=None, type_comment=None), conversion=-1, format_spec=None)]))], type_ignores=[]) 139s 139s tests/test_compat.py:70: AssertionError 139s __________________________ CompatTestCase.test_Index ___________________________ 139s 139s self = 139s 139s def test_Index(self): 139s code = 'def foo(a): a[1]' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 139s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 139s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 139s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 139s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 139s ", slice=Constant(value=1, kind=None), ctx=Load()" 139s "))], decorator_list=[], returns=None, type_comment=None)]" 139s ", type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[60 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[297 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Constant(value=1), ctx=Load()))])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Constant(value=1, kind=None), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:270: AssertionError 139s ________________________ CompatTestCase.test_JoinedStr _________________________ 139s 139s self = 139s 139s def test_JoinedStr(self): 139s code = 'e = 1; f"e = {e}"' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Assign(targets=[Name(id='e', ctx=Store()" 139s ", annotation=None, type_comment=None" 139s ")], value=Constant(value=1, kind=None), " 139s "type_comment=None), Expr(value=" 139s "JoinedStr(values=[Constant(value='e = ', kind=None), " 139s "FormattedValue(value=Name(id='e', ctx=Load(), " 139s "annotation=None, type_comment=None), " 139s "conversion=-1, format_spec=None)]))], " 139s "type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[44 chars]ore())], value=Constant(value=1)), Expr(value=[104 chars]))])" != "Modu[44 chars]ore(), annotation=None, type_comment=None)], v[252 chars]=[])" 139s E - Module(body=[Assign(targets=[Name(id='e', ctx=Store())], value=Constant(value=1)), Expr(value=JoinedStr(values=[Constant(value='e = '), FormattedValue(value=Name(id='e', ctx=Load()), conversion=-1)]))]) 139s E + Module(body=[Assign(targets=[Name(id='e', ctx=Store(), annotation=None, type_comment=None)], value=Constant(value=1, kind=None), type_comment=None), Expr(value=JoinedStr(values=[Constant(value='e = ', kind=None), FormattedValue(value=Name(id='e', ctx=Load(), annotation=None, type_comment=None), conversion=-1, format_spec=None)]))], type_ignores=[]) 139s 139s tests/test_compat.py:85: AssertionError 139s ___________________ CompatTestCase.test_KeywordOnlyArgument ____________________ 139s 139s self = 139s 139s def test_KeywordOnlyArgument(self): 139s code = 'def foo(*, x=1): pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=" 139s "[], posonlyargs=[], vararg=None, kwonlyargs=[Name" 139s "(id='x', ctx=Param(), annotation=None, type_comment=None" 139s ")], kw_defaults=[Constant(value=1, kind=None)], kwarg=" 139s "None, defaults=[]), body=[Pass()], decorator_list=[], " 139s "returns=None, type_comment=None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[43 chars]ents(kwonlyargs=[Name(id='x', ctx=Param())], k[45 chars]])])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[224 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(kwonlyargs=[Name(id='x', ctx=Param())], kw_defaults=[Constant(value=1)]), body=[Pass()])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=None, kwonlyargs=[Name(id='x', ctx=Param(), annotation=None, type_comment=None)], kw_defaults=[Constant(value=1, kind=None)], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:54: AssertionError 139s ________________________ CompatTestCase.test_NamedExpr _________________________ 139s 139s self = 139s 139s def test_NamedExpr(self): 139s code = '(x := 1) ' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Expr(value=NamedExpr(target=Name(id='x'," 139s " ctx=Store(), annotation=None, type_comment=None), " 139s "value=Constant(value=1, kind=None)))], type_ignores=" 139s "[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[56 chars]ore()), value=Constant(value=1)))])" != "Modu[56 chars]ore(), annotation=None, type_comment=None), va[49 chars]=[])" 139s E - Module(body=[Expr(value=NamedExpr(target=Name(id='x', ctx=Store()), value=Constant(value=1)))]) 139s E + Module(body=[Expr(value=NamedExpr(target=Name(id='x', ctx=Store(), annotation=None, type_comment=None), value=Constant(value=1, kind=None)))], type_ignores=[]) 139s E ? ++++++++++++++++++++++++++++++++++++ +++++++++++ +++++++++++++++++ 139s 139s tests/test_compat.py:123: AssertionError 139s _______________________ CompatTestCase.test_PosonlyArgs ________________________ 139s 139s self = 139s 139s def test_PosonlyArgs(self): 139s code = 'def foo(a, /, b): pass' 139s tree = gast.parse(code, type_comments=True) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(" 139s "args=[Name(id='b', ctx=Param(), annotation=None, " 139s "type_comment=None)], posonlyargs=[Name(id='a', " 139s "ctx=Param(), annotation=None, type_comment=None)], " 139s "vararg=None, kwonlyargs=[], kw_defaults=[], " 139s "kwarg=None, defaults=[]), body=[Pass()], " 139s "decorator_list=[], returns=None, type_comment=None)" 139s "], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[73 chars]ram())], posonlyargs=[Name(id='a', ctx=Param()[17 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[227 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='b', ctx=Param())], posonlyargs=[Name(id='a', ctx=Param())]), body=[Pass()])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='b', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:113: AssertionError 139s __________________________ CompatTestCase.test_Raise ___________________________ 139s 139s self = 139s 139s def test_Raise(self): 139s codes = ('raise Exception', 139s 'raise "Exception"', 139s 'raise Exception, "err"', 139s 'raise Exception("err")', 139s 'raise E, V, T',) 139s norms = ("Module(body=[Raise(exc=Name(id='Exception', ctx=Load(), " 139s "annotation=None, type_comment=None)," 139s " cause=None)], type_ignores=[])", 139s 139s "Module(body=[Raise(exc=Constant(value='Exception', kind=" 139s "None), cause=None)], type_ignores=[])", 139s 139s "Module(body=[Raise(exc=Call(func=Name(id='Exception', " 139s "ctx=Load(), annotation=None, type_comment=None), " 139s "args=[Constant(value='err', kind=None)], " 139s "keywords=[]), cause=None)], type_ignores=[])", 139s 139s "Module(body=[Raise(exc=Call(func=Name(id='Exception', " 139s "ctx=Load(), annotation=None, type_comment=None), " 139s "args=[Constant(value='err', kind=None)], " 139s "keywords=[]), cause=None)], type_ignores=[])", 139s 139s "Module(body=[Raise(exc=Call(func=Attribute(value=Call(" 139s "func=Name(id='E', ctx=Load(), annotation=None, " 139s "type_comment=None), args=[Name(id='V', ctx=" 139s "Load(), annotation=None, type_comment=None)], keywords=[]), " 139s "attr='with_traceback', ctx=Load" 139s "()), args=[Name(id='T', ctx=Load(), annotation=None, " 139s "type_comment=None)], keywords=[]), " 139s "cause=None)], type_ignores=[])",) 139s 139s if sys.version_info.major == 3: 139s codes = codes[0], codes[1], codes[3] 139s norms = norms[0], norms[1], norms[3] 139s 139s for code, norm in zip(codes, norms): 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[45 chars]oad()))])" != "Modu[45 chars]oad(), annotation=None, type_comment=None), ca[24 chars]=[])" 139s E - Module(body=[Raise(exc=Name(id='Exception', ctx=Load()))]) 139s E + Module(body=[Raise(exc=Name(id='Exception', ctx=Load(), annotation=None, type_comment=None), cause=None)], type_ignores=[]) 139s 139s tests/test_compat.py:197: AssertionError 139s ________________________ CompatTestCase.test_TryExcept _________________________ 139s 139s self = 139s 139s def test_TryExcept(self): 139s code = 'try:pass\nexcept e:pass\nelse:pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(" 139s "type=Name(id='e', ctx=Load(), annotation=None, " 139s "type_comment=None), name=None, body=[Pass()])]" 139s ", orelse=[Pass()], finalbody=[])], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[75 chars]oad()), body=[Pass()])], orelse=[Pass()])])" != "Modu[75 chars]oad(), annotation=None, type_comment=None), na[71 chars]=[])" 139s E - Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load()), body=[Pass()])], orelse=[Pass()])]) 139s E + Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load(), annotation=None, type_comment=None), name=None, body=[Pass()])], orelse=[Pass()], finalbody=[])], type_ignores=[]) 139s 139s tests/test_compat.py:145: AssertionError 139s ______________________ CompatTestCase.test_TryExceptNamed ______________________ 139s 139s self = 139s 139s def test_TryExceptNamed(self): 139s code = 'try:pass\nexcept e as f:pass\nelse:pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(" 139s "type=Name(id='e', ctx=Load(), annotation=None, " 139s "type_comment=None), name=Name(id='f', ctx=" 139s "Store(), annotation=None, type_comment=None), body=[Pass()])]" 139s ", orelse=[Pass()], finalbody=[])], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[75 chars]oad()), name=Name(id='f', ctx=Store()), body=[[25 chars]])])" != "Modu[75 chars]oad(), annotation=None, type_comment=None), na[128 chars]=[])" 139s E - Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load()), name=Name(id='f', ctx=Store()), body=[Pass()])], orelse=[Pass()])]) 139s E + Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load(), annotation=None, type_comment=None), name=Name(id='f', ctx=Store(), annotation=None, type_comment=None), body=[Pass()])], orelse=[Pass()], finalbody=[])], type_ignores=[]) 139s 139s tests/test_compat.py:156: AssertionError 139s ________________________ CompatTestCase.test_TryFinally ________________________ 139s 139s self = 139s 139s def test_TryFinally(self): 139s code = 'try:pass\nfinally:pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[Try(body=[Pass()], handlers=[], orelse=[], " 139s "finalbody=[Pass()])], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: 'Modu[23 chars]()], finalbody=[Pass()])])' != 'Modu[23 chars]()], handlers=[], orelse=[], finalbody=[Pass()[17 chars]=[])' 139s E - Module(body=[Try(body=[Pass()], finalbody=[Pass()])]) 139s E + Module(body=[Try(body=[Pass()], handlers=[], orelse=[], finalbody=[Pass()])], type_ignores=[]) 139s 139s tests/test_compat.py:232: AssertionError 139s ________________________ CompatTestCase.test_TypeIgnore ________________________ 139s 139s self = 139s 139s def test_TypeIgnore(self): 139s code = 'def foo(): pass # type: ignore[excuse]' 139s tree = gast.parse(code, type_comments=True) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(" 139s "args=[], posonlyargs=[], vararg=None, kwonlyargs=[], " 139s "kw_defaults=[], kwarg=None, defaults=[]), body=[" 139s "Pass()], decorator_list=[], returns=None, " 139s "type_comment=None)], type_ignores=" 139s "[TypeIgnore(lineno=1, tag='[excuse]')])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[43 chars]ents(), body=[Pass()])], type_ignores=[TypeIgn[27 chars]')])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[171 chars]')])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(), body=[Pass()])], type_ignores=[TypeIgnore(lineno=1, tag='[excuse]')]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[TypeIgnore(lineno=1, tag='[excuse]')]) 139s 139s tests/test_compat.py:99: AssertionError 139s ___________________________ CompatTestCase.test_With ___________________________ 139s 139s self = 139s 139s def test_With(self): 139s code = 'with open("any"): pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[With(items=[withitem(context_expr=Call(func=" 139s "Name(id='open', ctx=Load(), annotation=None, " 139s "type_comment=None), args=[Constant(value='any', " 139s "kind=None)], keywords=[]), optional_vars=None)], body=[" 139s "Pass()], type_comment=None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[74 chars]oad()), args=[Constant(value='any')]))], body=[Pass()])])" != "Modu[74 chars]oad(), annotation=None, type_comment=None), ar[123 chars]=[])" 139s E - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='open', ctx=Load()), args=[Constant(value='any')]))], body=[Pass()])]) 139s E + Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='open', ctx=Load(), annotation=None, type_comment=None), args=[Constant(value='any', kind=None)], keywords=[]), optional_vars=None)], body=[Pass()], type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:224: AssertionError 139s _____________________ CompatTestCase.test_keyword_argument _____________________ 139s 139s self = 139s 139s def test_keyword_argument(self): 139s code = 'def foo(**a): pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[], " 139s "posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], " 139s "kwarg=Name(id='a', ctx=Param(), annotation=None, " 139s "type_comment=None), defaults=[]), body=[Pass()], " 139s "decorator_list=[], returns=None, type_comment=None)], " 139s "type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[43 chars]ents(kwarg=Name(id='a', ctx=Param())), body=[Pass()])])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[192 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(kwarg=Name(id='a', ctx=Param())), body=[Pass()])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=Name(id='a', ctx=Param(), annotation=None, type_comment=None), defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:256: AssertionError 139s ______________________ CompatTestCase.test_star_argument _______________________ 139s 139s self = 139s 139s def test_star_argument(self): 139s code = 'def foo(*a): pass' 139s tree = gast.parse(code) 139s compile(gast.gast_to_ast(tree), '', 'exec') 139s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[], " 139s "posonlyargs=[], vararg=Name(id='a', ctx=Param(), " 139s "annotation=None, type_comment=None), " 139s "kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), " 139s "body=[Pass()], decorator_list=[], returns=None, " 139s "type_comment=None)], type_ignores=[])") 139s > self.assertEqual(gast.dump(tree), norm) 139s E AssertionError: "Modu[43 chars]ents(vararg=Name(id='a', ctx=Param())), body=[Pass()])])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=Name(id='[192 chars]=[])" 139s E - Module(body=[FunctionDef(name='foo', args=arguments(vararg=Name(id='a', ctx=Param())), body=[Pass()])]) 139s E + Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=Name(id='a', ctx=Param(), annotation=None, type_comment=None), kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[]) 139s 139s tests/test_compat.py:244: AssertionError 139s =============================== warnings summary =============================== 139s tests/test_api.py::APITestCase::test_literal_eval_code 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Expression.__init__ missing 1 required positional argument: 'body'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_api.py: 2 warnings 139s tests/test_compat.py: 12 warnings 139s tests/test_self.py: 652 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Constant.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 11 warnings 139s tests/test_self.py: 93 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: FunctionDef.__init__ missing 1 required positional argument: 'args'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 11 warnings 139s tests/test_self.py: 93 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: FunctionDef.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 9 warnings 139s tests/test_self.py: 54 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Expr.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 2 warnings 139s tests/test_self.py: 465 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Call.__init__ missing 1 required positional argument: 'func'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_Call 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Starred.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 2 warnings 139s tests/test_self.py: 16 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: keyword.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 5 warnings 139s tests/test_self.py: 21 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Subscript.__init__ missing 1 required positional argument: 'slice'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py: 5 warnings 139s tests/test_self.py: 21 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Subscript.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_FormattedValue 139s tests/test_compat.py::CompatTestCase::test_JoinedStr 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: FormattedValue.__init__ missing 1 required positional argument: 'conversion'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_FormattedValue 139s tests/test_compat.py::CompatTestCase::test_JoinedStr 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: FormattedValue.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_NamedExpr 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: NamedExpr.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_NamedExpr 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: NamedExpr.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_TypeIgnore 139s tests/test_compat.py::CompatTestCase::test_TypeIgnore 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: TypeIgnore.__init__ missing 1 required positional argument: 'lineno'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_TypeIgnore 139s tests/test_compat.py::CompatTestCase::test_TypeIgnore 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: TypeIgnore.__init__ missing 1 required positional argument: 'tag'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_compat.py::CompatTestCase::test_With 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: withitem.__init__ missing 1 required positional argument: 'context_expr'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 37 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: alias.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: ClassDef.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 70 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: If.__init__ missing 1 required positional argument: 'test'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 37 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Compare.__init__ missing 1 required positional argument: 'left'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 819 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Attribute.__init__ missing 1 required positional argument: 'attr'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 819 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: Attribute.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'right'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'left'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: GeneratorExp.__init__ missing 1 required positional argument: 'elt'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: comprehension.__init__ missing 1 required positional argument: 'iter'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: comprehension.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: comprehension.__init__ missing 1 required positional argument: 'is_async'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: ListComp.__init__ missing 1 required positional argument: 'elt'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 11 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: BoolOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 17 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: UnaryOp.__init__ missing 1 required positional argument: 'operand'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py: 17 warnings 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: UnaryOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: For.__init__ missing 1 required positional argument: 'iter'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s tests/test_self.py::SelfTestCase::testCompile 139s /usr/lib/python3/dist-packages/gast/astn.py:20: DeprecationWarning: For.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15. 139s new_node = getattr(to, cls)() 139s 139s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 139s =========================== short test summary info ============================ 139s FAILED tests/test_api.py::APITestCase::test_dump - AssertionError: "Expr[59 c... 139s FAILED tests/test_api.py::APITestCase::test_walk - AssertionError: "Expr[41 c... 139s FAILED tests/test_compat.py::CompatTestCase::test_ArgAnnotation - AssertionEr... 139s FAILED tests/test_compat.py::CompatTestCase::test_Call - AssertionError: "Mod... 139s FAILED tests/test_compat.py::CompatTestCase::test_Ellipsis - AssertionError: ... 139s FAILED tests/test_compat.py::CompatTestCase::test_ExtSlice - AssertionError: ... 139s FAILED tests/test_compat.py::CompatTestCase::test_ExtSliceEllipsis - Assertio... 139s FAILED tests/test_compat.py::CompatTestCase::test_ExtSlices - AssertionError:... 139s FAILED tests/test_compat.py::CompatTestCase::test_FormattedValue - AssertionE... 139s FAILED tests/test_compat.py::CompatTestCase::test_Index - AssertionError: "Mo... 139s FAILED tests/test_compat.py::CompatTestCase::test_JoinedStr - AssertionError:... 139s FAILED tests/test_compat.py::CompatTestCase::test_KeywordOnlyArgument - Asser... 139s FAILED tests/test_compat.py::CompatTestCase::test_NamedExpr - AssertionError:... 139s FAILED tests/test_compat.py::CompatTestCase::test_PosonlyArgs - AssertionErro... 139s FAILED tests/test_compat.py::CompatTestCase::test_Raise - AssertionError: "Mo... 139s FAILED tests/test_compat.py::CompatTestCase::test_TryExcept - AssertionError:... 139s FAILED tests/test_compat.py::CompatTestCase::test_TryExceptNamed - AssertionE... 139s FAILED tests/test_compat.py::CompatTestCase::test_TryFinally - AssertionError... 139s FAILED tests/test_compat.py::CompatTestCase::test_TypeIgnore - AssertionError... 139s FAILED tests/test_compat.py::CompatTestCase::test_With - AssertionError: "Mod... 139s FAILED tests/test_compat.py::CompatTestCase::test_keyword_argument - Assertio... 139s FAILED tests/test_compat.py::CompatTestCase::test_star_argument - AssertionEr... 139s ================= 22 failed, 14 passed, 3401 warnings in 0.23s ================= 139s autopkgtest [14:35:35]: test upstream-tests: -----------------------] 140s autopkgtest [14:35:36]: test upstream-tests: - - - - - - - - - - results - - - - - - - - - - 140s upstream-tests FAIL non-zero exit status 1 140s autopkgtest [14:35:36]: test autodep8-python3: preparing testbed 275s autopkgtest [14:37:51]: testbed dpkg architecture: s390x 275s autopkgtest [14:37:51]: testbed apt version: 2.9.8 275s autopkgtest [14:37:51]: @@@@@@@@@@@@@@@@@@@@ test bed setup 276s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 276s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 276s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [962 kB] 276s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [16.5 kB] 276s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [105 kB] 276s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [110 kB] 276s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [639 kB] 276s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [17.4 kB] 276s Fetched 1931 kB in 1s (2312 kB/s) 276s Reading package lists... 278s Reading package lists... 278s Building dependency tree... 278s Reading state information... 278s Calculating upgrade... 278s The following NEW packages will be installed: 278s python3.13-gdbm 278s The following packages will be upgraded: 278s libgnutls30t64 libgpgme11t64 libjson-glib-1.0-0 libjson-glib-1.0-common 278s libpython3-stdlib libutempter0 python3 python3-gdbm python3-minimal 279s 9 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 279s Need to get 1285 kB of archives. 279s After this operation, 103 kB of additional disk space will be used. 279s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-minimal s390x 3.12.7-1 [27.4 kB] 279s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3 s390x 3.12.7-1 [24.0 kB] 279s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libpython3-stdlib s390x 3.12.7-1 [10.0 kB] 279s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls30t64 s390x 3.8.8-2ubuntu1 [950 kB] 279s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-gdbm s390x 3.13.0-2 [31.0 kB] 279s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-gdbm s390x 3.12.7-1 [8642 B] 279s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libgpgme11t64 s390x 1.23.2-5ubuntu4 [151 kB] 279s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 279s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-0 s390x 1.10.0+ds-3 [67.5 kB] 279s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libutempter0 s390x 1.2.1-4 [9708 B] 279s Fetched 1285 kB in 1s (2099 kB/s) 279s (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 ... 55510 files and directories currently installed.) 279s Preparing to unpack .../python3-minimal_3.12.7-1_s390x.deb ... 279s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 279s Setting up python3-minimal (3.12.7-1) ... 280s (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 ... 55510 files and directories currently installed.) 280s Preparing to unpack .../python3_3.12.7-1_s390x.deb ... 280s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 280s Preparing to unpack .../libpython3-stdlib_3.12.7-1_s390x.deb ... 280s Unpacking libpython3-stdlib:s390x (3.12.7-1) over (3.12.6-0ubuntu1) ... 280s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_s390x.deb ... 280s Unpacking libgnutls30t64:s390x (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 280s Setting up libgnutls30t64:s390x (3.8.8-2ubuntu1) ... 280s Selecting previously unselected package python3.13-gdbm. 280s (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 ... 55510 files and directories currently installed.) 280s Preparing to unpack .../0-python3.13-gdbm_3.13.0-2_s390x.deb ... 280s Unpacking python3.13-gdbm (3.13.0-2) ... 280s Preparing to unpack .../1-python3-gdbm_3.12.7-1_s390x.deb ... 280s Unpacking python3-gdbm:s390x (3.12.7-1) over (3.12.6-1ubuntu1) ... 280s Preparing to unpack .../2-libgpgme11t64_1.23.2-5ubuntu4_s390x.deb ... 280s Unpacking libgpgme11t64:s390x (1.23.2-5ubuntu4) over (1.18.0-4.1ubuntu4) ... 280s Preparing to unpack .../3-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 280s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 280s Preparing to unpack .../4-libjson-glib-1.0-0_1.10.0+ds-3_s390x.deb ... 280s Unpacking libjson-glib-1.0-0:s390x (1.10.0+ds-3) over (1.10.0+ds-2) ... 280s Preparing to unpack .../5-libutempter0_1.2.1-4_s390x.deb ... 280s Unpacking libutempter0:s390x (1.2.1-4) over (1.2.1-3build1) ... 280s Setting up libutempter0:s390x (1.2.1-4) ... 280s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 280s Setting up libgpgme11t64:s390x (1.23.2-5ubuntu4) ... 280s Setting up python3.13-gdbm (3.13.0-2) ... 280s Setting up libpython3-stdlib:s390x (3.12.7-1) ... 280s Setting up python3 (3.12.7-1) ... 280s Setting up libjson-glib-1.0-0:s390x (1.10.0+ds-3) ... 280s Setting up python3-gdbm:s390x (3.12.7-1) ... 280s Processing triggers for man-db (2.12.1-3) ... 280s Processing triggers for libc-bin (2.40-1ubuntu3) ... 281s Reading package lists... 281s Building dependency tree... 281s Reading state information... 281s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 281s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 281s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 281s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 281s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 282s Reading package lists... 282s Reading package lists... 282s Building dependency tree... 282s Reading state information... 282s Calculating upgrade... 282s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 282s Reading package lists... 282s Building dependency tree... 282s Reading state information... 283s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 292s Reading package lists... 292s Building dependency tree... 292s Reading state information... 292s Starting pkgProblemResolver with broken count: 0 292s Starting 2 pkgProblemResolver with broken count: 0 292s Done 292s The following additional packages will be installed: 292s libpython3.13-minimal libpython3.13-stdlib python3-all python3-gast 292s python3.13 python3.13-minimal 292s Suggested packages: 292s python3.13-venv python3.13-doc binfmt-support 293s The following NEW packages will be installed: 293s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib python3-all 293s python3-gast python3.13 python3.13-minimal 293s 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. 293s Need to get 5865 kB/5866 kB of archives. 293s After this operation, 22.5 MB of additional disk space will be used. 293s Get:1 /tmp/autopkgtest.g9Onzv/2-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [712 B] 293s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-minimal s390x 3.13.0-2 [877 kB] 293s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-minimal s390x 3.13.0-2 [2172 kB] 293s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-stdlib s390x 3.13.0-2 [2086 kB] 293s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13 s390x 3.13.0-2 [719 kB] 293s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-all s390x 3.12.7-1 [890 B] 293s Get:7 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-gast all 0.5.2-2 [9394 B] 294s Fetched 5865 kB in 1s (7238 kB/s) 294s Selecting previously unselected package libpython3.13-minimal:s390x. 294s (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 ... 55517 files and directories currently installed.) 294s Preparing to unpack .../0-libpython3.13-minimal_3.13.0-2_s390x.deb ... 294s Unpacking libpython3.13-minimal:s390x (3.13.0-2) ... 294s Selecting previously unselected package python3.13-minimal. 294s Preparing to unpack .../1-python3.13-minimal_3.13.0-2_s390x.deb ... 294s Unpacking python3.13-minimal (3.13.0-2) ... 294s Selecting previously unselected package libpython3.13-stdlib:s390x. 294s Preparing to unpack .../2-libpython3.13-stdlib_3.13.0-2_s390x.deb ... 294s Unpacking libpython3.13-stdlib:s390x (3.13.0-2) ... 294s Selecting previously unselected package python3.13. 294s Preparing to unpack .../3-python3.13_3.13.0-2_s390x.deb ... 294s Unpacking python3.13 (3.13.0-2) ... 294s Selecting previously unselected package python3-all. 294s Preparing to unpack .../4-python3-all_3.12.7-1_s390x.deb ... 294s Unpacking python3-all (3.12.7-1) ... 294s Selecting previously unselected package python3-gast. 294s Preparing to unpack .../5-python3-gast_0.5.2-2_all.deb ... 294s Unpacking python3-gast (0.5.2-2) ... 294s Selecting previously unselected package autopkgtest-satdep. 294s Preparing to unpack .../6-2-autopkgtest-satdep.deb ... 294s Unpacking autopkgtest-satdep (0) ... 294s Setting up python3-gast (0.5.2-2) ... 294s Setting up libpython3.13-minimal:s390x (3.13.0-2) ... 294s Setting up python3.13-minimal (3.13.0-2) ... 295s Setting up libpython3.13-stdlib:s390x (3.13.0-2) ... 295s Setting up python3.13 (3.13.0-2) ... 296s Setting up python3-all (3.12.7-1) ... 296s Setting up autopkgtest-satdep (0) ... 296s Processing triggers for man-db (2.12.1-3) ... 296s Processing triggers for systemd (256.5-2ubuntu4) ... 298s (Reading database ... 56265 files and directories currently installed.) 298s Removing autopkgtest-satdep (0) ... 299s autopkgtest [14:38:15]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import gast; print(gast)" ; done 299s autopkgtest [14:38:15]: test autodep8-python3: [----------------------- 299s Testing with python3.13: 299s 299s Testing with python3.12: 299s 299s autopkgtest [14:38:15]: test autodep8-python3: -----------------------] 300s autodep8-python3 PASS (superficial) 300s autopkgtest [14:38:16]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - 300s autopkgtest [14:38:16]: @@@@@@@@@@@@@@@@@@@@ summary 300s upstream-tests FAIL non-zero exit status 1 300s autodep8-python3 PASS (superficial) 313s nova [W] Using flock in prodstack6-s390x 313s Creating nova instance adt-plucky-s390x-python-gast-20241113-143315-juju-7f2275-prod-proposed-migration-environment-20-4d6d7955-0a1f-49e8-ad3d-673b7cecfb8d from image adt/ubuntu-plucky-s390x-server-20241113.img (UUID e740277e-1f72-40ae-bfbe-46030537c71c)... 313s nova [W] Using flock in prodstack6-s390x 313s Creating nova instance adt-plucky-s390x-python-gast-20241113-143315-juju-7f2275-prod-proposed-migration-environment-20-4d6d7955-0a1f-49e8-ad3d-673b7cecfb8d from image adt/ubuntu-plucky-s390x-server-20241113.img (UUID e740277e-1f72-40ae-bfbe-46030537c71c)...