0s autopkgtest [22:04:37]: starting date and time: 2024-11-13 22:04:37+0000 0s autopkgtest [22:04:37]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [22:04:37]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.pz_0_2n2/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-ppc64el-23.secgroup --name adt-plucky-ppc64el-python-gast-20241113-220437-juju-7f2275-prod-proposed-migration-environment-15-84a63a57-7769-42a4-ba32-9e2f9a8d9869 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-ppc64el -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/ 114s autopkgtest [22:06:31]: testbed dpkg architecture: ppc64el 115s autopkgtest [22:06:32]: testbed apt version: 2.9.8 115s autopkgtest [22:06:32]: @@@@@@@@@@@@@@@@@@@@ test bed setup 115s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 117s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [974 kB] 117s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 117s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [17.2 kB] 117s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [101 kB] 117s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [110 kB] 117s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [684 kB] 117s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [20.8 kB] 117s Fetched 1986 kB in 1s (2054 kB/s) 117s Reading package lists... 120s Reading package lists... 120s Building dependency tree... 120s Reading state information... 120s Calculating upgrade... 121s The following NEW packages will be installed: 121s python3.13-gdbm 121s The following packages will be upgraded: 121s bpfcc-tools bpftrace libbpfcc libgnutls30t64 libjson-glib-1.0-0 121s libjson-glib-1.0-common libnewt0.52 libpython3-stdlib libutempter0 python3 121s python3-bpfcc python3-gdbm python3-minimal python3-newt whiptail 121s 15 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 121s Need to get 4700 kB of archives. 121s After this operation, 215 kB of additional disk space will be used. 121s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.12.7-1 [27.4 kB] 121s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.12.7-1 [24.0 kB] 121s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.12.7-1 [10.0 kB] 121s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgnutls30t64 ppc64el 3.8.8-2ubuntu1 [1072 kB] 121s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-newt ppc64el 0.52.24-2ubuntu4 [21.8 kB] 121s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el libnewt0.52 ppc64el 0.52.24-2ubuntu4 [62.1 kB] 121s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el whiptail ppc64el 0.52.24-2ubuntu4 [19.5 kB] 121s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-gdbm ppc64el 3.13.0-2 [31.5 kB] 121s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-gdbm ppc64el 3.12.7-1 [8640 B] 121s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libbpfcc ppc64el 0.30.0+ds-1ubuntu5 [696 kB] 121s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-bpfcc all 0.30.0+ds-1ubuntu5 [40.4 kB] 121s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el bpfcc-tools all 0.30.0+ds-1ubuntu5 [697 kB] 121s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el bpftrace ppc64el 0.21.2-2ubuntu2 [1898 kB] 122s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 122s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-glib-1.0-0 ppc64el 1.10.0+ds-3 [76.0 kB] 122s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el libutempter0 ppc64el 1.2.1-4 [9850 B] 122s Fetched 4700 kB in 1s (5120 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 ... 73767 files and directories currently installed.) 122s Preparing to unpack .../python3-minimal_3.12.7-1_ppc64el.deb ... 122s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 122s Setting up python3-minimal (3.12.7-1) ... 123s (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 ... 73767 files and directories currently installed.) 123s Preparing to unpack .../python3_3.12.7-1_ppc64el.deb ... 123s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 123s Preparing to unpack .../libpython3-stdlib_3.12.7-1_ppc64el.deb ... 123s Unpacking libpython3-stdlib:ppc64el (3.12.7-1) over (3.12.6-0ubuntu1) ... 123s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_ppc64el.deb ... 123s Unpacking libgnutls30t64:ppc64el (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 123s Setting up libgnutls30t64:ppc64el (3.8.8-2ubuntu1) ... 123s (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 ... 73767 files and directories currently installed.) 123s Preparing to unpack .../00-python3-newt_0.52.24-2ubuntu4_ppc64el.deb ... 123s Unpacking python3-newt:ppc64el (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 123s Preparing to unpack .../01-libnewt0.52_0.52.24-2ubuntu4_ppc64el.deb ... 123s Unpacking libnewt0.52:ppc64el (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 123s Preparing to unpack .../02-whiptail_0.52.24-2ubuntu4_ppc64el.deb ... 123s Unpacking whiptail (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 123s Selecting previously unselected package python3.13-gdbm. 123s Preparing to unpack .../03-python3.13-gdbm_3.13.0-2_ppc64el.deb ... 123s Unpacking python3.13-gdbm (3.13.0-2) ... 123s Preparing to unpack .../04-python3-gdbm_3.12.7-1_ppc64el.deb ... 123s Unpacking python3-gdbm:ppc64el (3.12.7-1) over (3.12.6-1ubuntu1) ... 123s Preparing to unpack .../05-libbpfcc_0.30.0+ds-1ubuntu5_ppc64el.deb ... 123s Unpacking libbpfcc:ppc64el (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 123s Preparing to unpack .../06-python3-bpfcc_0.30.0+ds-1ubuntu5_all.deb ... 123s Unpacking python3-bpfcc (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 123s Preparing to unpack .../07-bpfcc-tools_0.30.0+ds-1ubuntu5_all.deb ... 123s Unpacking bpfcc-tools (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 123s Preparing to unpack .../08-bpftrace_0.21.2-2ubuntu2_ppc64el.deb ... 123s Unpacking bpftrace (0.21.2-2ubuntu2) over (0.21.2-2) ... 124s Preparing to unpack .../09-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 124s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 124s Preparing to unpack .../10-libjson-glib-1.0-0_1.10.0+ds-3_ppc64el.deb ... 124s Unpacking libjson-glib-1.0-0:ppc64el (1.10.0+ds-3) over (1.10.0+ds-2) ... 124s Preparing to unpack .../11-libutempter0_1.2.1-4_ppc64el.deb ... 124s Unpacking libutempter0:ppc64el (1.2.1-4) over (1.2.1-3build1) ... 124s Setting up libnewt0.52:ppc64el (0.52.24-2ubuntu4) ... 124s Setting up libutempter0:ppc64el (1.2.1-4) ... 124s Setting up whiptail (0.52.24-2ubuntu4) ... 124s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 124s Setting up libbpfcc:ppc64el (0.30.0+ds-1ubuntu5) ... 124s Setting up python3.13-gdbm (3.13.0-2) ... 124s Setting up libpython3-stdlib:ppc64el (3.12.7-1) ... 124s Setting up bpftrace (0.21.2-2ubuntu2) ... 124s Setting up python3 (3.12.7-1) ... 124s Setting up python3-newt:ppc64el (0.52.24-2ubuntu4) ... 124s Setting up libjson-glib-1.0-0:ppc64el (1.10.0+ds-3) ... 124s Setting up python3-bpfcc (0.30.0+ds-1ubuntu5) ... 124s Setting up python3-gdbm:ppc64el (3.12.7-1) ... 124s Setting up bpfcc-tools (0.30.0+ds-1ubuntu5) ... 124s Processing triggers for man-db (2.12.1-3) ... 126s Processing triggers for libc-bin (2.40-1ubuntu3) ... 126s Reading package lists... 127s Building dependency tree... 127s Reading state information... 127s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 127s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 128s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 128s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 128s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 129s Reading package lists... 129s Reading package lists... 129s Building dependency tree... 129s Reading state information... 130s Calculating upgrade... 130s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 130s Reading package lists... 130s Building dependency tree... 130s Reading state information... 131s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 134s autopkgtest [22:06:51]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 135s autopkgtest [22:06:52]: @@@@@@@@@@@@@@@@@@@@ apt-source python-gast 136s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-gast 0.5.2-2 (dsc) [1534 B] 136s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-gast 0.5.2-2 (tar) [14.5 kB] 136s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-gast 0.5.2-2 (diff) [3072 B] 137s gpgv: Signature made Mon Oct 11 21:44:53 2021 UTC 137s gpgv: using EDDSA key EE9AD6F90520FA11F69F4824477B0DB0263A54D8 137s gpgv: issuer "stefanor@debian.org" 137s gpgv: Can't check signature: No public key 137s dpkg-source: warning: cannot verify inline signature for ./python-gast_0.5.2-2.dsc: no acceptable signature found 137s autopkgtest [22:06:54]: testing package python-gast version 0.5.2-2 137s autopkgtest [22:06:54]: build not needed 137s autopkgtest [22:06:54]: test upstream-tests: preparing testbed 139s Reading package lists... 140s Building dependency tree... 140s Reading state information... 140s Starting pkgProblemResolver with broken count: 0 140s Starting 2 pkgProblemResolver with broken count: 0 140s Done 140s The following additional packages will be installed: 140s libpython3.13-minimal libpython3.13-stdlib python3-all python3-gast 140s python3-iniconfig python3-packaging python3-pluggy python3-pytest python3.13 140s python3.13-minimal 140s Suggested packages: 140s python3.13-venv python3.13-doc binfmt-support 140s The following NEW packages will be installed: 140s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib python3-all 140s python3-gast python3-iniconfig python3-packaging python3-pluggy 140s python3-pytest python3.13 python3.13-minimal 140s 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. 140s Need to get 6380 kB/6381 kB of archives. 140s After this operation, 27.4 MB of additional disk space will be used. 140s Get:1 /tmp/autopkgtest.74euE0/1-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [720 B] 140s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.0-2 [881 kB] 141s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.0-2 [2302 kB] 141s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.0-2 [2148 kB] 141s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.0-2 [719 kB] 141s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-all ppc64el 3.12.7-1 [888 B] 141s Get:7 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-gast all 0.5.2-2 [9394 B] 141s Get:8 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 141s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.1-1 [41.4 kB] 141s Get:10 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 141s Get:11 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 142s Fetched 6380 kB in 1s (6204 kB/s) 142s Selecting previously unselected package libpython3.13-minimal:ppc64el. 142s (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 ... 73775 files and directories currently installed.) 142s Preparing to unpack .../00-libpython3.13-minimal_3.13.0-2_ppc64el.deb ... 142s Unpacking libpython3.13-minimal:ppc64el (3.13.0-2) ... 142s Selecting previously unselected package python3.13-minimal. 142s Preparing to unpack .../01-python3.13-minimal_3.13.0-2_ppc64el.deb ... 142s Unpacking python3.13-minimal (3.13.0-2) ... 142s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 142s Preparing to unpack .../02-libpython3.13-stdlib_3.13.0-2_ppc64el.deb ... 142s Unpacking libpython3.13-stdlib:ppc64el (3.13.0-2) ... 142s Selecting previously unselected package python3.13. 142s Preparing to unpack .../03-python3.13_3.13.0-2_ppc64el.deb ... 142s Unpacking python3.13 (3.13.0-2) ... 142s Selecting previously unselected package python3-all. 142s Preparing to unpack .../04-python3-all_3.12.7-1_ppc64el.deb ... 142s Unpacking python3-all (3.12.7-1) ... 142s Selecting previously unselected package python3-gast. 142s Preparing to unpack .../05-python3-gast_0.5.2-2_all.deb ... 142s Unpacking python3-gast (0.5.2-2) ... 142s Selecting previously unselected package python3-iniconfig. 142s Preparing to unpack .../06-python3-iniconfig_1.1.1-2_all.deb ... 142s Unpacking python3-iniconfig (1.1.1-2) ... 142s Selecting previously unselected package python3-packaging. 142s Preparing to unpack .../07-python3-packaging_24.1-1_all.deb ... 142s Unpacking python3-packaging (24.1-1) ... 142s Selecting previously unselected package python3-pluggy. 142s Preparing to unpack .../08-python3-pluggy_1.5.0-1_all.deb ... 142s Unpacking python3-pluggy (1.5.0-1) ... 142s Selecting previously unselected package python3-pytest. 142s Preparing to unpack .../09-python3-pytest_8.3.3-1_all.deb ... 142s Unpacking python3-pytest (8.3.3-1) ... 142s Selecting previously unselected package autopkgtest-satdep. 142s Preparing to unpack .../10-1-autopkgtest-satdep.deb ... 142s Unpacking autopkgtest-satdep (0) ... 142s Setting up python3-iniconfig (1.1.1-2) ... 143s Setting up python3-gast (0.5.2-2) ... 143s Setting up libpython3.13-minimal:ppc64el (3.13.0-2) ... 143s Setting up python3-packaging (24.1-1) ... 143s Setting up python3-pluggy (1.5.0-1) ... 143s Setting up python3.13-minimal (3.13.0-2) ... 144s Setting up libpython3.13-stdlib:ppc64el (3.13.0-2) ... 144s Setting up python3.13 (3.13.0-2) ... 146s Setting up python3-pytest (8.3.3-1) ... 146s Setting up python3-all (3.12.7-1) ... 146s Setting up autopkgtest-satdep (0) ... 146s Processing triggers for man-db (2.12.1-3) ... 147s Processing triggers for systemd (256.5-2ubuntu4) ... 150s (Reading database ... 74687 files and directories currently installed.) 150s Removing autopkgtest-satdep (0) ... 151s autopkgtest [22:07:08]: test upstream-tests: [----------------------- 151s 'tests' -> '/tmp/autopkgtest.74euE0/autopkgtest_tmp/tests' 151s 'tests/__init__.py' -> '/tmp/autopkgtest.74euE0/autopkgtest_tmp/tests/__init__.py' 151s 'tests/test_api.py' -> '/tmp/autopkgtest.74euE0/autopkgtest_tmp/tests/test_api.py' 151s 'tests/test_compat.py' -> '/tmp/autopkgtest.74euE0/autopkgtest_tmp/tests/test_compat.py' 151s 'tests/test_self.py' -> '/tmp/autopkgtest.74euE0/autopkgtest_tmp/tests/test_self.py' 151s Running testsuite with python3.13: 151s ============================= test session starts ============================== 151s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 151s rootdir: /tmp/autopkgtest.74euE0/autopkgtest_tmp 151s plugins: typeguard-4.4.1 151s collected 36 items 151s 151s tests/test_api.py ....F........F [ 38%] 152s tests/test_compat.py FFFFFFFFFFFFFFFFFFFF [ 94%] 152s tests/test_self.py .. [100%] 152s 152s =================================== FAILURES =================================== 152s ____________________________ APITestCase.test_dump _____________________________ 152s 152s self = 152s 152s def test_dump(self): 152s code = 'lambda x: x' 152s tree = gast.parse(code, mode='eval') 152s dump = gast.dump(tree) 152s norm = ("Expression(body=Lambda(args=arguments(args=[Name(" 152s "id='x', ctx=Param(), " 152s "annotation=None, type_comment=None)], posonlyargs=[], " 152s "vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, " 152s "defaults=[]), body=Name(id='x', ctx=Load(), " 152s "annotation=None, type_comment=None)" 152s "))") 152s > self.assertEqual(dump, norm) 152s 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)))" 152s E - Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param())]), body=Name(id='x', ctx=Load()))) 152s 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))) 152s 152s tests/test_api.py:39: AssertionError 152s ____________________________ APITestCase.test_walk _____________________________ 152s 152s self = 152s 152s def test_walk(self): 152s code = 'x + 1' 152s tree = gast.parse(code, mode='eval') 152s dump = gast.dump(tree) 152s norm = ("Expression(body=BinOp(left=Name(id='x', ctx=Load(), " 152s "annotation=None, type_comment=None), op=Add(), " 152s "right=Constant(value=1, kind=None)))") 152s > self.assertEqual(dump, norm) 152s 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)))" 152s E - Expression(body=BinOp(left=Name(id='x', ctx=Load()), op=Add(), right=Constant(value=1))) 152s E + Expression(body=BinOp(left=Name(id='x', ctx=Load(), annotation=None, type_comment=None), op=Add(), right=Constant(value=1, kind=None))) 152s E ? ++++++++++++++++++++++++++++++++++++ +++++++++++ 152s 152s tests/test_api.py:48: AssertionError 152s ______________________ CompatTestCase.test_ArgAnnotation _______________________ 152s 152s self = 152s 152s def test_ArgAnnotation(self): 152s code = 'def foo(x:int): pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=" 152s "[Name(id='x', ctx=Param(), annotation=Name" 152s "(id='int', ctx=Load(), annotation=None, type_comment=None" 152s "), type_comment=None)], posonlyargs=" 152s "[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=" 152s "None, defaults=[]), body=[Pass()], decorator_list=[], " 152s "returns=None, type_comment=None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: "Modu[111 chars]oad()))]), body=[Pass()])])" != "Modu[111 chars]oad(), annotation=None, type_comment=None), ty[186 chars]=[])" 152s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='x', ctx=Param(), annotation=Name(id='int', ctx=Load()))]), body=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:42: AssertionError 152s ___________________________ CompatTestCase.test_Call ___________________________ 152s 152s self = 152s 152s def test_Call(self): 152s self.maxDiff = None 152s code = 'foo(x, y=1, *args, **kwargs)' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Expr(value=Call(func=Name(id='foo', ctx=Load" 152s "(), annotation=None, type_comment=None" 152s "), args=[Name(id='x', ctx=Load(), " 152s "annotation=None, type_comment=None), Starred(value=Name(" 152s "id='args', ctx=Load(), annotation=None, type_comment=None)" 152s ", ctx=Load())], keywords=[keyword(" 152s "arg='y', value=Constant(value=1, kind=None)), keyword(arg" 152s "=None, value=Name(id='kwargs', ctx=Load(), annotation=None, " 152s "type_comment=None))]))], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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()))]))]) 152s 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=[]) 152s 152s tests/test_compat.py:213: AssertionError 152s _________________________ CompatTestCase.test_Ellipsis _________________________ 152s 152s self = 152s 152s def test_Ellipsis(self): 152s self.maxDiff = None 152s code = 'def foo(a): a[...]' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 152s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 152s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 152s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 152s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 152s ", slice=Constant(value=Ellipsis, kind=None), ctx=Load()))], " 152s "decorator_list=[], returns=None, type_comment=" 152s "None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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()))])]) 152s 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=[]) 152s 152s tests/test_compat.py:317: AssertionError 152s _________________________ CompatTestCase.test_ExtSlice _________________________ 152s 152s self = 152s 152s def test_ExtSlice(self): 152s self.maxDiff = None 152s code = 'def foo(a): a[:,:]' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 152s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 152s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 152s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 152s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 152s ", slice=Tuple(elts=[Slice(lower=None, upper=None, step=" 152s "None), Slice(lower=None, upper=None, step=None)], ctx=Load())" 152s ", ctx=Load()))], decorator_list=[], returns=None, " 152s "type_comment=None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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()))])]) 152s 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=[]) 152s 152s tests/test_compat.py:286: AssertionError 152s _____________________ CompatTestCase.test_ExtSliceEllipsis _____________________ 152s 152s self = 152s 152s def test_ExtSliceEllipsis(self): 152s self.maxDiff = None 152s code = 'def foo(a): a[1, ...]' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 152s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 152s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 152s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 152s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 152s ", slice=Tuple(elts=[Constant(value=1, kind=None)" 152s ", Constant(value=Ellipsis, kind=None)], ctx=Load()), ctx=" 152s "Load()))], decorator_list=[], returns=None, type_comment=" 152s "None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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()))])]) 152s 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=[]) 152s 152s tests/test_compat.py:333: AssertionError 152s ________________________ CompatTestCase.test_ExtSlices _________________________ 152s 152s self = 152s 152s def test_ExtSlices(self): 152s self.maxDiff = None 152s code = 'def foo(a): a[1,:]' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 152s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 152s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 152s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 152s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 152s ", slice=Tuple(elts=[Constant(value=1, kind=" 152s "None), Slice(lower=None, upper=None, step=None)], ctx=Load())" 152s ", ctx=Load()))], decorator_list=[], returns=None, " 152s "type_comment=None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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()))])]) 152s 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=[]) 152s 152s tests/test_compat.py:302: AssertionError 152s ______________________ CompatTestCase.test_FormattedValue ______________________ 152s 152s self = 152s 152s def test_FormattedValue(self): 152s code = 'e = 1; f"{e}"' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Assign(targets=[Name(id='e', ctx=Store()" 152s ", annotation=None, type_comment=None" 152s ")], value=Constant(value=1, kind=None), " 152s "type_comment=None), Expr(value=" 152s "JoinedStr(values=[FormattedValue(value=Name(id='e', " 152s "ctx=Load(), annotation=None, type_comment=None), " 152s "conversion=-1, format_spec=None)]))], " 152s "type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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)]))]) 152s 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=[]) 152s 152s tests/test_compat.py:70: AssertionError 152s __________________________ CompatTestCase.test_Index ___________________________ 152s 152s self = 152s 152s def test_Index(self): 152s code = 'def foo(a): a[1]' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[" 152s "Name(id='a', ctx=Param(), annotation=None, type_comment=None)" 152s "], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[]" 152s ", kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=" 152s "Name(id='a', ctx=Load(), annotation=None, type_comment=None)" 152s ", slice=Constant(value=1, kind=None), ctx=Load()" 152s "))], decorator_list=[], returns=None, type_comment=None)]" 152s ", type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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()))])]) 152s 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=[]) 152s 152s tests/test_compat.py:270: AssertionError 152s ________________________ CompatTestCase.test_JoinedStr _________________________ 152s 152s self = 152s 152s def test_JoinedStr(self): 152s code = 'e = 1; f"e = {e}"' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Assign(targets=[Name(id='e', ctx=Store()" 152s ", annotation=None, type_comment=None" 152s ")], value=Constant(value=1, kind=None), " 152s "type_comment=None), Expr(value=" 152s "JoinedStr(values=[Constant(value='e = ', kind=None), " 152s "FormattedValue(value=Name(id='e', ctx=Load(), " 152s "annotation=None, type_comment=None), " 152s "conversion=-1, format_spec=None)]))], " 152s "type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s 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)]))]) 152s 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=[]) 152s 152s tests/test_compat.py:85: AssertionError 152s ___________________ CompatTestCase.test_KeywordOnlyArgument ____________________ 152s 152s self = 152s 152s def test_KeywordOnlyArgument(self): 152s code = 'def foo(*, x=1): pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=" 152s "[], posonlyargs=[], vararg=None, kwonlyargs=[Name" 152s "(id='x', ctx=Param(), annotation=None, type_comment=None" 152s ")], kw_defaults=[Constant(value=1, kind=None)], kwarg=" 152s "None, defaults=[]), body=[Pass()], decorator_list=[], " 152s "returns=None, type_comment=None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s E - Module(body=[FunctionDef(name='foo', args=arguments(kwonlyargs=[Name(id='x', ctx=Param())], kw_defaults=[Constant(value=1)]), body=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:54: AssertionError 152s ________________________ CompatTestCase.test_NamedExpr _________________________ 152s 152s self = 152s 152s def test_NamedExpr(self): 152s code = '(x := 1) ' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Expr(value=NamedExpr(target=Name(id='x'," 152s " ctx=Store(), annotation=None, type_comment=None), " 152s "value=Constant(value=1, kind=None)))], type_ignores=" 152s "[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: "Modu[56 chars]ore()), value=Constant(value=1)))])" != "Modu[56 chars]ore(), annotation=None, type_comment=None), va[49 chars]=[])" 152s E - Module(body=[Expr(value=NamedExpr(target=Name(id='x', ctx=Store()), value=Constant(value=1)))]) 152s 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=[]) 152s E ? ++++++++++++++++++++++++++++++++++++ +++++++++++ +++++++++++++++++ 152s 152s tests/test_compat.py:123: AssertionError 152s _______________________ CompatTestCase.test_PosonlyArgs ________________________ 152s 152s self = 152s 152s def test_PosonlyArgs(self): 152s code = 'def foo(a, /, b): pass' 152s tree = gast.parse(code, type_comments=True) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(" 152s "args=[Name(id='b', ctx=Param(), annotation=None, " 152s "type_comment=None)], posonlyargs=[Name(id='a', " 152s "ctx=Param(), annotation=None, type_comment=None)], " 152s "vararg=None, kwonlyargs=[], kw_defaults=[], " 152s "kwarg=None, defaults=[]), body=[Pass()], " 152s "decorator_list=[], returns=None, type_comment=None)" 152s "], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s E - Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='b', ctx=Param())], posonlyargs=[Name(id='a', ctx=Param())]), body=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:113: AssertionError 152s __________________________ CompatTestCase.test_Raise ___________________________ 152s 152s self = 152s 152s def test_Raise(self): 152s codes = ('raise Exception', 152s 'raise "Exception"', 152s 'raise Exception, "err"', 152s 'raise Exception("err")', 152s 'raise E, V, T',) 152s norms = ("Module(body=[Raise(exc=Name(id='Exception', ctx=Load(), " 152s "annotation=None, type_comment=None)," 152s " cause=None)], type_ignores=[])", 152s 152s "Module(body=[Raise(exc=Constant(value='Exception', kind=" 152s "None), cause=None)], type_ignores=[])", 152s 152s "Module(body=[Raise(exc=Call(func=Name(id='Exception', " 152s "ctx=Load(), annotation=None, type_comment=None), " 152s "args=[Constant(value='err', kind=None)], " 152s "keywords=[]), cause=None)], type_ignores=[])", 152s 152s "Module(body=[Raise(exc=Call(func=Name(id='Exception', " 152s "ctx=Load(), annotation=None, type_comment=None), " 152s "args=[Constant(value='err', kind=None)], " 152s "keywords=[]), cause=None)], type_ignores=[])", 152s 152s "Module(body=[Raise(exc=Call(func=Attribute(value=Call(" 152s "func=Name(id='E', ctx=Load(), annotation=None, " 152s "type_comment=None), args=[Name(id='V', ctx=" 152s "Load(), annotation=None, type_comment=None)], keywords=[]), " 152s "attr='with_traceback', ctx=Load" 152s "()), args=[Name(id='T', ctx=Load(), annotation=None, " 152s "type_comment=None)], keywords=[]), " 152s "cause=None)], type_ignores=[])",) 152s 152s if sys.version_info.major == 3: 152s codes = codes[0], codes[1], codes[3] 152s norms = norms[0], norms[1], norms[3] 152s 152s for code, norm in zip(codes, norms): 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: "Modu[45 chars]oad()))])" != "Modu[45 chars]oad(), annotation=None, type_comment=None), ca[24 chars]=[])" 152s E - Module(body=[Raise(exc=Name(id='Exception', ctx=Load()))]) 152s E + Module(body=[Raise(exc=Name(id='Exception', ctx=Load(), annotation=None, type_comment=None), cause=None)], type_ignores=[]) 152s 152s tests/test_compat.py:197: AssertionError 152s ________________________ CompatTestCase.test_TryExcept _________________________ 152s 152s self = 152s 152s def test_TryExcept(self): 152s code = 'try:pass\nexcept e:pass\nelse:pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(" 152s "type=Name(id='e', ctx=Load(), annotation=None, " 152s "type_comment=None), name=None, body=[Pass()])]" 152s ", orelse=[Pass()], finalbody=[])], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: "Modu[75 chars]oad()), body=[Pass()])], orelse=[Pass()])])" != "Modu[75 chars]oad(), annotation=None, type_comment=None), na[71 chars]=[])" 152s E - Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load()), body=[Pass()])], orelse=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:145: AssertionError 152s ______________________ CompatTestCase.test_TryExceptNamed ______________________ 152s 152s self = 152s 152s def test_TryExceptNamed(self): 152s code = 'try:pass\nexcept e as f:pass\nelse:pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(" 152s "type=Name(id='e', ctx=Load(), annotation=None, " 152s "type_comment=None), name=Name(id='f', ctx=" 152s "Store(), annotation=None, type_comment=None), body=[Pass()])]" 152s ", orelse=[Pass()], finalbody=[])], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s E - Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load()), name=Name(id='f', ctx=Store()), body=[Pass()])], orelse=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:156: AssertionError 152s ________________________ CompatTestCase.test_TryFinally ________________________ 152s 152s self = 152s 152s def test_TryFinally(self): 152s code = 'try:pass\nfinally:pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[Try(body=[Pass()], handlers=[], orelse=[], " 152s "finalbody=[Pass()])], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: 'Modu[23 chars]()], finalbody=[Pass()])])' != 'Modu[23 chars]()], handlers=[], orelse=[], finalbody=[Pass()[17 chars]=[])' 152s E - Module(body=[Try(body=[Pass()], finalbody=[Pass()])]) 152s E + Module(body=[Try(body=[Pass()], handlers=[], orelse=[], finalbody=[Pass()])], type_ignores=[]) 152s 152s tests/test_compat.py:232: AssertionError 152s ________________________ CompatTestCase.test_TypeIgnore ________________________ 152s 152s self = 152s 152s def test_TypeIgnore(self): 152s code = 'def foo(): pass # type: ignore[excuse]' 152s tree = gast.parse(code, type_comments=True) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(" 152s "args=[], posonlyargs=[], vararg=None, kwonlyargs=[], " 152s "kw_defaults=[], kwarg=None, defaults=[]), body=[" 152s "Pass()], decorator_list=[], returns=None, " 152s "type_comment=None)], type_ignores=" 152s "[TypeIgnore(lineno=1, tag='[excuse]')])") 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: "Modu[43 chars]ents(), body=[Pass()])], type_ignores=[TypeIgn[27 chars]')])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[171 chars]')])" 152s E - Module(body=[FunctionDef(name='foo', args=arguments(), body=[Pass()])], type_ignores=[TypeIgnore(lineno=1, tag='[excuse]')]) 152s 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]')]) 152s 152s tests/test_compat.py:99: AssertionError 152s ___________________________ CompatTestCase.test_With ___________________________ 152s 152s self = 152s 152s def test_With(self): 152s code = 'with open("any"): pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[With(items=[withitem(context_expr=Call(func=" 152s "Name(id='open', ctx=Load(), annotation=None, " 152s "type_comment=None), args=[Constant(value='any', " 152s "kind=None)], keywords=[]), optional_vars=None)], body=[" 152s "Pass()], type_comment=None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s E AssertionError: "Modu[74 chars]oad()), args=[Constant(value='any')]))], body=[Pass()])])" != "Modu[74 chars]oad(), annotation=None, type_comment=None), ar[123 chars]=[])" 152s E - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='open', ctx=Load()), args=[Constant(value='any')]))], body=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:224: AssertionError 152s _____________________ CompatTestCase.test_keyword_argument _____________________ 152s 152s self = 152s 152s def test_keyword_argument(self): 152s code = 'def foo(**a): pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[], " 152s "posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], " 152s "kwarg=Name(id='a', ctx=Param(), annotation=None, " 152s "type_comment=None), defaults=[]), body=[Pass()], " 152s "decorator_list=[], returns=None, type_comment=None)], " 152s "type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s E - Module(body=[FunctionDef(name='foo', args=arguments(kwarg=Name(id='a', ctx=Param())), body=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:256: AssertionError 152s ______________________ CompatTestCase.test_star_argument _______________________ 152s 152s self = 152s 152s def test_star_argument(self): 152s code = 'def foo(*a): pass' 152s tree = gast.parse(code) 152s compile(gast.gast_to_ast(tree), '', 'exec') 152s norm = ("Module(body=[FunctionDef(name='foo', args=arguments(args=[], " 152s "posonlyargs=[], vararg=Name(id='a', ctx=Param(), " 152s "annotation=None, type_comment=None), " 152s "kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), " 152s "body=[Pass()], decorator_list=[], returns=None, " 152s "type_comment=None)], type_ignores=[])") 152s > self.assertEqual(gast.dump(tree), norm) 152s 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]=[])" 152s E - Module(body=[FunctionDef(name='foo', args=arguments(vararg=Name(id='a', ctx=Param())), body=[Pass()])]) 152s 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=[]) 152s 152s tests/test_compat.py:244: AssertionError 152s =============================== warnings summary =============================== 152s tests/test_api.py::APITestCase::test_literal_eval_code 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_api.py: 2 warnings 152s tests/test_compat.py: 12 warnings 152s tests/test_self.py: 652 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 11 warnings 152s tests/test_self.py: 93 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 11 warnings 152s tests/test_self.py: 93 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 9 warnings 152s tests/test_self.py: 54 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 2 warnings 152s tests/test_self.py: 465 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_Call 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 2 warnings 152s tests/test_self.py: 16 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 5 warnings 152s tests/test_self.py: 21 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py: 5 warnings 152s tests/test_self.py: 21 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_FormattedValue 152s tests/test_compat.py::CompatTestCase::test_JoinedStr 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_FormattedValue 152s tests/test_compat.py::CompatTestCase::test_JoinedStr 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_NamedExpr 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_NamedExpr 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_TypeIgnore 152s tests/test_compat.py::CompatTestCase::test_TypeIgnore 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_TypeIgnore 152s tests/test_compat.py::CompatTestCase::test_TypeIgnore 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_compat.py::CompatTestCase::test_With 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 37 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 819 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 819 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 70 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 37 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 11 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 17 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py: 17 warnings 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s tests/test_self.py::SelfTestCase::testCompile 152s /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. 152s new_node = getattr(to, cls)() 152s 152s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 152s =========================== short test summary info ============================ 152s FAILED tests/test_api.py::APITestCase::test_dump - AssertionError: "Expr[59 c... 152s FAILED tests/test_api.py::APITestCase::test_walk - AssertionError: "Expr[41 c... 152s FAILED tests/test_compat.py::CompatTestCase::test_ArgAnnotation - AssertionEr... 152s FAILED tests/test_compat.py::CompatTestCase::test_Call - AssertionError: "Mod... 152s FAILED tests/test_compat.py::CompatTestCase::test_Ellipsis - AssertionError: ... 152s FAILED tests/test_compat.py::CompatTestCase::test_ExtSlice - AssertionError: ... 152s FAILED tests/test_compat.py::CompatTestCase::test_ExtSliceEllipsis - Assertio... 152s FAILED tests/test_compat.py::CompatTestCase::test_ExtSlices - AssertionError:... 152s FAILED tests/test_compat.py::CompatTestCase::test_FormattedValue - AssertionE... 152s FAILED tests/test_compat.py::CompatTestCase::test_Index - AssertionError: "Mo... 152s FAILED tests/test_compat.py::CompatTestCase::test_JoinedStr - AssertionError:... 152s FAILED tests/test_compat.py::CompatTestCase::test_KeywordOnlyArgument - Asser... 152s FAILED tests/test_compat.py::CompatTestCase::test_NamedExpr - AssertionError:... 152s FAILED tests/test_compat.py::CompatTestCase::test_PosonlyArgs - AssertionErro... 152s FAILED tests/test_compat.py::CompatTestCase::test_Raise - AssertionError: "Mo... 152s FAILED tests/test_compat.py::CompatTestCase::test_TryExcept - AssertionError:... 152s FAILED tests/test_compat.py::CompatTestCase::test_TryExceptNamed - AssertionE... 152s FAILED tests/test_compat.py::CompatTestCase::test_TryFinally - AssertionError... 152s FAILED tests/test_compat.py::CompatTestCase::test_TypeIgnore - AssertionError... 152s FAILED tests/test_compat.py::CompatTestCase::test_With - AssertionError: "Mod... 152s FAILED tests/test_compat.py::CompatTestCase::test_keyword_argument - Assertio... 152s FAILED tests/test_compat.py::CompatTestCase::test_star_argument - AssertionEr... 152s ================= 22 failed, 14 passed, 3401 warnings in 0.42s ================= 152s autopkgtest [22:07:09]: test upstream-tests: -----------------------] 153s autopkgtest [22:07:10]: test upstream-tests: - - - - - - - - - - results - - - - - - - - - - 153s upstream-tests FAIL non-zero exit status 1 153s autopkgtest [22:07:10]: test autodep8-python3: preparing testbed 264s autopkgtest [22:09:01]: testbed dpkg architecture: ppc64el 264s autopkgtest [22:09:01]: testbed apt version: 2.9.8 264s autopkgtest [22:09:01]: @@@@@@@@@@@@@@@@@@@@ test bed setup 265s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 266s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [101 kB] 266s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 266s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [974 kB] 266s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [17.2 kB] 266s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [110 kB] 266s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [684 kB] 266s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [20.8 kB] 266s Fetched 1986 kB in 1s (1798 kB/s) 266s Reading package lists... 269s Reading package lists... 269s Building dependency tree... 269s Reading state information... 269s Calculating upgrade... 269s The following NEW packages will be installed: 269s python3.13-gdbm 269s The following packages will be upgraded: 269s bpfcc-tools bpftrace libbpfcc libgnutls30t64 libjson-glib-1.0-0 269s libjson-glib-1.0-common libnewt0.52 libpython3-stdlib libutempter0 python3 269s python3-bpfcc python3-gdbm python3-minimal python3-newt whiptail 270s 15 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 270s Need to get 4700 kB of archives. 270s After this operation, 215 kB of additional disk space will be used. 270s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.12.7-1 [27.4 kB] 270s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.12.7-1 [24.0 kB] 270s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.12.7-1 [10.0 kB] 270s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgnutls30t64 ppc64el 3.8.8-2ubuntu1 [1072 kB] 270s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-newt ppc64el 0.52.24-2ubuntu4 [21.8 kB] 270s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el libnewt0.52 ppc64el 0.52.24-2ubuntu4 [62.1 kB] 270s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el whiptail ppc64el 0.52.24-2ubuntu4 [19.5 kB] 270s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-gdbm ppc64el 3.13.0-2 [31.5 kB] 270s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-gdbm ppc64el 3.12.7-1 [8640 B] 270s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libbpfcc ppc64el 0.30.0+ds-1ubuntu5 [696 kB] 270s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-bpfcc all 0.30.0+ds-1ubuntu5 [40.4 kB] 270s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el bpfcc-tools all 0.30.0+ds-1ubuntu5 [697 kB] 270s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el bpftrace ppc64el 0.21.2-2ubuntu2 [1898 kB] 270s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 270s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjson-glib-1.0-0 ppc64el 1.10.0+ds-3 [76.0 kB] 270s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el libutempter0 ppc64el 1.2.1-4 [9850 B] 271s Fetched 4700 kB in 1s (6211 kB/s) 271s (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 ... 73767 files and directories currently installed.) 271s Preparing to unpack .../python3-minimal_3.12.7-1_ppc64el.deb ... 271s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 271s Setting up python3-minimal (3.12.7-1) ... 271s (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 ... 73767 files and directories currently installed.) 271s Preparing to unpack .../python3_3.12.7-1_ppc64el.deb ... 271s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 271s Preparing to unpack .../libpython3-stdlib_3.12.7-1_ppc64el.deb ... 271s Unpacking libpython3-stdlib:ppc64el (3.12.7-1) over (3.12.6-0ubuntu1) ... 271s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_ppc64el.deb ... 271s Unpacking libgnutls30t64:ppc64el (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 271s Setting up libgnutls30t64:ppc64el (3.8.8-2ubuntu1) ... 271s (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 ... 73767 files and directories currently installed.) 271s Preparing to unpack .../00-python3-newt_0.52.24-2ubuntu4_ppc64el.deb ... 272s Unpacking python3-newt:ppc64el (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 272s Preparing to unpack .../01-libnewt0.52_0.52.24-2ubuntu4_ppc64el.deb ... 272s Unpacking libnewt0.52:ppc64el (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 272s Preparing to unpack .../02-whiptail_0.52.24-2ubuntu4_ppc64el.deb ... 272s Unpacking whiptail (0.52.24-2ubuntu4) over (0.52.24-2ubuntu3) ... 272s Selecting previously unselected package python3.13-gdbm. 272s Preparing to unpack .../03-python3.13-gdbm_3.13.0-2_ppc64el.deb ... 272s Unpacking python3.13-gdbm (3.13.0-2) ... 272s Preparing to unpack .../04-python3-gdbm_3.12.7-1_ppc64el.deb ... 272s Unpacking python3-gdbm:ppc64el (3.12.7-1) over (3.12.6-1ubuntu1) ... 272s Preparing to unpack .../05-libbpfcc_0.30.0+ds-1ubuntu5_ppc64el.deb ... 272s Unpacking libbpfcc:ppc64el (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 272s Preparing to unpack .../06-python3-bpfcc_0.30.0+ds-1ubuntu5_all.deb ... 272s Unpacking python3-bpfcc (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 272s Preparing to unpack .../07-bpfcc-tools_0.30.0+ds-1ubuntu5_all.deb ... 272s Unpacking bpfcc-tools (0.30.0+ds-1ubuntu5) over (0.30.0+ds-1ubuntu4) ... 272s Preparing to unpack .../08-bpftrace_0.21.2-2ubuntu2_ppc64el.deb ... 272s Unpacking bpftrace (0.21.2-2ubuntu2) over (0.21.2-2) ... 272s Preparing to unpack .../09-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 272s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 272s Preparing to unpack .../10-libjson-glib-1.0-0_1.10.0+ds-3_ppc64el.deb ... 272s Unpacking libjson-glib-1.0-0:ppc64el (1.10.0+ds-3) over (1.10.0+ds-2) ... 272s Preparing to unpack .../11-libutempter0_1.2.1-4_ppc64el.deb ... 272s Unpacking libutempter0:ppc64el (1.2.1-4) over (1.2.1-3build1) ... 272s Setting up libnewt0.52:ppc64el (0.52.24-2ubuntu4) ... 272s Setting up libutempter0:ppc64el (1.2.1-4) ... 272s Setting up whiptail (0.52.24-2ubuntu4) ... 272s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 272s Setting up libbpfcc:ppc64el (0.30.0+ds-1ubuntu5) ... 272s Setting up python3.13-gdbm (3.13.0-2) ... 272s Setting up libpython3-stdlib:ppc64el (3.12.7-1) ... 272s Setting up bpftrace (0.21.2-2ubuntu2) ... 272s Setting up python3 (3.12.7-1) ... 273s Setting up python3-newt:ppc64el (0.52.24-2ubuntu4) ... 273s Setting up libjson-glib-1.0-0:ppc64el (1.10.0+ds-3) ... 273s Setting up python3-bpfcc (0.30.0+ds-1ubuntu5) ... 273s Setting up python3-gdbm:ppc64el (3.12.7-1) ... 273s Setting up bpfcc-tools (0.30.0+ds-1ubuntu5) ... 273s Processing triggers for man-db (2.12.1-3) ... 275s Processing triggers for libc-bin (2.40-1ubuntu3) ... 275s Reading package lists... 276s Building dependency tree... 276s Reading state information... 276s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 277s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 277s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 277s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 277s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 278s Reading package lists... 279s Reading package lists... 279s Building dependency tree... 279s Reading state information... 279s Calculating upgrade... 279s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 279s Reading package lists... 280s Building dependency tree... 280s Reading state information... 280s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 284s Reading package lists... 284s Building dependency tree... 284s Reading state information... 285s Starting pkgProblemResolver with broken count: 0 285s Starting 2 pkgProblemResolver with broken count: 0 285s Done 285s The following additional packages will be installed: 285s libpython3.13-minimal libpython3.13-stdlib python3-all python3-gast 285s python3.13 python3.13-minimal 285s Suggested packages: 285s python3.13-venv python3.13-doc binfmt-support 285s The following NEW packages will be installed: 285s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib python3-all 285s python3-gast python3.13 python3.13-minimal 285s 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. 285s Need to get 6060 kB/6061 kB of archives. 285s After this operation, 25.8 MB of additional disk space will be used. 285s Get:1 /tmp/autopkgtest.74euE0/2-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [712 B] 285s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.0-2 [881 kB] 286s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.0-2 [2302 kB] 286s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.0-2 [2148 kB] 286s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.0-2 [719 kB] 286s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-all ppc64el 3.12.7-1 [888 B] 286s Get:7 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-gast all 0.5.2-2 [9394 B] 286s Fetched 6060 kB in 1s (7441 kB/s) 286s Selecting previously unselected package libpython3.13-minimal:ppc64el. 286s (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 ... 73775 files and directories currently installed.) 286s Preparing to unpack .../0-libpython3.13-minimal_3.13.0-2_ppc64el.deb ... 286s Unpacking libpython3.13-minimal:ppc64el (3.13.0-2) ... 286s Selecting previously unselected package python3.13-minimal. 286s Preparing to unpack .../1-python3.13-minimal_3.13.0-2_ppc64el.deb ... 286s Unpacking python3.13-minimal (3.13.0-2) ... 286s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 286s Preparing to unpack .../2-libpython3.13-stdlib_3.13.0-2_ppc64el.deb ... 286s Unpacking libpython3.13-stdlib:ppc64el (3.13.0-2) ... 287s Selecting previously unselected package python3.13. 287s Preparing to unpack .../3-python3.13_3.13.0-2_ppc64el.deb ... 287s Unpacking python3.13 (3.13.0-2) ... 287s Selecting previously unselected package python3-all. 287s Preparing to unpack .../4-python3-all_3.12.7-1_ppc64el.deb ... 287s Unpacking python3-all (3.12.7-1) ... 287s Selecting previously unselected package python3-gast. 287s Preparing to unpack .../5-python3-gast_0.5.2-2_all.deb ... 287s Unpacking python3-gast (0.5.2-2) ... 287s Selecting previously unselected package autopkgtest-satdep. 287s Preparing to unpack .../6-2-autopkgtest-satdep.deb ... 287s Unpacking autopkgtest-satdep (0) ... 287s Setting up python3-gast (0.5.2-2) ... 287s Setting up libpython3.13-minimal:ppc64el (3.13.0-2) ... 287s Setting up python3.13-minimal (3.13.0-2) ... 288s Setting up libpython3.13-stdlib:ppc64el (3.13.0-2) ... 288s Setting up python3.13 (3.13.0-2) ... 289s Setting up python3-all (3.12.7-1) ... 289s Setting up autopkgtest-satdep (0) ... 289s Processing triggers for man-db (2.12.1-3) ... 290s Processing triggers for systemd (256.5-2ubuntu4) ... 293s (Reading database ... 74523 files and directories currently installed.) 293s Removing autopkgtest-satdep (0) ... 295s autopkgtest [22:09:32]: 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 295s autopkgtest [22:09:32]: test autodep8-python3: [----------------------- 295s Testing with python3.13: 295s 295s Testing with python3.12: 295s 295s autopkgtest [22:09:32]: test autodep8-python3: -----------------------] 296s autopkgtest [22:09:33]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - 296s autodep8-python3 PASS (superficial) 296s autopkgtest [22:09:33]: @@@@@@@@@@@@@@@@@@@@ summary 296s upstream-tests FAIL non-zero exit status 1 296s autodep8-python3 PASS (superficial) 300s nova [W] Using flock in prodstack6-ppc64el 300s Creating nova instance adt-plucky-ppc64el-python-gast-20241113-220437-juju-7f2275-prod-proposed-migration-environment-15-84a63a57-7769-42a4-ba32-9e2f9a8d9869 from image adt/ubuntu-plucky-ppc64el-server-20241113.img (UUID 0c5715b6-5cca-4485-b8bf-b85dfd917a5f)... 300s nova [W] Using flock in prodstack6-ppc64el 300s Creating nova instance adt-plucky-ppc64el-python-gast-20241113-220437-juju-7f2275-prod-proposed-migration-environment-15-84a63a57-7769-42a4-ba32-9e2f9a8d9869 from image adt/ubuntu-plucky-ppc64el-server-20241113.img (UUID 0c5715b6-5cca-4485-b8bf-b85dfd917a5f)...