Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c14f' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/9056532-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 1.3 PID: 28354 Logging PID: 28355 Task: {'allow_user_ssh': False, 'appstream': False, 'background': True, 'bootstrap': 'off', 'build_id': 9056532, 'buildroot_pkgs': [], 'chroot': 'fedora-rawhide-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': '33fa459f0d478a14ad65f3d1c4be1f9c046c47a2', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/@python/python3.14/python-astroid', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'python-astroid', 'package_version': '3.3.8-2', 'project_dirname': 'python3.14', 'project_name': 'python3.14', 'project_owner': '@python', 'repo_priority': 9, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/@python/python3.14/fedora-rawhide-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': 9}, {'baseurl': 'http://kojipkgs.fedoraproject.org/repos/rawhide/latest/$basearch/', 'id': 'http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch', 'name': 'Additional repo http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch'}], 'sandbox': '@python/python3.14--churchyard', 'source_json': {}, 'source_type': None, 'ssh_public_keys': None, 'storage': 0, 'submitter': 'churchyard', 'tags': [], 'task_id': '9056532-fedora-rawhide-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/@python/python3.14/python-astroid /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/@python/python3.14/python-astroid', '/var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid'... Running: git checkout 33fa459f0d478a14ad65f3d1c4be1f9c046c47a2 -- cmd: ['git', 'checkout', '33fa459f0d478a14ad65f3d1c4be1f9c046c47a2', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid rc: 0 stdout: stderr: Note: switching to '33fa459f0d478a14ad65f3d1c4be1f9c046c47a2'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 33fa459 automatic import of python-astroid Running: dist-git-client sources cmd: ['dist-git-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading astroid-3.3.8.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -o astroid-3.3.8.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/@python/python3.14/python-astroid/astroid-3.3.8.tar.gz/md5/0268d3994832d0133109d708165e7c34/astroid-3.3.8.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 456k 100 456k 0 0 5985k 0 --:--:-- --:--:-- --:--:-- 6001k INFO: Reading stdout from command: md5sum astroid-3.3.8.tar.gz /usr/bin/tail: /var/lib/copr-rpmbuild/main.log: file truncated Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid/python-astroid.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1747421230.783866 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 6.1 starting (python version = 3.13.0, NVR = mock-6.1-1.fc41), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid/python-astroid.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1747421230.783866 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid/python-astroid.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 6.1 INFO: Mock Version: 6.1 Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1747421230.783866/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (fallback) INFO: Buildroot is handled by package management from host and used with --installroot: rpm-4.20.1-1.fc41.x86_64 rpm-sequoia-1.7.0-2.fc41.x86_64 python3-dnf-4.23.0-1.fc41.noarch python3-dnf-plugins-core-4.10.1-1.fc41.noarch dnf5-5.2.13.1-1.fc41.x86_64 dnf5-plugins-5.2.13.1-1.fc41.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: fedora 100% | 970.5 KiB/s | 24.3 KiB | 00m00s Copr repository 100% | 46.6 KiB/s | 1.5 KiB | 00m00s Additional repo http_kojipkgs_fedorapr 100% | 61.8 KiB/s | 3.8 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 5.2.37-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.2 MiB bzip2 x86_64 1.0.8-20.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 99.3 KiB coreutils x86_64 9.7-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 5.4 MiB cpio x86_64 2.15-2.fc41 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.1 MiB diffutils x86_64 3.12-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB fedora-release-common noarch 43-0.15 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 20.4 KiB findutils x86_64 1:4.10.0-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 MiB gawk x86_64 5.3.2-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.8 MiB glibc-minimal-langpack x86_64 2.41.9000-13.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 0.0 B grep x86_64 3.12-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 MiB gzip x86_64 1.13-3.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 392.9 KiB info x86_64 7.2-3.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 357.9 KiB patch x86_64 2.8-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 226.8 KiB redhat-rpm-config noarch 343-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 181.5 KiB rpm-build x86_64 5.99.90-5.fc43 copr_base 281.7 KiB sed x86_64 4.9-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 857.3 KiB shadow-utils x86_64 2:4.17.4-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 4.0 MiB tar x86_64 2:1.35-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.0 MiB unzip x86_64 6.0-66.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 390.3 KiB util-linux x86_64 2.41-2.fc43 copr_base 3.5 MiB which x86_64 2.23-1.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 83.4 KiB xz x86_64 1:5.8.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.3 MiB Installing dependencies: add-determinism x86_64 0.6.0-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.5 MiB alternatives x86_64 1.33-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 62.2 KiB ansible-srpm-macros noarch 1-17.1.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 35.7 KiB audit-libs x86_64 4.0.3-2.fc43 copr_base 347.1 KiB binutils x86_64 2.44-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 25.9 MiB build-reproducibility-srpm-macros noarch 0.6.0-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 735.0 B bzip2-libs x86_64 1.0.8-20.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 84.6 KiB ca-certificates noarch 2024.2.69_v8.0.401-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.6 MiB coreutils-common x86_64 9.7-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 11.3 MiB crypto-policies noarch 20250402-2.git86c0178.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 141.5 KiB curl x86_64 8.14.0~rc1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 473.2 KiB cyrus-sasl-lib x86_64 2.1.28-30.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.3 MiB debugedit x86_64 5.1-6.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 192.7 KiB dwz x86_64 0.15-9.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 291.0 KiB ed x86_64 1.21-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 146.5 KiB efi-srpm-macros noarch 6-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 40.1 KiB elfutils x86_64 0.193-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.9 MiB elfutils-debuginfod-client x86_64 0.193-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 83.9 KiB elfutils-default-yama-scope noarch 0.193-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.8 KiB elfutils-libelf x86_64 0.193-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.2 MiB elfutils-libs x86_64 0.193-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 683.4 KiB fedora-gpg-keys noarch 43-0.2 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 129.0 KiB fedora-release noarch 43-0.15 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 0.0 B fedora-release-identity-basic noarch 43-0.15 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 664.0 B fedora-repos noarch 43-0.2 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 4.9 KiB fedora-repos-rawhide noarch 43-0.2 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.2 KiB file x86_64 5.46-1.fc43 copr_base 100.2 KiB file-libs x86_64 5.46-1.fc43 copr_base 11.9 MiB filesystem x86_64 3.18-44.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 112.0 B filesystem-srpm-macros noarch 3.18-44.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 38.2 KiB fonts-srpm-macros noarch 1:2.0.5-21.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 55.8 KiB forge-srpm-macros noarch 0.4.0-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 38.9 KiB fpc-srpm-macros noarch 1.3-14.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 144.0 B gdb-minimal x86_64 16.3-1.fc43 copr_base 13.2 MiB gdbm-libs x86_64 1:1.23-9.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 129.9 KiB ghc-srpm-macros noarch 1.9.2-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 779.0 B glibc x86_64 2.41.9000-13.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 6.7 MiB glibc-common x86_64 2.41.9000-13.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 MiB glibc-gconv-extra x86_64 2.41.9000-13.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 7.2 MiB gmp x86_64 1:6.3.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 819.2 KiB gnat-srpm-macros noarch 6-7.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.0 KiB gnupg2 x86_64 2.4.8-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 9.8 MiB gnutls x86_64 3.8.9-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 3.6 MiB go-srpm-macros noarch 3.6.0-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 60.8 KiB gpgverify noarch 2.1-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.7 KiB ima-evm-utils-libs x86_64 1.6.2-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 60.7 KiB jansson x86_64 2.14-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 93.1 KiB json-c x86_64 0.18-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 86.7 KiB kernel-srpm-macros noarch 1.0-25.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 KiB keyutils-libs x86_64 1.6.3-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 58.3 KiB krb5-libs x86_64 1.21.3-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.3 MiB libacl x86_64 2.3.2-3.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 38.3 KiB libarchive x86_64 3.7.7-4.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 930.6 KiB libassuan x86_64 2.5.7-3.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 167.8 KiB libattr x86_64 2.5.2-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 27.1 KiB libblkid x86_64 2.41-2.fc43 copr_base 262.4 KiB libbrotli x86_64 1.1.0-6.fc43 copr_base 833.3 KiB libcap x86_64 2.76-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 209.2 KiB libcap-ng x86_64 0.8.5-4.fc43 copr_base 68.9 KiB libcom_err x86_64 1.47.2-3.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 67.1 KiB libcurl x86_64 8.14.0~rc1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 891.0 KiB libeconf x86_64 0.7.6-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 64.6 KiB libevent x86_64 2.1.12-15.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 903.1 KiB libfdisk x86_64 2.41-2.fc43 copr_base 376.4 KiB libffi x86_64 3.4.8-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 83.0 KiB libfsverity x86_64 1.6-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 32.5 KiB libgcc x86_64 15.1.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 266.6 KiB libgcrypt x86_64 1.11.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB libgomp x86_64 15.1.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 538.5 KiB libgpg-error x86_64 1.55-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 915.3 KiB libidn2 x86_64 2.3.8-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 552.5 KiB libksba x86_64 1.6.7-3.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 402.5 KiB liblastlog2 x86_64 2.41-2.fc43 copr_base 33.9 KiB libmount x86_64 2.41-2.fc43 copr_base 372.7 KiB libnghttp2 x86_64 1.65.0-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 162.2 KiB libpkgconf x86_64 2.3.0-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 78.1 KiB libpsl x86_64 0.21.5-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 76.4 KiB libselinux x86_64 3.8-1.fc43 copr_base 193.1 KiB libsemanage x86_64 3.8-1.fc43 copr_base 304.4 KiB libsepol x86_64 3.8-1.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 826.0 KiB libsmartcols x86_64 2.41-2.fc43 copr_base 180.5 KiB libssh x86_64 0.11.1-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 565.5 KiB libssh-config noarch 0.11.1-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 277.0 B libstdc++ x86_64 15.1.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.8 MiB libtasn1 x86_64 4.20.0-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 176.3 KiB libtool-ltdl x86_64 2.5.4-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 70.1 KiB libunistring x86_64 1.1-9.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.7 MiB libusb1 x86_64 1.0.28-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 171.0 KiB libuuid x86_64 2.41-2.fc43 copr_base 37.3 KiB libverto x86_64 0.3.2-10.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 25.4 KiB libxcrypt x86_64 4.4.38-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 284.5 KiB libxml2 x86_64 2.12.10-1.fc43 copr_base 1.7 MiB libzstd x86_64 1.5.7-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 807.8 KiB lua-libs x86_64 5.4.7-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 276.9 KiB lua-srpm-macros noarch 1-15.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.3 KiB lz4-libs x86_64 1.10.0-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 157.4 KiB mpfr x86_64 4.2.2-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 828.8 KiB ncurses-base noarch 6.5-5.20250125.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 326.8 KiB ncurses-libs x86_64 6.5-5.20250125.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 946.3 KiB nettle x86_64 3.10.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 790.5 KiB npth x86_64 1.8-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 49.6 KiB ocaml-srpm-macros noarch 10-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 KiB openblas-srpm-macros noarch 2-19.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 112.0 B openldap x86_64 2.6.9-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 655.1 KiB openssl-libs x86_64 1:3.5.0-3.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 8.9 MiB p11-kit x86_64 0.25.5-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.2 MiB p11-kit-trust x86_64 0.25.5-5.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 395.5 KiB package-notes-srpm-macros noarch 0.5-13.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 KiB pam-libs x86_64 1.7.0-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 126.7 KiB pcre2 x86_64 10.45-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 697.7 KiB pcre2-syntax noarch 10.45-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 273.9 KiB perl-srpm-macros noarch 1-57.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 861.0 B pkgconf x86_64 2.3.0-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 88.5 KiB pkgconf-m4 noarch 2.3.0-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 14.4 KiB pkgconf-pkg-config x86_64 2.3.0-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 989.0 B popt x86_64 1.19-8.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 132.8 KiB publicsuffix-list-dafsa noarch 20250116-1.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 68.5 KiB pyproject-srpm-macros noarch 1.18.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.9 KiB python-srpm-macros noarch 3.14-5.fc43 copr_base 51.7 KiB qt5-srpm-macros noarch 5.15.16-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 500.0 B qt6-srpm-macros noarch 6.9.0-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 464.0 B readline x86_64 8.2-13.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 485.0 KiB rpm x86_64 5.99.90-5.fc43 copr_base 3.1 MiB rpm-build-libs x86_64 5.99.90-5.fc43 copr_base 264.4 KiB rpm-libs x86_64 5.99.90-5.fc43 copr_base 929.8 KiB rpm-sequoia x86_64 1.8.0-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.5 MiB rpm-sign-libs x86_64 5.99.90-5.fc43 copr_base 39.7 KiB rust-srpm-macros noarch 26.3-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 4.8 KiB setup noarch 2.15.0-25.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 725.0 KiB sqlite-libs x86_64 3.49.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.5 MiB systemd-libs x86_64 257.5-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 2.2 MiB systemd-standalone-sysusers x86_64 257.5-5.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 277.3 KiB tpm2-tss x86_64 4.1.3-7.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB tree-sitter-srpm-macros noarch 0.2.4-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 7.5 KiB util-linux-core x86_64 2.41-2.fc43 copr_base 1.4 MiB xxhash-libs x86_64 0.8.3-2.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 90.2 KiB xz-libs x86_64 1:5.8.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 217.8 KiB zig-srpm-macros noarch 1-4.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.1 KiB zip x86_64 3.0-43.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 698.5 KiB zlib-ng-compat x86_64 2.2.4-2.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 137.6 KiB zstd x86_64 1.5.7-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.7 MiB Installing groups: Buildsystem building group Transaction Summary: Installing: 163 packages Total size of inbound packages is 58 MiB. Need to download 0 B. After this operation, 198 MiB extra will be used (install 198 MiB, remove 0 B). [ 1/163] tar-2:1.35-5.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/163] bzip2-0:1.0.8-20.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/163] redhat-rpm-config-0:343-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/163] rpm-build-0:5.99.90-5.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/163] unzip-0:6.0-66.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/163] cpio-0:2.15-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/163] which-0:2.23-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/163] bash-0:5.2.37-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/163] coreutils-0:9.7-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 10/163] grep-0:3.12-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 11/163] patch-0:2.8-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 12/163] sed-0:4.9-4.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 13/163] shadow-utils-2:4.17.4-1.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 14/163] util-linux-0:2.41-2.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 15/163] diffutils-0:3.12-2.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 16/163] fedora-release-common-0:43-0. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 17/163] findutils-1:4.10.0-5.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 18/163] gawk-0:5.3.2-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 19/163] glibc-minimal-langpack-0:2.41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 20/163] gzip-0:1.13-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 21/163] info-0:7.2-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 22/163] xz-1:5.8.1-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 23/163] libblkid-0:2.41-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 24/163] libfdisk-0:2.41-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 25/163] liblastlog2-0:2.41-2.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 26/163] libmount-0:2.41-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 27/163] libsmartcols-0:2.41-2.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 28/163] libuuid-0:2.41-2.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 29/163] util-linux-core-0:2.41-2.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 30/163] glibc-0:2.41.9000-13.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 31/163] xz-libs-1:5.8.1-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 32/163] bzip2-libs-0:1.0.8-20.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 33/163] libacl-0:2.3.2-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 34/163] libselinux-0:3.8-1.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 35/163] audit-libs-0:4.0.3-2.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 36/163] filesystem-0:3.18-44.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 37/163] libeconf-0:0.7.6-1.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 38/163] libsemanage-0:3.8-1.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 39/163] libxcrypt-0:4.4.38-7.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 40/163] pam-libs-0:1.7.0-4.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 41/163] setup-0:2.15.0-25.fc43.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 42/163] glibc-gconv-extra-0:2.41.9000 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 43/163] ansible-srpm-macros-0:1-17.1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 44/163] build-reproducibility-srpm-ma 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 45/163] dwz-0:0.15-9.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 46/163] efi-srpm-macros-0:6-3.fc43.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 47/163] file-0:5.46-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 48/163] file-libs-0:5.46-1.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 49/163] filesystem-srpm-macros-0:3.18 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 50/163] fonts-srpm-macros-1:2.0.5-21. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 51/163] forge-srpm-macros-0:0.4.0-2.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 52/163] fpc-srpm-macros-0:1.3-14.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 53/163] ghc-srpm-macros-0:1.9.2-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 54/163] gnat-srpm-macros-0:6-7.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 55/163] go-srpm-macros-0:3.6.0-7.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 56/163] kernel-srpm-macros-0:1.0-25.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 57/163] lua-srpm-macros-0:1-15.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 58/163] ocaml-srpm-macros-0:10-4.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 59/163] openblas-srpm-macros-0:2-19.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 60/163] package-notes-srpm-macros-0:0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 61/163] perl-srpm-macros-0:1-57.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 62/163] pyproject-srpm-macros-0:1.18. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 63/163] python-srpm-macros-0:3.14-5.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 64/163] qt5-srpm-macros-0:5.15.16-1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 65/163] qt6-srpm-macros-0:6.9.0-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 66/163] rpm-0:5.99.90-5.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 67/163] rust-srpm-macros-0:26.3-4.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 68/163] tree-sitter-srpm-macros-0:0.2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 69/163] zig-srpm-macros-0:1-4.fc42.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 70/163] zip-0:3.0-43.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 71/163] ed-0:1.21-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 72/163] libattr-0:2.5.2-5.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 73/163] ncurses-libs-0:6.5-5.20250125 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 74/163] pcre2-0:10.45-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 75/163] glibc-common-0:2.41.9000-13.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 76/163] libgcc-0:15.1.1-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 77/163] gmp-1:6.3.0-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 78/163] mpfr-0:4.2.2-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 79/163] readline-0:8.2-13.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 80/163] fedora-repos-0:43-0.2.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 81/163] elfutils-libelf-0:0.193-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 82/163] coreutils-common-0:9.7-1.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 83/163] libcap-0:2.76-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 84/163] openssl-libs-1:3.5.0-3.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 85/163] systemd-libs-0:257.5-5.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 86/163] add-determinism-0:0.6.0-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 87/163] zlib-ng-compat-0:2.2.4-2.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 88/163] libcap-ng-0:0.8.5-4.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 89/163] binutils-0:2.44-3.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 90/163] debugedit-0:5.1-6.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 91/163] elfutils-0:0.193-2.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 92/163] libarchive-0:3.7.7-4.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 93/163] libstdc++-0:15.1.1-1.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 94/163] pkgconf-pkg-config-0:2.3.0-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 95/163] popt-0:1.19-8.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 96/163] rpm-build-libs-0:5.99.90-5.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 97/163] rpm-libs-0:5.99.90-5.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 98/163] zstd-0:1.5.7-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 99/163] curl-0:8.14.0~rc1-1.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [100/163] libsepol-0:3.8-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [101/163] sqlite-libs-0:3.49.1-1.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [102/163] lz4-libs-0:1.10.0-2.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [103/163] pkgconf-0:2.3.0-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [104/163] pkgconf-m4-0:2.3.0-2.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [105/163] libpkgconf-0:2.3.0-2.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [106/163] pcre2-syntax-0:10.45-1.fc43.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [107/163] ca-certificates-0:2024.2.69_v 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [108/163] crypto-policies-0:20250402-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [109/163] ncurses-base-0:6.5-5.20250125 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [110/163] libxml2-0:2.12.10-1.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [111/163] libzstd-0:1.5.7-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [112/163] fedora-gpg-keys-0:43-0.2.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [113/163] fedora-repos-rawhide-0:43-0.2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [114/163] elfutils-debuginfod-client-0: 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [115/163] elfutils-libs-0:0.193-2.fc43. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [116/163] libffi-0:3.4.8-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [117/163] p11-kit-0:0.25.5-5.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [118/163] p11-kit-trust-0:0.25.5-5.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [119/163] alternatives-0:1.33-1.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [120/163] jansson-0:2.14-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [121/163] lua-libs-0:5.4.7-3.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [122/163] rpm-sequoia-0:1.8.0-1.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [123/163] libgomp-0:15.1.1-1.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [124/163] rpm-sign-libs-0:5.99.90-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [125/163] libtasn1-0:4.20.0-1.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [126/163] elfutils-default-yama-scope-0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [127/163] json-c-0:0.18-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [128/163] gnupg2-0:2.4.8-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [129/163] ima-evm-utils-libs-0:1.6.2-5. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [130/163] libfsverity-0:1.6-2.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [131/163] gpgverify-0:2.1-3.fc43.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [132/163] tpm2-tss-0:4.1.3-7.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [133/163] gnutls-0:3.8.9-5.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [134/163] libassuan-0:2.5.7-3.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [135/163] libgcrypt-0:1.11.1-1.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [136/163] libgpg-error-0:1.55-1.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [137/163] libksba-0:1.6.7-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [138/163] npth-0:1.8-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [139/163] openldap-0:2.6.9-5.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [140/163] libusb1-0:1.0.28-2.fc43.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [141/163] cyrus-sasl-lib-0:2.1.28-30.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [142/163] libevent-0:2.1.12-15.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [143/163] libtool-ltdl-0:2.5.4-4.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [144/163] libidn2-0:2.3.8-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [145/163] libunistring-0:1.1-9.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [146/163] nettle-0:3.10.1-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [147/163] gdbm-libs-1:1.23-9.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [148/163] fedora-release-0:43-0.15.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [149/163] fedora-release-identity-basic 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [150/163] libcurl-0:8.14.0~rc1-1.fc43.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [151/163] gdb-minimal-0:16.3-1.fc43.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [152/163] systemd-standalone-sysusers-0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [153/163] xxhash-libs-0:0.8.3-2.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [154/163] krb5-libs-0:1.21.3-5.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [155/163] libbrotli-0:1.1.0-6.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [156/163] libnghttp2-0:1.65.0-1.fc43.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [157/163] libpsl-0:0.21.5-5.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [158/163] libssh-0:0.11.1-4.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [159/163] keyutils-libs-0:1.6.3-5.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [160/163] libcom_err-0:1.47.2-3.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [161/163] libverto-0:0.3.2-10.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [162/163] libssh-config-0:0.11.1-4.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [163/163] publicsuffix-list-dafsa-0:202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [163/163] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/165] Verify package files 100% | 734.0 B/s | 163.0 B | 00m00s >>> Running pre-transaction scriptlet: filesystem-0:3.18-44.fc43.x86_64 >>> Finished pre-transaction scriptlet: filesystem-0:3.18-44.fc43.x86_64 >>> [RPM] /var/lib/mock/fedora-rawhide-x86_64-1747421230.783866/root/var/cache/d [ 2/165] Prepare transaction 100% | 1.9 KiB/s | 163.0 B | 00m00s [ 3/165] Installing libgcc-0:15.1.1-1. 100% | 131.0 MiB/s | 268.3 KiB | 00m00s [ 4/165] Installing publicsuffix-list- 100% | 67.6 MiB/s | 69.2 KiB | 00m00s [ 5/165] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 6/165] Installing fedora-release-ide 100% | 898.4 KiB/s | 920.0 B | 00m00s [ 7/165] Installing fedora-gpg-keys-0: 100% | 19.1 MiB/s | 175.9 KiB | 00m00s [ 8/165] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.4 KiB | 00m00s [ 9/165] Installing fedora-repos-0:43- 100% | 0.0 B/s | 5.7 KiB | 00m00s [ 10/165] Installing fedora-release-com 100% | 12.1 MiB/s | 24.7 KiB | 00m00s [ 11/165] Installing fedora-release-0:4 100% | 0.0 B/s | 124.0 B | 00m00s [ 12/165] Installing setup-0:2.15.0-25. 100% | 47.6 MiB/s | 730.6 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 13/165] Installing filesystem-0:3.18- 100% | 1.4 MiB/s | 212.5 KiB | 00m00s [ 14/165] Installing ncurses-base-0:6.5 100% | 34.4 MiB/s | 352.2 KiB | 00m00s [ 15/165] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 16/165] Installing ncurses-libs-0:6.5 100% | 155.1 MiB/s | 952.8 KiB | 00m00s [ 17/165] Installing glibc-0:2.41.9000- 100% | 155.3 MiB/s | 6.7 MiB | 00m00s [ 18/165] Installing bash-0:5.2.37-3.fc 100% | 204.5 MiB/s | 8.2 MiB | 00m00s [ 19/165] Installing glibc-common-0:2.4 100% | 60.0 MiB/s | 1.0 MiB | 00m00s [ 20/165] Installing glibc-gconv-extra- 100% | 143.3 MiB/s | 7.3 MiB | 00m00s [ 21/165] Installing zlib-ng-compat-0:2 100% | 135.2 MiB/s | 138.4 KiB | 00m00s [ 22/165] Installing bzip2-libs-0:1.0.8 100% | 83.7 MiB/s | 85.7 KiB | 00m00s [ 23/165] Installing libstdc++-0:15.1.1 100% | 257.8 MiB/s | 2.8 MiB | 00m00s [ 24/165] Installing xz-libs-1:5.8.1-1. 100% | 213.8 MiB/s | 218.9 KiB | 00m00s [ 25/165] Installing libuuid-0:2.41-2.f 100% | 37.4 MiB/s | 38.3 KiB | 00m00s [ 26/165] Installing gmp-1:6.3.0-3.fc43 100% | 267.4 MiB/s | 821.5 KiB | 00m00s [ 27/165] Installing readline-0:8.2-13. 100% | 158.6 MiB/s | 487.1 KiB | 00m00s [ 28/165] Installing popt-0:1.19-8.fc42 100% | 27.2 MiB/s | 139.4 KiB | 00m00s [ 29/165] Installing libblkid-0:2.41-2. 100% | 128.7 MiB/s | 263.5 KiB | 00m00s [ 30/165] Installing libxcrypt-0:4.4.38 100% | 140.2 MiB/s | 287.2 KiB | 00m00s [ 31/165] Installing libzstd-0:1.5.7-1. 100% | 263.4 MiB/s | 809.1 KiB | 00m00s [ 32/165] Installing elfutils-libelf-0: 100% | 233.3 MiB/s | 1.2 MiB | 00m00s [ 33/165] Installing libgpg-error-0:1.5 100% | 30.0 MiB/s | 921.1 KiB | 00m00s [ 34/165] Installing crypto-policies-0: 100% | 16.3 MiB/s | 166.6 KiB | 00m00s [ 35/165] Installing libattr-0:2.5.2-5. 100% | 27.4 MiB/s | 28.1 KiB | 00m00s [ 36/165] Installing libacl-0:2.3.2-3.f 100% | 38.2 MiB/s | 39.2 KiB | 00m00s [ 37/165] Installing sqlite-libs-0:3.49 100% | 251.4 MiB/s | 1.5 MiB | 00m00s [ 38/165] Installing libtasn1-0:4.20.0- 100% | 87.0 MiB/s | 178.1 KiB | 00m00s [ 39/165] Installing libunistring-0:1.1 100% | 287.8 MiB/s | 1.7 MiB | 00m00s [ 40/165] Installing libidn2-0:2.3.8-1. 100% | 90.9 MiB/s | 558.7 KiB | 00m00s [ 41/165] Installing dwz-0:0.15-9.fc42. 100% | 20.4 MiB/s | 292.4 KiB | 00m00s [ 42/165] Installing mpfr-0:4.2.2-1.fc4 100% | 202.7 MiB/s | 830.4 KiB | 00m00s [ 43/165] Installing gawk-0:5.3.2-1.fc4 100% | 82.5 MiB/s | 1.8 MiB | 00m00s [ 44/165] Installing unzip-0:6.0-66.fc4 100% | 29.6 MiB/s | 393.8 KiB | 00m00s [ 45/165] Installing file-libs-0:5.46-1 100% | 474.3 MiB/s | 11.9 MiB | 00m00s [ 46/165] Installing file-0:5.46-1.fc43 100% | 8.3 MiB/s | 101.7 KiB | 00m00s [ 47/165] Installing libsmartcols-0:2.4 100% | 177.3 MiB/s | 181.6 KiB | 00m00s [ 48/165] Installing libeconf-0:0.7.6-1 100% | 64.7 MiB/s | 66.2 KiB | 00m00s [ 49/165] Installing libcap-ng-0:0.8.5- 100% | 69.2 MiB/s | 70.8 KiB | 00m00s [ 50/165] Installing audit-libs-0:4.0.3 100% | 170.5 MiB/s | 349.3 KiB | 00m00s [ 51/165] Installing pam-libs-0:1.7.0-4 100% | 126.1 MiB/s | 129.1 KiB | 00m00s [ 52/165] Installing libcap-0:2.76-1.fc 100% | 14.9 MiB/s | 214.3 KiB | 00m00s [ 53/165] Installing systemd-libs-0:257 100% | 248.0 MiB/s | 2.2 MiB | 00m00s [ 54/165] Installing libsepol-0:3.8-1.f 100% | 201.9 MiB/s | 827.0 KiB | 00m00s [ 55/165] Installing lz4-libs-0:1.10.0- 100% | 154.7 MiB/s | 158.5 KiB | 00m00s [ 56/165] Installing libffi-0:3.4.8-1.f 100% | 82.4 MiB/s | 84.3 KiB | 00m00s [ 57/165] Installing p11-kit-0:0.25.5-5 100% | 84.0 MiB/s | 2.2 MiB | 00m00s [ 58/165] Installing alternatives-0:1.3 100% | 5.2 MiB/s | 63.8 KiB | 00m00s [ 59/165] Installing p11-kit-trust-0:0. 100% | 14.4 MiB/s | 397.2 KiB | 00m00s [ 60/165] Installing lua-libs-0:5.4.7-3 100% | 135.8 MiB/s | 278.1 KiB | 00m00s [ 61/165] Installing json-c-0:0.18-2.fc 100% | 85.9 MiB/s | 88.0 KiB | 00m00s [ 62/165] Installing zstd-0:1.5.7-1.fc4 100% | 95.0 MiB/s | 1.7 MiB | 00m00s [ 63/165] Installing libusb1-0:1.0.28-2 100% | 168.7 MiB/s | 172.7 KiB | 00m00s [ 64/165] Installing zip-0:3.0-43.fc42. 100% | 49.0 MiB/s | 702.4 KiB | 00m00s [ 65/165] Installing libpsl-0:0.21.5-5. 100% | 75.7 MiB/s | 77.5 KiB | 00m00s [ 66/165] Installing liblastlog2-0:2.41 100% | 35.1 MiB/s | 35.9 KiB | 00m00s [ 67/165] Installing libassuan-0:2.5.7- 100% | 165.6 MiB/s | 169.6 KiB | 00m00s [ 68/165] Installing libgcrypt-0:1.11.1 100% | 262.5 MiB/s | 1.6 MiB | 00m00s [ 69/165] Installing libksba-0:1.6.7-3. 100% | 197.8 MiB/s | 405.1 KiB | 00m00s [ 70/165] Installing libfdisk-0:2.41-2. 100% | 184.3 MiB/s | 377.5 KiB | 00m00s [ 71/165] Installing nettle-0:3.10.1-1. 100% | 193.8 MiB/s | 793.6 KiB | 00m00s [ 72/165] Installing gnutls-0:3.8.9-5.f 100% | 238.2 MiB/s | 3.6 MiB | 00m00s [ 73/165] Installing libxml2-0:2.12.10- 100% | 100.2 MiB/s | 1.7 MiB | 00m00s [ 74/165] Installing bzip2-0:1.0.8-20.f 100% | 7.8 MiB/s | 103.8 KiB | 00m00s [ 75/165] Installing add-determinism-0: 100% | 129.8 MiB/s | 2.5 MiB | 00m00s [ 76/165] Installing build-reproducibil 100% | 0.0 B/s | 1.0 KiB | 00m00s [ 77/165] Installing filesystem-srpm-ma 100% | 38.0 MiB/s | 38.9 KiB | 00m00s [ 78/165] Installing ed-0:1.21-2.fc42.x 100% | 12.1 MiB/s | 148.8 KiB | 00m00s [ 79/165] Installing patch-0:2.8-1.fc43 100% | 18.6 MiB/s | 228.3 KiB | 00m00s [ 80/165] Installing elfutils-default-y 100% | 170.2 KiB/s | 2.0 KiB | 00m00s [ 81/165] Installing elfutils-libs-0:0. 100% | 167.3 MiB/s | 685.2 KiB | 00m00s [ 82/165] Installing cpio-0:2.15-2.fc41 100% | 55.0 MiB/s | 1.1 MiB | 00m00s [ 83/165] Installing diffutils-0:3.12-2 100% | 74.3 MiB/s | 1.6 MiB | 00m00s [ 84/165] Installing libpkgconf-0:2.3.0 100% | 77.4 MiB/s | 79.2 KiB | 00m00s [ 85/165] Installing pkgconf-0:2.3.0-2. 100% | 6.8 MiB/s | 91.0 KiB | 00m00s [ 86/165] Installing jansson-0:2.14-2.f 100% | 92.2 MiB/s | 94.4 KiB | 00m00s [ 87/165] Installing libgomp-0:15.1.1-1 100% | 263.6 MiB/s | 539.9 KiB | 00m00s [ 88/165] Installing npth-0:1.8-2.fc42. 100% | 49.5 MiB/s | 50.7 KiB | 00m00s [ 89/165] Installing libtool-ltdl-0:2.5 100% | 69.6 MiB/s | 71.2 KiB | 00m00s [ 90/165] Installing gdbm-libs-1:1.23-9 100% | 128.5 MiB/s | 131.6 KiB | 00m00s [ 91/165] Installing cyrus-sasl-lib-0:2 100% | 109.7 MiB/s | 2.3 MiB | 00m00s [ 92/165] Installing xxhash-libs-0:0.8. 100% | 89.4 MiB/s | 91.6 KiB | 00m00s [ 93/165] Installing libbrotli-0:1.1.0- 100% | 204.0 MiB/s | 835.6 KiB | 00m00s [ 94/165] Installing libnghttp2-0:1.65. 100% | 159.5 MiB/s | 163.3 KiB | 00m00s [ 95/165] Installing keyutils-libs-0:1. 100% | 58.3 MiB/s | 59.7 KiB | 00m00s [ 96/165] Installing libcom_err-0:1.47. 100% | 66.6 MiB/s | 68.2 KiB | 00m00s [ 97/165] Installing libverto-0:0.3.2-1 100% | 26.6 MiB/s | 27.2 KiB | 00m00s [ 98/165] Installing pcre2-syntax-0:10. 100% | 135.0 MiB/s | 276.4 KiB | 00m00s [ 99/165] Installing pcre2-0:10.45-1.fc 100% | 227.6 MiB/s | 699.1 KiB | 00m00s [100/165] Installing libselinux-0:3.8-1 100% | 189.8 MiB/s | 194.3 KiB | 00m00s [101/165] Installing grep-0:3.12-1.fc43 100% | 52.8 MiB/s | 1.0 MiB | 00m00s [102/165] Installing sed-0:4.9-4.fc42.x 100% | 47.0 MiB/s | 865.5 KiB | 00m00s [103/165] Installing findutils-1:4.10.0 100% | 85.2 MiB/s | 1.9 MiB | 00m00s [104/165] Installing xz-1:5.8.1-1.fc43. 100% | 60.5 MiB/s | 1.3 MiB | 00m00s [105/165] Installing libmount-0:2.41-2. 100% | 182.4 MiB/s | 373.7 KiB | 00m00s [106/165] Installing util-linux-core-0: 100% | 64.0 MiB/s | 1.5 MiB | 00m00s [107/165] Installing tar-2:1.35-5.fc42. 100% | 118.5 MiB/s | 3.0 MiB | 00m00s [108/165] Installing libsemanage-0:3.8- 100% | 149.5 MiB/s | 306.2 KiB | 00m00s [109/165] Installing systemd-standalone 100% | 22.6 MiB/s | 277.8 KiB | 00m00s [110/165] Installing pkgconf-m4-0:2.3.0 100% | 0.0 B/s | 14.8 KiB | 00m00s [111/165] Installing pkgconf-pkg-config 100% | 161.2 KiB/s | 1.8 KiB | 00m00s [112/165] Installing coreutils-common-0 100% | 245.5 MiB/s | 11.3 MiB | 00m00s [113/165] Installing openssl-libs-1:3.5 100% | 306.5 MiB/s | 8.9 MiB | 00m00s [114/165] Installing coreutils-0:9.7-1. 100% | 104.7 MiB/s | 5.4 MiB | 00m00s [115/165] Installing ca-certificates-0: 100% | 1.2 MiB/s | 2.4 MiB | 00m02s [116/165] Installing libarchive-0:3.7.7 100% | 182.2 MiB/s | 932.6 KiB | 00m00s [117/165] Installing krb5-libs-0:1.21.3 100% | 176.9 MiB/s | 2.3 MiB | 00m00s [118/165] Installing tpm2-tss-0:4.1.3-7 100% | 174.2 MiB/s | 1.6 MiB | 00m00s [119/165] Installing ima-evm-utils-libs 100% | 30.3 MiB/s | 62.0 KiB | 00m00s [120/165] Installing libssh-0:0.11.1-4. 100% | 184.7 MiB/s | 567.5 KiB | 00m00s [121/165] Installing gzip-0:1.13-3.fc42 100% | 24.3 MiB/s | 398.4 KiB | 00m00s [122/165] Installing rpm-sequoia-0:1.8. 100% | 250.4 MiB/s | 2.5 MiB | 00m00s [123/165] Installing rpm-libs-0:5.99.90 100% | 181.9 MiB/s | 931.3 KiB | 00m00s [124/165] Installing libfsverity-0:1.6- 100% | 32.7 MiB/s | 33.5 KiB | 00m00s [125/165] Installing libevent-0:2.1.12- 100% | 177.1 MiB/s | 906.9 KiB | 00m00s [126/165] Installing openldap-0:2.6.9-5 100% | 107.2 MiB/s | 658.9 KiB | 00m00s [127/165] Installing gnupg2-0:2.4.8-1.f 100% | 182.4 MiB/s | 9.8 MiB | 00m00s [128/165] Installing libcurl-0:8.14.0~r 100% | 217.8 MiB/s | 892.1 KiB | 00m00s [129/165] Installing elfutils-debuginfo 100% | 6.5 MiB/s | 86.2 KiB | 00m00s [130/165] Installing binutils-0:2.44-3. 100% | 231.3 MiB/s | 25.9 MiB | 00m00s [131/165] Installing elfutils-0:0.193-2 100% | 116.9 MiB/s | 2.9 MiB | 00m00s [132/165] Installing gdb-minimal-0:16.3 100% | 245.3 MiB/s | 13.2 MiB | 00m00s [133/165] Installing debugedit-0:5.1-6. 100% | 13.6 MiB/s | 195.4 KiB | 00m00s [134/165] Installing curl-0:8.14.0~rc1- 100% | 14.5 MiB/s | 476.0 KiB | 00m00s [135/165] Installing rpm-0:5.99.90-5.fc 100% | 47.3 MiB/s | 2.5 MiB | 00m00s [136/165] Installing efi-srpm-macros-0: 100% | 40.2 MiB/s | 41.1 KiB | 00m00s [137/165] Installing lua-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [138/165] Installing tree-sitter-srpm-m 100% | 8.4 MiB/s | 8.6 KiB | 00m00s [139/165] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.7 KiB | 00m00s [140/165] Installing rpm-sign-libs-0:5. 100% | 39.6 MiB/s | 40.5 KiB | 00m00s [141/165] Installing rpm-build-libs-0:5 100% | 129.5 MiB/s | 265.2 KiB | 00m00s [142/165] Installing gpgverify-0:2.1-3. 100% | 0.0 B/s | 9.4 KiB | 00m00s [143/165] Installing rust-srpm-macros-0 100% | 0.0 B/s | 5.6 KiB | 00m00s [144/165] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 740.0 B | 00m00s [145/165] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [146/165] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [147/165] Installing package-notes-srpm 100% | 0.0 B/s | 2.0 KiB | 00m00s [148/165] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [149/165] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.2 KiB | 00m00s [150/165] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [151/165] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [152/165] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [153/165] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [154/165] Installing ansible-srpm-macro 100% | 35.4 MiB/s | 36.2 KiB | 00m00s [155/165] Installing fonts-srpm-macros- 100% | 55.7 MiB/s | 57.0 KiB | 00m00s [156/165] Installing forge-srpm-macros- 100% | 39.3 MiB/s | 40.3 KiB | 00m00s [157/165] Installing go-srpm-macros-0:3 100% | 60.5 MiB/s | 62.0 KiB | 00m00s [158/165] Installing python-srpm-macros 100% | 51.8 MiB/s | 53.0 KiB | 00m00s [159/165] Installing redhat-rpm-config- 100% | 45.9 MiB/s | 188.0 KiB | 00m00s [160/165] Installing rpm-build-0:5.99.9 100% | 15.8 MiB/s | 290.3 KiB | 00m00s [161/165] Installing pyproject-srpm-mac 100% | 2.4 MiB/s | 2.5 KiB | 00m00s [162/165] Installing which-0:2.23-1.fc4 100% | 6.0 MiB/s | 85.6 KiB | 00m00s [163/165] Installing util-linux-0:2.41- 100% | 57.4 MiB/s | 3.6 MiB | 00m00s [164/165] Installing shadow-utils-2:4.1 100% | 71.1 MiB/s | 4.1 MiB | 00m00s [165/165] Installing info-0:7.2-3.fc42. 100% | 135.5 KiB/s | 358.3 KiB | 00m03s Warning: skipped OpenPGP checks for 163 packages from repositories: copr_base, http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch Complete! Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: add-determinism-0.6.0-1.fc43.x86_64 alternatives-1.33-1.fc43.x86_64 ansible-srpm-macros-1-17.1.fc42.noarch audit-libs-4.0.3-2.fc43.x86_64 bash-5.2.37-3.fc43.x86_64 binutils-2.44-3.fc43.x86_64 build-reproducibility-srpm-macros-0.6.0-1.fc43.noarch bzip2-1.0.8-20.fc42.x86_64 bzip2-libs-1.0.8-20.fc42.x86_64 ca-certificates-2024.2.69_v8.0.401-5.fc42.noarch coreutils-9.7-1.fc43.x86_64 coreutils-common-9.7-1.fc43.x86_64 cpio-2.15-2.fc41.x86_64 crypto-policies-20250402-2.git86c0178.fc43.noarch curl-8.14.0~rc1-1.fc43.x86_64 cyrus-sasl-lib-2.1.28-30.fc42.x86_64 debugedit-5.1-6.fc43.x86_64 diffutils-3.12-2.fc43.x86_64 dwz-0.15-9.fc42.x86_64 ed-1.21-2.fc42.x86_64 efi-srpm-macros-6-3.fc43.noarch elfutils-0.193-2.fc43.x86_64 elfutils-debuginfod-client-0.193-2.fc43.x86_64 elfutils-default-yama-scope-0.193-2.fc43.noarch elfutils-libelf-0.193-2.fc43.x86_64 elfutils-libs-0.193-2.fc43.x86_64 fedora-gpg-keys-43-0.2.noarch fedora-release-43-0.15.noarch fedora-release-common-43-0.15.noarch fedora-release-identity-basic-43-0.15.noarch fedora-repos-43-0.2.noarch fedora-repos-rawhide-43-0.2.noarch file-5.46-1.fc43.x86_64 file-libs-5.46-1.fc43.x86_64 filesystem-3.18-44.fc43.x86_64 filesystem-srpm-macros-3.18-44.fc43.noarch findutils-4.10.0-5.fc42.x86_64 fonts-srpm-macros-2.0.5-21.fc42.noarch forge-srpm-macros-0.4.0-2.fc42.noarch fpc-srpm-macros-1.3-14.fc42.noarch gawk-5.3.2-1.fc43.x86_64 gdb-minimal-16.3-1.fc43.x86_64 gdbm-libs-1.23-9.fc42.x86_64 ghc-srpm-macros-1.9.2-2.fc42.noarch glibc-2.41.9000-13.fc43.x86_64 glibc-common-2.41.9000-13.fc43.x86_64 glibc-gconv-extra-2.41.9000-13.fc43.x86_64 glibc-minimal-langpack-2.41.9000-13.fc43.x86_64 gmp-6.3.0-3.fc43.x86_64 gnat-srpm-macros-6-7.fc42.noarch gnupg2-2.4.8-1.fc43.x86_64 gnutls-3.8.9-5.fc43.x86_64 go-srpm-macros-3.6.0-7.fc43.noarch gpgverify-2.1-3.fc43.noarch grep-3.12-1.fc43.x86_64 gzip-1.13-3.fc42.x86_64 ima-evm-utils-libs-1.6.2-5.fc43.x86_64 info-7.2-3.fc42.x86_64 jansson-2.14-2.fc42.x86_64 json-c-0.18-2.fc42.x86_64 kernel-srpm-macros-1.0-25.fc42.noarch keyutils-libs-1.6.3-5.fc42.x86_64 krb5-libs-1.21.3-5.fc42.x86_64 libacl-2.3.2-3.fc42.x86_64 libarchive-3.7.7-4.fc43.x86_64 libassuan-2.5.7-3.fc42.x86_64 libattr-2.5.2-5.fc42.x86_64 libblkid-2.41-2.fc43.x86_64 libbrotli-1.1.0-6.fc43.x86_64 libcap-2.76-1.fc43.x86_64 libcap-ng-0.8.5-4.fc43.x86_64 libcom_err-1.47.2-3.fc42.x86_64 libcurl-8.14.0~rc1-1.fc43.x86_64 libeconf-0.7.6-1.fc43.x86_64 libevent-2.1.12-15.fc42.x86_64 libfdisk-2.41-2.fc43.x86_64 libffi-3.4.8-1.fc43.x86_64 libfsverity-1.6-2.fc42.x86_64 libgcc-15.1.1-1.fc43.x86_64 libgcrypt-1.11.1-1.fc43.x86_64 libgomp-15.1.1-1.fc43.x86_64 libgpg-error-1.55-1.fc43.x86_64 libidn2-2.3.8-1.fc43.x86_64 libksba-1.6.7-3.fc42.x86_64 liblastlog2-2.41-2.fc43.x86_64 libmount-2.41-2.fc43.x86_64 libnghttp2-1.65.0-1.fc43.x86_64 libpkgconf-2.3.0-2.fc42.x86_64 libpsl-0.21.5-5.fc42.x86_64 libselinux-3.8-1.fc43.x86_64 libsemanage-3.8-1.fc43.x86_64 libsepol-3.8-1.fc42.x86_64 libsmartcols-2.41-2.fc43.x86_64 libssh-0.11.1-4.fc42.x86_64 libssh-config-0.11.1-4.fc42.noarch libstdc++-15.1.1-1.fc43.x86_64 libtasn1-4.20.0-1.fc43.x86_64 libtool-ltdl-2.5.4-4.fc42.x86_64 libunistring-1.1-9.fc42.x86_64 libusb1-1.0.28-2.fc43.x86_64 libuuid-2.41-2.fc43.x86_64 libverto-0.3.2-10.fc42.x86_64 libxcrypt-4.4.38-7.fc43.x86_64 libxml2-2.12.10-1.fc43.x86_64 libzstd-1.5.7-1.fc43.x86_64 lua-libs-5.4.7-3.fc43.x86_64 lua-srpm-macros-1-15.fc42.noarch lz4-libs-1.10.0-2.fc42.x86_64 mpfr-4.2.2-1.fc43.x86_64 ncurses-base-6.5-5.20250125.fc42.noarch ncurses-libs-6.5-5.20250125.fc42.x86_64 nettle-3.10.1-1.fc43.x86_64 npth-1.8-2.fc42.x86_64 ocaml-srpm-macros-10-4.fc42.noarch openblas-srpm-macros-2-19.fc42.noarch openldap-2.6.9-5.fc43.x86_64 openssl-libs-3.5.0-3.fc43.x86_64 p11-kit-0.25.5-5.fc42.x86_64 p11-kit-trust-0.25.5-5.fc42.x86_64 package-notes-srpm-macros-0.5-13.fc42.noarch pam-libs-1.7.0-4.fc42.x86_64 patch-2.8-1.fc43.x86_64 pcre2-10.45-1.fc43.x86_64 pcre2-syntax-10.45-1.fc43.noarch perl-srpm-macros-1-57.fc42.noarch pkgconf-2.3.0-2.fc42.x86_64 pkgconf-m4-2.3.0-2.fc42.noarch pkgconf-pkg-config-2.3.0-2.fc42.x86_64 popt-1.19-8.fc42.x86_64 publicsuffix-list-dafsa-20250116-1.fc42.noarch pyproject-srpm-macros-1.18.1-1.fc43.noarch python-srpm-macros-3.14-5.fc43.noarch qt5-srpm-macros-5.15.16-1.fc43.noarch qt6-srpm-macros-6.9.0-2.fc43.noarch readline-8.2-13.fc43.x86_64 redhat-rpm-config-343-5.fc43.noarch rpm-5.99.90-5.fc43.x86_64 rpm-build-5.99.90-5.fc43.x86_64 rpm-build-libs-5.99.90-5.fc43.x86_64 rpm-libs-5.99.90-5.fc43.x86_64 rpm-sequoia-1.8.0-1.fc43.x86_64 rpm-sign-libs-5.99.90-5.fc43.x86_64 rust-srpm-macros-26.3-4.fc42.noarch sed-4.9-4.fc42.x86_64 setup-2.15.0-25.fc43.noarch shadow-utils-4.17.4-1.fc43.x86_64 sqlite-libs-3.49.1-1.fc43.x86_64 systemd-libs-257.5-5.fc43.x86_64 systemd-standalone-sysusers-257.5-5.fc43.x86_64 tar-1.35-5.fc42.x86_64 tpm2-tss-4.1.3-7.fc43.x86_64 tree-sitter-srpm-macros-0.2.4-1.fc43.noarch unzip-6.0-66.fc42.x86_64 util-linux-2.41-2.fc43.x86_64 util-linux-core-2.41-2.fc43.x86_64 which-2.23-1.fc42.x86_64 xxhash-libs-0.8.3-2.fc42.x86_64 xz-5.8.1-1.fc43.x86_64 xz-libs-5.8.1-1.fc43.x86_64 zig-srpm-macros-1-4.fc42.noarch zip-3.0-43.fc42.x86_64 zlib-ng-compat-2.2.4-2.fc43.x86_64 zstd-1.5.7-1.fc43.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1737158400 Wrote: /builddir/build/SRPMS/python-astroid-3.3.8-2.fc43.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1747421230.783866/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-78glc3eg/python-astroid/python-astroid.spec) Config(child) 0 minutes 12 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/python-astroid-3.3.8-2.fc43.src.rpm) Config(fedora-rawhide-x86_64) Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1747421230.783866/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management from host and used with --installroot: rpm-4.20.1-1.fc41.x86_64 rpm-sequoia-1.7.0-2.fc41.x86_64 python3-dnf-4.23.0-1.fc41.noarch python3-dnf-plugins-core-4.10.1-1.fc41.noarch dnf5-5.2.13.1-1.fc41.x86_64 dnf5-plugins-5.2.13.1-1.fc41.x86_64 Finish: chroot init Start: build phase for python-astroid-3.3.8-2.fc43.src.rpm Start: build setup for python-astroid-3.3.8-2.fc43.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1737158400 Wrote: /builddir/build/SRPMS/python-astroid-3.3.8-2.fc43.src.rpm Updating and loading repositories: fedora 100% | 622.1 KiB/s | 24.3 KiB | 00m00s Copr repository 100% | 19.7 KiB/s | 1.5 KiB | 00m00s Additional repo http_kojipkgs_fedorapr 100% | 64.9 KiB/s | 3.8 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: python3-devel x86_64 3.14.0~b1-2.fc43 copr_base 1.9 MiB python3-pytest noarch 8.3.4-3.fc43 copr_base 4.1 MiB python3-setuptools noarch 78.1.1-5.fc43 copr_base 9.0 MiB Installing dependencies: expat x86_64 2.7.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 294.2 KiB mpdecimal x86_64 4.0.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 217.2 KiB pyproject-rpm-macros noarch 1.18.1-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 114.5 KiB python-pip-wheel noarch 24.3.1-2.fc42 copr_base 1.2 MiB python-rpm-macros noarch 3.14-5.fc43 copr_base 22.1 KiB python3 x86_64 3.14.0~b1-2.fc43 copr_base 28.9 KiB python3-iniconfig noarch 1.1.1-25.fc43 copr_base 21.0 KiB python3-libs x86_64 3.14.0~b1-2.fc43 copr_base 42.5 MiB python3-packaging noarch 25.0-1.fc43 copr_base 607.5 KiB python3-pluggy noarch 1.5.0-2.fc43 copr_base 213.2 KiB python3-rpm-generators noarch 14-12.fc42 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 81.7 KiB python3-rpm-macros noarch 3.14-5.fc43 copr_base 6.4 KiB tzdata noarch 2025b-1.fc43 http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch 1.6 MiB Transaction Summary: Installing: 16 packages Total size of inbound packages is 15 MiB. Need to download 0 B. After this operation, 62 MiB extra will be used (install 62 MiB, remove 0 B). [ 1/16] python3-devel-0:3.14.0~b1-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/16] python3-pytest-0:8.3.4-3.fc43.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/16] python3-setuptools-0:78.1.1-5.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/16] python3-0:3.14.0~b1-2.fc43.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/16] python3-libs-0:3.14.0~b1-2.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/16] python3-iniconfig-0:1.1.1-25.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/16] python3-packaging-0:25.0-1.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/16] python3-pluggy-0:1.5.0-2.fc43.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/16] expat-0:2.7.1-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [10/16] mpdecimal-0:4.0.1-1.fc43.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [11/16] python-pip-wheel-0:24.3.1-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [12/16] tzdata-0:2025b-1.fc43.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [13/16] python-rpm-macros-0:3.14-5.fc43 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [14/16] python3-rpm-macros-0:3.14-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [15/16] pyproject-rpm-macros-0:1.18.1-1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [16/16] python3-rpm-generators-0:14-12. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [16/16] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/18] Verify package files 100% | 258.0 B/s | 16.0 B | 00m00s [ 2/18] Prepare transaction 100% | 313.0 B/s | 16.0 B | 00m00s [ 3/18] Installing python-rpm-macros-0: 100% | 22.3 MiB/s | 22.8 KiB | 00m00s [ 4/18] Installing python3-rpm-macros-0 100% | 6.5 MiB/s | 6.7 KiB | 00m00s [ 5/18] Installing pyproject-rpm-macros 100% | 28.4 MiB/s | 116.4 KiB | 00m00s [ 6/18] Installing tzdata-0:2025b-1.fc4 100% | 24.3 MiB/s | 1.9 MiB | 00m00s [ 7/18] Installing python-pip-wheel-0:2 100% | 414.7 MiB/s | 1.2 MiB | 00m00s [ 8/18] Installing mpdecimal-0:4.0.1-1. 100% | 106.8 MiB/s | 218.8 KiB | 00m00s [ 9/18] Installing expat-0:2.7.1-1.fc43 100% | 14.5 MiB/s | 296.3 KiB | 00m00s [10/18] Installing python3-libs-0:3.14. 100% | 184.8 MiB/s | 42.9 MiB | 00m00s [11/18] Installing python3-0:3.14.0~b1- 100% | 2.1 MiB/s | 30.7 KiB | 00m00s [12/18] Installing python3-packaging-0: 100% | 86.5 MiB/s | 620.0 KiB | 00m00s [13/18] Installing python3-rpm-generato 100% | 81.0 MiB/s | 82.9 KiB | 00m00s [14/18] Installing python3-iniconfig-0: 100% | 11.8 MiB/s | 24.2 KiB | 00m00s [15/18] Installing python3-pluggy-0:1.5 100% | 71.5 MiB/s | 219.7 KiB | 00m00s [16/18] Installing python3-pytest-0:8.3 100% | 121.0 MiB/s | 4.1 MiB | 00m00s [17/18] Installing python3-devel-0:3.14 100% | 58.3 MiB/s | 2.0 MiB | 00m00s [18/18] Installing python3-setuptools-0 100% | 78.2 MiB/s | 9.2 MiB | 00m00s Warning: skipped OpenPGP checks for 16 packages from repositories: copr_base, http_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch Complete! Finish: build setup for python-astroid-3.3.8-2.fc43.src.rpm Start: rpmbuild python-astroid-3.3.8-2.fc43.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1737158400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.KI33Eb Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xUyJsl + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + cd /builddir/build/BUILD/python-astroid-3.3.8-build + rm -rf astroid-3.3.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/astroid-3.3.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd astroid-3.3.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.F6x5s9 + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + cd astroid-3.3.8 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=43 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir --output /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-buildrequires Handling setuptools>=64.0 from build-system.requires Requirement satisfied: setuptools>=64.0 (installed: setuptools 78.1.1) Handling wheel>=0.37.1 from build-system.requires Requirement not satisfied: wheel>=0.37.1 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-astroid-3.3.8-2.fc43.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: fedora 100% | 898.7 KiB/s | 24.3 KiB | 00m00s Copr repository 100% | 32.7 KiB/s | 1.5 KiB | 00m00s Additional repo http_kojipkgs_fedorapr 100% | 68.4 KiB/s | 3.8 KiB | 00m00s Repositories loaded. Package "pyproject-rpm-macros-1.18.1-1.fc43.noarch" is already installed. Package "python3-devel-3.14.0~b1-2.fc43.x86_64" is already installed. Package "python3-pytest-8.3.4-3.fc43.noarch" is already installed. Package "python3-setuptools-78.1.1-5.fc43.noarch" is already installed. Package "python3-packaging-25.0-1.fc43.noarch" is already installed. Package "python3-setuptools-78.1.1-5.fc43.noarch" is already installed. Package Arch Version Repository Size Installing: python3-pip noarch 24.3.1-2.fc42 copr_base 12.0 MiB python3-wheel noarch 1:0.45.1-13.fc43 copr_base 593.2 KiB Transaction Summary: Installing: 2 packages Total size of inbound packages is 3 MiB. Need to download 0 B. After this operation, 13 MiB extra will be used (install 13 MiB, remove 0 B). [1/2] python3-pip-0:24.3.1-2.fc42.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [2/2] python3-wheel-1:0.45.1-13.fc43.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [1/4] Verify package files 100% | 153.0 B/s | 2.0 B | 00m00s [2/4] Prepare transaction 100% | 86.0 B/s | 2.0 B | 00m00s [3/4] Installing python3-wheel-1:0.45.1 100% | 24.0 MiB/s | 613.2 KiB | 00m00s [4/4] Installing python3-pip-0:24.3.1-2 100% | 82.5 MiB/s | 12.2 MiB | 00m00s Warning: skipped OpenPGP checks for 2 packages from repository: copr_base Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1737158400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.oDoZMQ + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + cd astroid-3.3.8 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=43 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir --output /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-buildrequires Handling setuptools>=64.0 from build-system.requires Requirement satisfied: setuptools>=64.0 (installed: setuptools 78.1.1) Handling wheel>=0.37.1 from build-system.requires Requirement satisfied: wheel>=0.37.1 (installed: wheel 0.45.1) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0). !! ******************************************************************************** By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details. ******************************************************************************** !! _apply_tool_table(dist, config, filename) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info creating astroid.egg-info writing astroid.egg-info/PKG-INFO writing dependency_links to astroid.egg-info/dependency_links.txt writing requirements to astroid.egg-info/requires.txt writing top-level names to astroid.egg-info/top_level.txt writing manifest file 'astroid.egg-info/SOURCES.txt' reading manifest file 'astroid.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'CONTRIBUTORS.txt' writing manifest file 'astroid.egg-info/SOURCES.txt' /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0). !! ******************************************************************************** By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details. ******************************************************************************** !! _apply_tool_table(dist, config, filename) running dist_info writing astroid.egg-info/PKG-INFO writing dependency_links to astroid.egg-info/dependency_links.txt writing requirements to astroid.egg-info/requires.txt writing top-level names to astroid.egg-info/top_level.txt reading manifest file 'astroid.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'CONTRIBUTORS.txt' writing manifest file 'astroid.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/astroid-3.3.8.dist-info' Handling typing-extensions>=4.0.0; python_version < "3.11" from hook generated metadata: Requires-Dist (astroid) Ignoring alien requirement: typing-extensions>=4.0.0; python_version < "3.11" + cat /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-buildrequires + rm -rfv astroid-3.3.8.dist-info/ removed 'astroid-3.3.8.dist-info/top_level.txt' removed 'astroid-3.3.8.dist-info/METADATA' removed 'astroid-3.3.8.dist-info/licenses/LICENSE' removed 'astroid-3.3.8.dist-info/licenses/CONTRIBUTORS.txt' removed directory 'astroid-3.3.8.dist-info/licenses' removed directory 'astroid-3.3.8.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-astroid-3.3.8-2.fc43.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: fedora 100% | 866.6 KiB/s | 24.3 KiB | 00m00s Copr repository 100% | 42.7 KiB/s | 1.5 KiB | 00m00s Additional repo http_kojipkgs_fedorapr 100% | 67.2 KiB/s | 3.8 KiB | 00m00s Repositories loaded. Nothing to do. Package "pyproject-rpm-macros-1.18.1-1.fc43.noarch" is already installed. Package "python3-devel-3.14.0~b1-2.fc43.x86_64" is already installed. Package "python3-pytest-8.3.4-3.fc43.noarch" is already installed. Package "python3-setuptools-78.1.1-5.fc43.noarch" is already installed. Package "python3-packaging-25.0-1.fc43.noarch" is already installed. Package "python3-pip-24.3.1-2.fc42.noarch" is already installed. Package "python3-setuptools-78.1.1-5.fc43.noarch" is already installed. Package "python3-wheel-1:0.45.1-13.fc43.noarch" is already installed. Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1737158400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.FLhZtD + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + cd astroid-3.3.8 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=43 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir --output /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-buildrequires Handling setuptools>=64.0 from build-system.requires Requirement satisfied: setuptools>=64.0 (installed: setuptools 78.1.1) Handling wheel>=0.37.1 from build-system.requires Requirement satisfied: wheel>=0.37.1 (installed: wheel 0.45.1) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0). !! ******************************************************************************** By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details. ******************************************************************************** !! _apply_tool_table(dist, config, filename) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing astroid.egg-info/PKG-INFO writing dependency_links to astroid.egg-info/dependency_links.txt writing requirements to astroid.egg-info/requires.txt writing top-level names to astroid.egg-info/top_level.txt reading manifest file 'astroid.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'CONTRIBUTORS.txt' writing manifest file 'astroid.egg-info/SOURCES.txt' /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0). !! ******************************************************************************** By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details. ******************************************************************************** !! _apply_tool_table(dist, config, filename) running dist_info writing astroid.egg-info/PKG-INFO writing dependency_links to astroid.egg-info/dependency_links.txt writing requirements to astroid.egg-info/requires.txt writing top-level names to astroid.egg-info/top_level.txt reading manifest file 'astroid.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'CONTRIBUTORS.txt' writing manifest file 'astroid.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/astroid-3.3.8.dist-info' Handling typing-extensions>=4.0.0; python_version < "3.11" from hook generated metadata: Requires-Dist (astroid) Ignoring alien requirement: typing-extensions>=4.0.0; python_version < "3.11" + cat /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-buildrequires + rm -rfv astroid-3.3.8.dist-info/ removed 'astroid-3.3.8.dist-info/top_level.txt' removed 'astroid-3.3.8.dist-info/METADATA' removed 'astroid-3.3.8.dist-info/licenses/LICENSE' removed 'astroid-3.3.8.dist-info/licenses/CONTRIBUTORS.txt' removed directory 'astroid-3.3.8.dist-info/licenses' removed directory 'astroid-3.3.8.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tqivmx + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd astroid-3.3.8 + mkdir -p /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir Processing /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0). !! ******************************************************************************** By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details. ******************************************************************************** !! _apply_tool_table(dist, config, filename) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running dist_info creating /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info writing /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'CONTRIBUTORS.txt' writing manifest file '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-modern-metadata-a8olzrxd/astroid-3.3.8.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: astroid Building wheel for astroid (pyproject.toml): started Running command Building wheel for astroid (pyproject.toml) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:55: SetuptoolsDeprecationWarning: 'tool.setuptools.license-files' is deprecated in favor of 'project.license-files' (available on setuptools>=77.0.0). !! ******************************************************************************** By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-files for details. ******************************************************************************** !! _apply_tool_table(dist, config, filename) /usr/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build/lib/astroid copying ./astroid/__init__.py -> build/lib/astroid copying ./astroid/__pkginfo__.py -> build/lib/astroid copying ./astroid/_ast.py -> build/lib/astroid copying ./astroid/_backport_stdlib_names.py -> build/lib/astroid copying ./astroid/arguments.py -> build/lib/astroid copying ./astroid/astroid_manager.py -> build/lib/astroid copying ./astroid/bases.py -> build/lib/astroid copying ./astroid/builder.py -> build/lib/astroid copying ./astroid/const.py -> build/lib/astroid copying ./astroid/constraint.py -> build/lib/astroid copying ./astroid/context.py -> build/lib/astroid copying ./astroid/decorators.py -> build/lib/astroid copying ./astroid/exceptions.py -> build/lib/astroid copying ./astroid/filter_statements.py -> build/lib/astroid copying ./astroid/helpers.py -> build/lib/astroid copying ./astroid/inference_tip.py -> build/lib/astroid copying ./astroid/manager.py -> build/lib/astroid copying ./astroid/modutils.py -> build/lib/astroid copying ./astroid/objects.py -> build/lib/astroid copying ./astroid/protocols.py -> build/lib/astroid copying ./astroid/raw_building.py -> build/lib/astroid copying ./astroid/rebuilder.py -> build/lib/astroid copying ./astroid/test_utils.py -> build/lib/astroid copying ./astroid/transforms.py -> build/lib/astroid copying ./astroid/typing.py -> build/lib/astroid copying ./astroid/util.py -> build/lib/astroid creating build/lib/astroid/brain copying ./astroid/brain/__init__.py -> build/lib/astroid/brain copying ./astroid/brain/brain_argparse.py -> build/lib/astroid/brain copying ./astroid/brain/brain_attrs.py -> build/lib/astroid/brain copying ./astroid/brain/brain_boto3.py -> build/lib/astroid/brain copying ./astroid/brain/brain_builtin_inference.py -> build/lib/astroid/brain copying ./astroid/brain/brain_collections.py -> build/lib/astroid/brain copying ./astroid/brain/brain_crypt.py -> build/lib/astroid/brain copying ./astroid/brain/brain_ctypes.py -> build/lib/astroid/brain copying ./astroid/brain/brain_curses.py -> build/lib/astroid/brain copying ./astroid/brain/brain_dataclasses.py -> build/lib/astroid/brain copying ./astroid/brain/brain_datetime.py -> build/lib/astroid/brain copying ./astroid/brain/brain_dateutil.py -> build/lib/astroid/brain copying ./astroid/brain/brain_functools.py -> build/lib/astroid/brain copying ./astroid/brain/brain_gi.py -> build/lib/astroid/brain copying ./astroid/brain/brain_hashlib.py -> build/lib/astroid/brain copying ./astroid/brain/brain_http.py -> build/lib/astroid/brain copying ./astroid/brain/brain_hypothesis.py -> build/lib/astroid/brain copying ./astroid/brain/brain_io.py -> build/lib/astroid/brain copying ./astroid/brain/brain_mechanize.py -> build/lib/astroid/brain copying ./astroid/brain/brain_multiprocessing.py -> build/lib/astroid/brain copying ./astroid/brain/brain_namedtuple_enum.py -> build/lib/astroid/brain copying ./astroid/brain/brain_nose.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_einsumfunc.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_fromnumeric.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_function_base.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_multiarray.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_numeric.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_numerictypes.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_core_umath.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_ma.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_ndarray.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_random_mtrand.py -> build/lib/astroid/brain copying ./astroid/brain/brain_numpy_utils.py -> build/lib/astroid/brain copying ./astroid/brain/brain_pathlib.py -> build/lib/astroid/brain copying ./astroid/brain/brain_pkg_resources.py -> build/lib/astroid/brain copying ./astroid/brain/brain_pytest.py -> build/lib/astroid/brain copying ./astroid/brain/brain_qt.py -> build/lib/astroid/brain copying ./astroid/brain/brain_random.py -> build/lib/astroid/brain copying ./astroid/brain/brain_re.py -> build/lib/astroid/brain copying ./astroid/brain/brain_regex.py -> build/lib/astroid/brain copying ./astroid/brain/brain_responses.py -> build/lib/astroid/brain copying ./astroid/brain/brain_scipy_signal.py -> build/lib/astroid/brain copying ./astroid/brain/brain_signal.py -> build/lib/astroid/brain copying ./astroid/brain/brain_six.py -> build/lib/astroid/brain copying ./astroid/brain/brain_sqlalchemy.py -> build/lib/astroid/brain copying ./astroid/brain/brain_ssl.py -> build/lib/astroid/brain copying ./astroid/brain/brain_subprocess.py -> build/lib/astroid/brain copying ./astroid/brain/brain_threading.py -> build/lib/astroid/brain copying ./astroid/brain/brain_type.py -> build/lib/astroid/brain copying ./astroid/brain/brain_typing.py -> build/lib/astroid/brain copying ./astroid/brain/brain_unittest.py -> build/lib/astroid/brain copying ./astroid/brain/brain_uuid.py -> build/lib/astroid/brain copying ./astroid/brain/helpers.py -> build/lib/astroid/brain creating build/lib/astroid/interpreter copying ./astroid/interpreter/__init__.py -> build/lib/astroid/interpreter copying ./astroid/interpreter/dunder_lookup.py -> build/lib/astroid/interpreter copying ./astroid/interpreter/objectmodel.py -> build/lib/astroid/interpreter creating build/lib/astroid/nodes copying ./astroid/nodes/__init__.py -> build/lib/astroid/nodes copying ./astroid/nodes/_base_nodes.py -> build/lib/astroid/nodes copying ./astroid/nodes/as_string.py -> build/lib/astroid/nodes copying ./astroid/nodes/const.py -> build/lib/astroid/nodes copying ./astroid/nodes/node_classes.py -> build/lib/astroid/nodes copying ./astroid/nodes/node_ng.py -> build/lib/astroid/nodes copying ./astroid/nodes/utils.py -> build/lib/astroid/nodes creating build/lib/astroid/interpreter/_import copying ./astroid/interpreter/_import/__init__.py -> build/lib/astroid/interpreter/_import copying ./astroid/interpreter/_import/spec.py -> build/lib/astroid/interpreter/_import copying ./astroid/interpreter/_import/util.py -> build/lib/astroid/interpreter/_import creating build/lib/astroid/nodes/scoped_nodes copying ./astroid/nodes/scoped_nodes/__init__.py -> build/lib/astroid/nodes/scoped_nodes copying ./astroid/nodes/scoped_nodes/mixin.py -> build/lib/astroid/nodes/scoped_nodes copying ./astroid/nodes/scoped_nodes/scoped_nodes.py -> build/lib/astroid/nodes/scoped_nodes copying ./astroid/nodes/scoped_nodes/utils.py -> build/lib/astroid/nodes/scoped_nodes running egg_info writing astroid.egg-info/PKG-INFO writing dependency_links to astroid.egg-info/dependency_links.txt writing requirements to astroid.egg-info/requires.txt writing top-level names to astroid.egg-info/top_level.txt reading manifest file 'astroid.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'CONTRIBUTORS.txt' writing manifest file 'astroid.egg-info/SOURCES.txt' installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/astroid copying build/lib/astroid/__init__.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/__pkginfo__.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/_ast.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/_backport_stdlib_names.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/arguments.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/astroid_manager.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/bases.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/builder.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/const.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/constraint.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/context.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/decorators.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/exceptions.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/filter_statements.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/helpers.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/inference_tip.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/manager.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/modutils.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/objects.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/protocols.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/raw_building.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/rebuilder.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/test_utils.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/transforms.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/typing.py -> build/bdist.linux-x86_64/wheel/./astroid copying build/lib/astroid/util.py -> build/bdist.linux-x86_64/wheel/./astroid creating build/bdist.linux-x86_64/wheel/astroid/brain copying build/lib/astroid/brain/__init__.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_argparse.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_attrs.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_boto3.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_builtin_inference.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_collections.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_crypt.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_ctypes.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_curses.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_dataclasses.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_datetime.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_dateutil.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_functools.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_gi.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_hashlib.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_http.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_hypothesis.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_io.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_mechanize.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_multiprocessing.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_namedtuple_enum.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_nose.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_einsumfunc.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_fromnumeric.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_function_base.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_multiarray.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_numeric.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_numerictypes.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_core_umath.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_ma.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_ndarray.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_random_mtrand.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_numpy_utils.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_pathlib.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_pkg_resources.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_pytest.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_qt.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_random.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_re.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_regex.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_responses.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_scipy_signal.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_signal.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_six.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_sqlalchemy.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_ssl.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_subprocess.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_threading.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_type.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_typing.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_unittest.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/brain_uuid.py -> build/bdist.linux-x86_64/wheel/./astroid/brain copying build/lib/astroid/brain/helpers.py -> build/bdist.linux-x86_64/wheel/./astroid/brain creating build/bdist.linux-x86_64/wheel/astroid/interpreter copying build/lib/astroid/interpreter/__init__.py -> build/bdist.linux-x86_64/wheel/./astroid/interpreter copying build/lib/astroid/interpreter/dunder_lookup.py -> build/bdist.linux-x86_64/wheel/./astroid/interpreter copying build/lib/astroid/interpreter/objectmodel.py -> build/bdist.linux-x86_64/wheel/./astroid/interpreter creating build/bdist.linux-x86_64/wheel/astroid/interpreter/_import copying build/lib/astroid/interpreter/_import/__init__.py -> build/bdist.linux-x86_64/wheel/./astroid/interpreter/_import copying build/lib/astroid/interpreter/_import/spec.py -> build/bdist.linux-x86_64/wheel/./astroid/interpreter/_import copying build/lib/astroid/interpreter/_import/util.py -> build/bdist.linux-x86_64/wheel/./astroid/interpreter/_import creating build/bdist.linux-x86_64/wheel/astroid/nodes copying build/lib/astroid/nodes/__init__.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes copying build/lib/astroid/nodes/_base_nodes.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes copying build/lib/astroid/nodes/as_string.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes copying build/lib/astroid/nodes/const.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes copying build/lib/astroid/nodes/node_classes.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes copying build/lib/astroid/nodes/node_ng.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes copying build/lib/astroid/nodes/utils.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes creating build/bdist.linux-x86_64/wheel/astroid/nodes/scoped_nodes copying build/lib/astroid/nodes/scoped_nodes/__init__.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes/scoped_nodes copying build/lib/astroid/nodes/scoped_nodes/mixin.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes/scoped_nodes copying build/lib/astroid/nodes/scoped_nodes/scoped_nodes.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes/scoped_nodes copying build/lib/astroid/nodes/scoped_nodes/utils.py -> build/bdist.linux-x86_64/wheel/./astroid/nodes/scoped_nodes running install_egg_info Copying astroid.egg-info to build/bdist.linux-x86_64/wheel/./astroid-3.3.8-py3.14.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/astroid-3.3.8.dist-info/WHEEL creating '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir/pip-wheel-nego40v7/.tmp-j9aq_vpu/astroid-3.3.8-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'astroid/__init__.py' adding 'astroid/__pkginfo__.py' adding 'astroid/_ast.py' adding 'astroid/_backport_stdlib_names.py' adding 'astroid/arguments.py' adding 'astroid/astroid_manager.py' adding 'astroid/bases.py' adding 'astroid/builder.py' adding 'astroid/const.py' adding 'astroid/constraint.py' adding 'astroid/context.py' adding 'astroid/decorators.py' adding 'astroid/exceptions.py' adding 'astroid/filter_statements.py' adding 'astroid/helpers.py' adding 'astroid/inference_tip.py' adding 'astroid/manager.py' adding 'astroid/modutils.py' adding 'astroid/objects.py' adding 'astroid/protocols.py' adding 'astroid/raw_building.py' adding 'astroid/rebuilder.py' adding 'astroid/test_utils.py' adding 'astroid/transforms.py' adding 'astroid/typing.py' adding 'astroid/util.py' adding 'astroid/brain/__init__.py' adding 'astroid/brain/brain_argparse.py' adding 'astroid/brain/brain_attrs.py' adding 'astroid/brain/brain_boto3.py' adding 'astroid/brain/brain_builtin_inference.py' adding 'astroid/brain/brain_collections.py' adding 'astroid/brain/brain_crypt.py' adding 'astroid/brain/brain_ctypes.py' adding 'astroid/brain/brain_curses.py' adding 'astroid/brain/brain_dataclasses.py' adding 'astroid/brain/brain_datetime.py' adding 'astroid/brain/brain_dateutil.py' adding 'astroid/brain/brain_functools.py' adding 'astroid/brain/brain_gi.py' adding 'astroid/brain/brain_hashlib.py' adding 'astroid/brain/brain_http.py' adding 'astroid/brain/brain_hypothesis.py' adding 'astroid/brain/brain_io.py' adding 'astroid/brain/brain_mechanize.py' adding 'astroid/brain/brain_multiprocessing.py' adding 'astroid/brain/brain_namedtuple_enum.py' adding 'astroid/brain/brain_nose.py' adding 'astroid/brain/brain_numpy_core_einsumfunc.py' adding 'astroid/brain/brain_numpy_core_fromnumeric.py' adding 'astroid/brain/brain_numpy_core_function_base.py' adding 'astroid/brain/brain_numpy_core_multiarray.py' adding 'astroid/brain/brain_numpy_core_numeric.py' adding 'astroid/brain/brain_numpy_core_numerictypes.py' adding 'astroid/brain/brain_numpy_core_umath.py' adding 'astroid/brain/brain_numpy_ma.py' adding 'astroid/brain/brain_numpy_ndarray.py' adding 'astroid/brain/brain_numpy_random_mtrand.py' adding 'astroid/brain/brain_numpy_utils.py' adding 'astroid/brain/brain_pathlib.py' adding 'astroid/brain/brain_pkg_resources.py' adding 'astroid/brain/brain_pytest.py' adding 'astroid/brain/brain_qt.py' adding 'astroid/brain/brain_random.py' adding 'astroid/brain/brain_re.py' adding 'astroid/brain/brain_regex.py' adding 'astroid/brain/brain_responses.py' adding 'astroid/brain/brain_scipy_signal.py' adding 'astroid/brain/brain_signal.py' adding 'astroid/brain/brain_six.py' adding 'astroid/brain/brain_sqlalchemy.py' adding 'astroid/brain/brain_ssl.py' adding 'astroid/brain/brain_subprocess.py' adding 'astroid/brain/brain_threading.py' adding 'astroid/brain/brain_type.py' adding 'astroid/brain/brain_typing.py' adding 'astroid/brain/brain_unittest.py' adding 'astroid/brain/brain_uuid.py' adding 'astroid/brain/helpers.py' adding 'astroid/interpreter/__init__.py' adding 'astroid/interpreter/dunder_lookup.py' adding 'astroid/interpreter/objectmodel.py' adding 'astroid/interpreter/_import/__init__.py' adding 'astroid/interpreter/_import/spec.py' adding 'astroid/interpreter/_import/util.py' adding 'astroid/nodes/__init__.py' adding 'astroid/nodes/_base_nodes.py' adding 'astroid/nodes/as_string.py' adding 'astroid/nodes/const.py' adding 'astroid/nodes/node_classes.py' adding 'astroid/nodes/node_ng.py' adding 'astroid/nodes/utils.py' adding 'astroid/nodes/scoped_nodes/__init__.py' adding 'astroid/nodes/scoped_nodes/mixin.py' adding 'astroid/nodes/scoped_nodes/scoped_nodes.py' adding 'astroid/nodes/scoped_nodes/utils.py' adding 'astroid-3.3.8.dist-info/licenses/CONTRIBUTORS.txt' adding 'astroid-3.3.8.dist-info/licenses/LICENSE' adding 'astroid-3.3.8.dist-info/METADATA' adding 'astroid-3.3.8.dist-info/WHEEL' adding 'astroid-3.3.8.dist-info/top_level.txt' adding 'astroid-3.3.8.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for astroid (pyproject.toml): finished with status 'done' Created wheel for astroid: filename=astroid-3.3.8-py3-none-any.whl size=273908 sha256=0b9ee480eb98497e9f8f916ece41d145022ec6789f11b0c1afc143732c951964 Stored in directory: /builddir/.cache/pip/wheels/b9/2b/12/370472f638ff45b10c31c098d2c18a007cddcf6d33c7731c2a Successfully built astroid + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EZLvMT + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + '[' /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT ++ dirname /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT + mkdir -p /builddir/build/BUILD/python-astroid-3.3.8-build + mkdir /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd astroid-3.3.8 ++ xargs basename --multiple ++ ls /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir/astroid-3.3.8-py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=astroid==3.3.8 + '[' -z astroid==3.3.8 ']' + TMPDIR=/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir astroid==3.3.8 Using pip 24.3.1 from /usr/lib/python3.14/site-packages/pip (python 3.14) Looking in links: /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/pyproject-wheeldir Processing ./pyproject-wheeldir/astroid-3.3.8-py3-none-any.whl Installing collected packages: astroid Successfully installed astroid-3.3.8 + '[' -d /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/bin ']' + rm -f /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages ']' + site_dirs+=("/usr/lib/python3.14/site-packages") + '[' /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib64/python3.14/site-packages '!=' /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages ']' + '[' -d /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib64/python3.14/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT --record /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info/RECORD --output /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-record + rm -fv /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info/RECORD removed '/builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info/RECORD' + rm -fv /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info/REQUESTED removed '/builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid-3.3.8.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-astroid-3.3.8-build/python-astroid-3.3.8-2.fc43.x86_64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + rm -rf /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/tests + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 Bytecompiling .py files below /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14 using python3.14 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j2 /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/__init__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_argparse.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_attrs.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_boto3.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_collections.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_crypt.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_ctypes.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_curses.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_builtin_inference.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_datetime.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_dateutil.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_functools.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_gi.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_hashlib.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_http.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_hypothesis.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_io.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_mechanize.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_multiprocessing.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_dataclasses.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_nose.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_einsumfunc.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_fromnumeric.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_function_base.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_multiarray.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_namedtuple_enum.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_numeric.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_umath.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_core_numerictypes.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_ma.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_random_mtrand.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_utils.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_pathlib.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_pkg_resources.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_pytest.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_qt.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_random.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_numpy_ndarray.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_re.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_regex.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_responses.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_scipy_signal.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_signal.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_sqlalchemy.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_ssl.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_subprocess.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_threading.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_type.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_six.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_unittest.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_uuid.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_typing.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/helpers.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_functools.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/interpreter/_import/__pycache__/__init__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/interpreter/_import/__pycache__/spec.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/interpreter/_import/__pycache__/util.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/interpreter/__pycache__/__init__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/interpreter/__pycache__/dunder_lookup.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/brain/__pycache__/brain_builtin_inference.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/scoped_nodes/__pycache__/__init__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/scoped_nodes/__pycache__/mixin.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/interpreter/__pycache__/objectmodel.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/scoped_nodes/__pycache__/utils.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/scoped_nodes/__pycache__/scoped_nodes.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/__init__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/_base_nodes.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/scoped_nodes/__pycache__/scoped_nodes.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/const.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/as_string.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/node_ng.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/utils.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/node_classes.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/node_ng.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/__init__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/__pkginfo__.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/_ast.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/_backport_stdlib_names.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/arguments.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/astroid_manager.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/nodes/__pycache__/node_classes.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/bases.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/const.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/constraint.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/builder.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/context.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/decorators.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/filter_statements.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/helpers.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/inference_tip.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/exceptions.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/manager.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/modutils.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/objects.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/protocols.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/raw_building.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/test_utils.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/transforms.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/typing.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/util.cpython-314.pyc: rewriting with normalized contents /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/bases.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/builder.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/filter_statements.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/modutils.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/manager.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/objects.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/raw_building.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/rebuilder.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages/astroid/__pycache__/rebuilder.cpython-314.opt-1.pyc: replacing with normalized version Scanned 19 directories and 294 files, processed 109 inodes, 109 modified (26 replaced + 83 rewritten), 0 unsupported format, 0 errors Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Nea7hx + umask 022 + cd /builddir/build/BUILD/python-astroid-3.3.8-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd astroid-3.3.8 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + PATH=/builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib64/python3.14/site-packages:/builddir/build/BUILD/python-astroid-3.3.8-build/BUILDROOT/usr/lib/python3.14/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=2 + /usr/bin/pytest -v ============================= test session starts ============================== platform linux -- Python 3.14.0b1, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8 configfile: pyproject.toml testpaths: tests collecting ... collected 1708 items tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray SKIPPED [ 0%] tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters SKIPPED [ 0%] tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray SKIPPED [ 0%] tests/brain/numpy/test_core_function_base.py::BrainNumpyCoreFunctionBaseTest::test_numpy_function_calls_inferred_as_ndarray SKIPPED [ 0%] tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_bool SKIPPED [ 0%] tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_dtype SKIPPED [ 0%] tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_ndarray SKIPPED [ 0%] tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_none SKIPPED [ 0%] tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_tuple SKIPPED [ 0%] tests/brain/numpy/test_core_numeric.py::BrainNumpyCoreNumericTest::test_numpy_function_calls_inferred_as_ndarray SKIPPED [ 0%] tests/brain/numpy/test_core_numeric.py::test_function_parameters[zeros_like-expected_args0] SKIPPED [ 0%] tests/brain/numpy/test_core_numeric.py::test_function_parameters[full_like-expected_args1] SKIPPED [ 0%] tests/brain/numpy/test_core_numeric.py::test_function_parameters[ones_like-expected_args2] SKIPPED [ 0%] tests/brain/numpy/test_core_numeric.py::test_function_parameters[ones-expected_args3] SKIPPED [ 0%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_array_types_have_unary_operators SKIPPED [ 0%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_datetime_astype_return SKIPPED [ 0%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_generic_types_are_subscriptables SKIPPED [ 0%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_generic_types_have_attributes SKIPPED [ 1%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_generic_types_have_methods SKIPPED [ 1%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_number_types_have_unary_operators SKIPPED [ 1%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_numpy_core_types SKIPPED [ 1%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainUtilsTest::test_get_numpy_version_do_not_crash PASSED [ 1%] tests/brain/numpy/test_core_numerictypes.py::NumpyBrainUtilsTest::test_numpy_object_uninferable PASSED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_constants SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_constants_values SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_kwargs_default_values SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_one_arg SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_return_type SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_return_type_tuple SKIPPED [ 1%] tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_two_args SKIPPED [ 1%] tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_invalid-True] SKIPPED [ 1%] tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_invalid-False] SKIPPED [ 1%] tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_where-True] SKIPPED [ 1%] tests/brain/numpy/test_ma.py::TestBrainNumpyMa::test_numpy_ma_returns_maskedarray[masked_where-False] SKIPPED [ 2%] tests/brain/numpy/test_ndarray.py::NumpyBrainNdarrayTest::test_numpy_function_calls_inferred_as_ndarray SKIPPED [ 2%] tests/brain/numpy/test_ndarray.py::NumpyBrainNdarrayTest::test_numpy_ndarray_attribute_inferred_as_ndarray SKIPPED [ 2%] tests/brain/numpy/test_ndarray.py::NumpyBrainNdarrayTest::test_numpy_ndarray_class_support_type_indexing SKIPPED [ 2%] tests/brain/numpy/test_random_mtrand.py::NumpyBrainRandomMtrandTest::test_numpy_random_mtrand_functions SKIPPED [ 2%] tests/brain/numpy/test_random_mtrand.py::NumpyBrainRandomMtrandTest::test_numpy_random_mtrand_functions_signature SKIPPED [ 2%] tests/brain/test_argparse.py::TestBrainArgparse::test_infer_namespace PASSED [ 2%] tests/brain/test_attr.py::AttrsTest::test_attr_transform SKIPPED (Th...) [ 2%] tests/brain/test_attr.py::AttrsTest::test_attr_with_only_annotation_fails SKIPPED [ 2%] tests/brain/test_attr.py::AttrsTest::test_attrs_transform SKIPPED (T...) [ 2%] tests/brain/test_attr.py::AttrsTest::test_attrs_with_annotation SKIPPED [ 2%] tests/brain/test_attr.py::AttrsTest::test_attrs_with_only_annotation_works SKIPPED [ 2%] tests/brain/test_attr.py::AttrsTest::test_dont_consider_assignments_but_without_attrs SKIPPED [ 2%] tests/brain/test_attr.py::AttrsTest::test_special_attributes SKIPPED [ 2%] tests/brain/test_brain.py::CollectionsDequeTests::test_deque PASSED [ 2%] tests/brain/test_brain.py::CollectionsDequeTests::test_deque_py35methods PASSED [ 2%] tests/brain/test_brain.py::CollectionsDequeTests::test_deque_py39methods PASSED [ 2%] tests/brain/test_brain.py::OrderedDictTest::test_ordered_dict_py34method PASSED [ 3%] tests/brain/test_brain.py::DefaultDictTest::test_1 PASSED [ 3%] tests/brain/test_brain.py::ModuleExtenderTest::test_extension_modules PASSED [ 3%] tests/brain/test_brain.py::IOBrainTest::test_sys_streams SKIPPED (Ne...) [ 3%] tests/brain/test_brain.py::TypeBrain::test_builtin_subscriptable PASSED [ 3%] tests/brain/test_brain.py::TypeBrain::test_invalid_type_subscript PASSED [ 3%] tests/brain/test_brain.py::TypeBrain::test_type_subscript PASSED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_abc_is_importable PASSED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_not_subscriptable PASSED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_not_yet_subscriptable SKIPPED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_not_yet_subscriptable_2 SKIPPED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable PASSED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable_2 PASSED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable_3 FAILED [ 3%] tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable_4 PASSED [ 3%] tests/brain/test_brain.py::TypingBrain::test_callable_type PASSED [ 3%] tests/brain/test_brain.py::TypingBrain::test_collections_generic_alias_slots PASSED [ 3%] tests/brain/test_brain.py::TypingBrain::test_has_dunder_args FAILED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_base PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_bug_pylint_4383 PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_can_correctly_access_methods PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_class_form PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_few_args PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_few_fields PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_inference PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_inference_nonliteral PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_inferred_as_class PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_instance_attrs PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_nested_class PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_simple PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_namedtuple_uninferable_member PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_tuple_type PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_typed_dict PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_typing_alias_type PASSED [ 4%] tests/brain/test_brain.py::TypingBrain::test_typing_alias_type_2 PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_annotated_subscriptable PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_cast PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_cast_attribute PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_cast_multiple_inference_calls PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_generic_slots PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_generic_subscriptable PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_generic_subscriptable_pep695 PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_namedtuple_dont_crash_on_no_fields PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_no_duplicates PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_no_duplicates_2 PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_object_builtin_subscriptable PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_object_not_subscriptable PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_object_notsubscriptable_3 FAILED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_object_subscriptable PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_object_subscriptable_2 PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_param_spec PASSED [ 5%] tests/brain/test_brain.py::TypingBrain::test_typing_type_subscriptable PASSED [ 6%] tests/brain/test_brain.py::TypingBrain::test_typing_type_without_tip PASSED [ 6%] tests/brain/test_brain.py::TypingBrain::test_typing_types FAILED [ 6%] tests/brain/test_brain.py::ReBrainTest::test_re_pattern_subscriptable PASSED [ 6%] tests/brain/test_brain.py::ReBrainTest::test_re_pattern_unsubscriptable SKIPPED [ 6%] tests/brain/test_brain.py::ReBrainTest::test_regex_flags PASSED [ 6%] tests/brain/test_brain.py::BrainNamedtupleAnnAssignTest::test_no_crash_on_ann_assign_in_namedtuple PASSED [ 6%] tests/brain/test_brain.py::BrainUUIDTest::test_uuid_has_int_member PASSED [ 6%] tests/brain/test_brain.py::RandomSampleTest::test_arguments_inferred_successfully PASSED [ 6%] tests/brain/test_brain.py::RandomSampleTest::test_inferred_successfully PASSED [ 6%] tests/brain/test_brain.py::RandomSampleTest::test_no_crash_on_evaluatedobject PASSED [ 6%] tests/brain/test_brain.py::SubprocessTest::test_popen_does_not_have_class_getitem PASSED [ 6%] tests/brain/test_brain.py::SubprocessTest::test_subprcess_check_output PASSED [ 6%] tests/brain/test_brain.py::SubprocessTest::test_subprocess_args PASSED [ 6%] tests/brain/test_brain.py::TestIsinstanceInference::test_type_type PASSED [ 6%] tests/brain/test_brain.py::TestIsinstanceInference::test_object_type PASSED [ 6%] tests/brain/test_brain.py::TestIsinstanceInference::test_type_object PASSED [ 6%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_int_true PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_int_false PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_object_true PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_object_true3 PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_class_false PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_type_false PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_str_true PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_str_false PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_tuple_argument PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_type_false2 PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_object_true2 PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_type_true PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_isinstance_edge_case PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_uninferable_bad_type PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_uninferable_keywords PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_too_many_args PASSED [ 7%] tests/brain/test_brain.py::TestIsinstanceInference::test_first_param_is_uninferable PASSED [ 7%] tests/brain/test_brain.py::TestIssubclassBrain::test_type_type PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_object_type PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_type_object PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_same_class PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_not_the_same_class PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_object_true PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_same_user_defined_class PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_different_user_defined_classes PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_type_false PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_isinstance_tuple_argument PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_isinstance_object_true2 PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_issubclass_short_circuit PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_uninferable_bad_type PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_uninferable_keywords PASSED [ 8%] tests/brain/test_brain.py::TestIssubclassBrain::test_too_many_args PASSED [ 8%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_list PASSED [ 8%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_tuple PASSED [ 8%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_var PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_dict PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_set PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_object PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_class_with_metaclass PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_object_failure PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_string PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_generator_failure PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_failure_missing_variable PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_bytes PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_int_subclass_result PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_int_subclass_argument XFAIL [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_builtin_inference_attribute_error_str PASSED [ 9%] tests/brain/test_brain.py::TestLenBuiltinInference::test_len_builtin_inference_recursion_error_self_referential_attribute PASSED [ 9%] tests/brain/test_brain.py::test_infer_str PASSED [ 9%] tests/brain/test_brain.py::test_infer_int PASSED [ 9%] tests/brain/test_brain.py::test_infer_dict_from_keys PASSED [ 9%] tests/brain/test_brain.py::TestFunctoolsPartial::test_infer_partial PASSED [ 10%] tests/brain/test_brain.py::TestFunctoolsPartial::test_invalid_functools_partial_calls PASSED [ 10%] tests/brain/test_brain.py::TestFunctoolsPartial::test_inferred_partial_function_calls PASSED [ 10%] tests/brain/test_brain.py::TestFunctoolsPartial::test_partial_assignment PASSED [ 10%] tests/brain/test_brain.py::TestFunctoolsPartial::test_partial_does_not_affect_scope PASSED [ 10%] tests/brain/test_brain.py::TestFunctoolsPartial::test_multiple_partial_args PASSED [ 10%] tests/brain/test_brain.py::test_http_client_brain PASSED [ 10%] tests/brain/test_brain.py::test_http_status_brain PASSED [ 10%] tests/brain/test_brain.py::test_http_status_brain_iterable PASSED [ 10%] tests/brain/test_brain.py::test_oserror_model PASSED [ 10%] tests/brain/test_brain.py::test_crypt_brain SKIPPED (Python >= 3.13 ...) [ 10%] tests/brain/test_brain.py::test_str_and_bytes['hey'.encode()-Const-] PASSED [ 10%] tests/brain/test_brain.py::test_str_and_bytes[b'hey'.decode()-Const-] PASSED [ 10%] tests/brain/test_brain.py::test_str_and_bytes['hey'.encode().decode()-Const-] PASSED [ 10%] tests/brain/test_brain.py::test_no_recursionerror_on_self_referential_length_check PASSED [ 10%] tests/brain/test_brain.py::test_inference_on_outer_referential_length_check PASSED [ 10%] tests/brain/test_brain.py::test_no_attributeerror_on_self_referential_length_check PASSED [ 10%] tests/brain/test_builtin.py::BuiltinsTest::test_infer_property PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[empty-indexes] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[numbered-indexes] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[named-indexes] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[numbered-indexes-from-positional] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[named-indexes-from-keyword] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[mixed-indexes-from-mixed] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format[empty-indexes-on-variable] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n from missing import Unknown\n name = Unknown\n age = 12\n "My name is {fname}, I'm {age}".format(fname = name, age = age)\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n from missing import Unknown\n age = 12\n "My name is {fname}, I'm {age}".format(fname = Unknown, age = age)\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n from missing import Unknown\n "My name is {}, I'm {}".format(Unknown, 12)\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable["I am {}".format()] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n "My name is {fname}, I'm {age}".format(fsname = "Daniel", age = 12)\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n "My unicode character is {:c}".format(None)\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n "My hex format is {:4x}".format('1')\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_uninferable[\n daniel_age = 12\n "My name is {0.name}".format(daniel_age)\n ] PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_with_specs PASSED [ 11%] tests/brain/test_builtin.py::TestStringNodes::test_string_format_in_dataclass_pylint8109 PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_bool-bool-?] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_byte-int-b] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_char-bytes-c] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_double-float-d] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_buffer-bytes-] XFAIL [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_float-float-f] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_int-int-i] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_int16-int-h] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_int32-int-i] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_int64-int-l] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_int8-int-b] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_long-int-l] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_longdouble-float-g] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_longlong-int-l] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_short-int-h] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_size_t-int-L] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_ssize_t-int-l] PASSED [ 12%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_ubyte-int-B] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_uint-int-I] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_uint16-int-H] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_uint32-int-I] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_uint64-int-L] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_uint8-int-B] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_ulong-int-L] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_ulonglong-int-L] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_ushort-int-H] PASSED [ 13%] tests/brain/test_ctypes.py::test_ctypes_redefined_types_members[c_wchar-str-u] PASSED [ 13%] tests/brain/test_ctypes.py::test_cdata_member_access PASSED [ 13%] tests/brain/test_ctypes.py::test_other_ctypes_member_untouched PASSED [ 13%] tests/brain/test_dataclasses.py::test_inference_attribute_no_default[dataclasses] PASSED [ 13%] tests/brain/test_dataclasses.py::test_inference_attribute_no_default[pydantic.dataclasses] PASSED [ 13%] tests/brain/test_dataclasses.py::test_inference_attribute_no_default[marshmallow_dataclass] PASSED [ 13%] tests/brain/test_dataclasses.py::test_inference_non_field_default[dataclasses] PASSED [ 13%] tests/brain/test_dataclasses.py::test_inference_non_field_default[pydantic.dataclasses] PASSED [ 13%] tests/brain/test_dataclasses.py::test_inference_non_field_default[marshmallow_dataclass] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_field_default[dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_field_default[pydantic.dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_field_default[marshmallow_dataclass] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_field_default_factory[dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_field_default_factory[pydantic.dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_field_default_factory[marshmallow_dataclass] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_method[dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_method[pydantic.dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_method[marshmallow_dataclass] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_no_annotation[dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_no_annotation[pydantic.dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_no_annotation[marshmallow_dataclass] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_class_var[dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_class_var[pydantic.dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_class_var[marshmallow_dataclass] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_init_var[dataclasses] PASSED [ 14%] tests/brain/test_dataclasses.py::test_inference_init_var[pydantic.dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_init_var[marshmallow_dataclass] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_generic_collection_attribute[dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_generic_collection_attribute[pydantic.dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_generic_collection_attribute[marshmallow_dataclass] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_callable_attribute[dataclasses-typing] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_callable_attribute[pydantic.dataclasses-typing] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_callable_attribute[pydantic.dataclasses-collections.abc] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_callable_attribute[marshmallow_dataclass-typing] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_callable_attribute[marshmallow_dataclass-collections.abc] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_inherited[dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_inherited[pydantic.dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_inference_inherited[marshmallow_dataclass] PASSED [ 15%] tests/brain/test_dataclasses.py::test_dataclass_order_of_inherited_attributes PASSED [ 15%] tests/brain/test_dataclasses.py::test_pydantic_field PASSED [ 15%] tests/brain/test_dataclasses.py::test_init_empty[dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_init_empty[pydantic.dataclasses] PASSED [ 15%] tests/brain/test_dataclasses.py::test_init_empty[marshmallow_dataclass] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_no_defaults[dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_no_defaults[pydantic.dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_no_defaults[marshmallow_dataclass] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_defaults[dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_defaults[pydantic.dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_defaults[marshmallow_dataclass] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_initvar[dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_initvar[pydantic.dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_initvar[marshmallow_dataclass] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_decorator_init_false[dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_decorator_init_false[pydantic.dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_decorator_init_false[marshmallow_dataclass] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_field_init_false[dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_field_init_false[pydantic.dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_field_init_false[marshmallow_dataclass] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_override[dataclasses] PASSED [ 16%] tests/brain/test_dataclasses.py::test_init_override[pydantic.dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_init_override[marshmallow_dataclass] PASSED [ 17%] tests/brain/test_dataclasses.py::test_init_attributes_from_superclasses[dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_init_attributes_from_superclasses[pydantic.dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_init_attributes_from_superclasses[marshmallow_dataclass] PASSED [ 17%] tests/brain/test_dataclasses.py::test_invalid_init[dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_invalid_init[pydantic.dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_invalid_init[marshmallow_dataclass] PASSED [ 17%] tests/brain/test_dataclasses.py::test_annotated_enclosed_field_call[dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_annotated_enclosed_field_call[pydantic.dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_annotated_enclosed_field_call[marshmallow_dataclass] PASSED [ 17%] tests/brain/test_dataclasses.py::test_invalid_field_call[dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_invalid_field_call[pydantic.dataclasses] PASSED [ 17%] tests/brain/test_dataclasses.py::test_invalid_field_call[marshmallow_dataclass] PASSED [ 17%] tests/brain/test_dataclasses.py::test_non_dataclass_is_not_dataclass PASSED [ 17%] tests/brain/test_dataclasses.py::test_kw_only_sentinel PASSED [ 17%] tests/brain/test_dataclasses.py::test_kw_only_decorator PASSED [ 17%] tests/brain/test_dataclasses.py::test_kw_only_in_field_call PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_with_unknown_base PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_with_unknown_typing PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_with_default_factory PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_with_multiple_inheritance PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_non_default_argument_after_default XFAIL [ 18%] tests/brain/test_dataclasses.py::test_dataclass_with_field_init_is_false PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_inits_of_non_dataclasses PASSED [ 18%] tests/brain/test_dataclasses.py::test_dataclass_with_properties PASSED [ 18%] tests/brain/test_dateutil.py::DateutilBrainTest::test_parser SKIPPED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_class_named_enum PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_dont_crash_on_for_loops_in_body PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_enum_as_renamed_import PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_enum_func_form_has_dunder_members PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_enum_func_form_is_class_not_instance PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_enum_func_form_iterable PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_enum_func_form_subscriptable PASSED [ 18%] tests/brain/test_enum.py::EnumBrainTest::test_enum_members_uppercase_only PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_multiple_base_classes PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_name_and_value_members_override_dynamicclassattr PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_name_is_str_on_self PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_starred_is_skipped PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_subclass_different_modules PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_subclass_member_method PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_subclass_member_name PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_subclass_member_value PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_sunder_names PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_tuple_list_values PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_enum_with_ignore PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_ignores_with_nodes_from_body_of_enum PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_infer_enum_value_as_the_right_type PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_int_enum PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_local_enum_child_class_inference PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_looks_like_enum_false_positive PASSED [ 19%] tests/brain/test_enum.py::EnumBrainTest::test_members_member_ignored PASSED [ 20%] tests/brain/test_enum.py::EnumBrainTest::test_mingled_single_and_double_quotes_does_not_crash PASSED [ 20%] tests/brain/test_enum.py::EnumBrainTest::test_simple_enum PASSED [ 20%] tests/brain/test_enum.py::EnumBrainTest::test_special_characters_does_not_crash PASSED [ 20%] tests/brain/test_enum.py::EnumBrainTest::test_user_enum_false_positive PASSED [ 20%] tests/brain/test_hashlib.py::HashlibTest::test_blake2 PASSED [ 20%] tests/brain/test_hashlib.py::HashlibTest::test_hashlib PASSED [ 20%] tests/brain/test_hashlib.py::HashlibTest::test_shake PASSED [ 20%] tests/brain/test_multiprocessing.py::MultiprocessingBrainTest::test_module_name PASSED [ 20%] tests/brain/test_multiprocessing.py::MultiprocessingBrainTest::test_multiprocessing_manager PASSED [ 20%] tests/brain/test_multiprocessing.py::MultiprocessingBrainTest::test_multiprocessing_module_attributes PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_invalid_label_does_not_crash_inference PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_invalid_typename_does_not_crash_inference PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_keyword_typename_does_not_crash_inference PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_name_as_typename PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_access_class_fields PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_advanced_inference PASSED [ 20%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_base PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_bases_are_actually_names_not_nodes PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_func_form PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_func_form_args_and_kwargs PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_inference PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_inference_failure PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_instance_attrs PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_rename_duplicates PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_rename_keywords PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_rename_uninferable PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_namedtuple_uninferable_fields PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_no_rename_duplicates_does_not_crash_inference PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_no_rename_keywords_does_not_crash_inference PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_no_rename_nonident_does_not_crash_inference PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_no_rename_underscore_does_not_crash_inference PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_pathological_str_does_not_crash_inference PASSED [ 21%] tests/brain/test_named_tuple.py::NamedTupleTest::test_typeerror_does_not_crash_inference PASSED [ 21%] tests/brain/test_nose.py::NoseBrainTest::test_nose_tools SKIPPED (Th...) [ 22%] tests/brain/test_pathlib.py::test_inference_parents FAILED [ 22%] tests/brain/test_pathlib.py::test_inference_parents_subscript_index FAILED [ 22%] tests/brain/test_pathlib.py::test_inference_parents_subscript_slice PASSED [ 22%] tests/brain/test_pathlib.py::test_inference_parents_subscript_not_path PASSED [ 22%] tests/brain/test_pytest.py::test_pytest PASSED [ 22%] tests/brain/test_qt.py::TestBrainQt::test_value_of_lambda_instance_attrs_is_list SKIPPED [ 22%] tests/brain/test_qt.py::TestBrainQt::test_implicit_parameters SKIPPED [ 22%] tests/brain/test_qt.py::TestBrainQt::test_slot_disconnect_no_args SKIPPED [ 22%] tests/brain/test_regex.py::TestRegexBrain::test_regex_flags SKIPPED [ 22%] tests/brain/test_regex.py::TestRegexBrain::test_regex_pattern_and_match_subscriptable SKIPPED [ 22%] tests/brain/test_signal.py::test_enum[Signals] PASSED [ 22%] tests/brain/test_signal.py::test_enum[Handlers] PASSED [ 22%] tests/brain/test_signal.py::test_enum[Sigmasks] PASSED [ 22%] tests/brain/test_six.py::SixBrainTest::test_attribute_access SKIPPED [ 22%] tests/brain/test_six.py::SixBrainTest::test_attribute_access_with_six_moves_imported SKIPPED [ 22%] tests/brain/test_six.py::SixBrainTest::test_from_imports SKIPPED (Th...) [ 22%] tests/brain/test_six.py::SixBrainTest::test_from_submodule_imports SKIPPED [ 23%] tests/brain/test_six.py::SixBrainTest::test_six_with_metaclass_enum_ancestor SKIPPED [ 23%] tests/brain/test_six.py::SixBrainTest::test_six_with_metaclass_with_additional_transform SKIPPED [ 23%] tests/brain/test_six.py::SixBrainTest::test_with_metaclass_subclasses_inheritance SKIPPED [ 23%] tests/brain/test_ssl.py::test_ssl_brain PASSED [ 23%] tests/brain/test_ssl.py::test_ssl_brain_py312 PASSED [ 23%] tests/brain/test_threading.py::ThreadingBrainTest::test_boundedsemaphore PASSED [ 23%] tests/brain/test_threading.py::ThreadingBrainTest::test_lock PASSED [ 23%] tests/brain/test_threading.py::ThreadingBrainTest::test_rlock PASSED [ 23%] tests/brain/test_threading.py::ThreadingBrainTest::test_semaphore PASSED [ 23%] tests/brain/test_typing.py::test_infer_typevar PASSED [ 23%] tests/brain/test_typing.py::TestTypingAlias::test_infer_typing_alias PASSED [ 23%] tests/brain/test_typing.py::TestTypingAlias::test_infer_typing_alias_incorrect_number_of_arguments[] PASSED [ 23%] tests/brain/test_typing.py::TestTypingAlias::test_infer_typing_alias_incorrect_number_of_arguments[int] PASSED [ 23%] tests/brain/test_typing.py::TestTypingAlias::test_infer_typing_alias_incorrect_number_of_arguments[int, float, tuple] PASSED [ 23%] tests/brain/test_typing_extensions.py::TestTypingExtensions::test_typing_extensions_types SKIPPED [ 23%] tests/brain/test_unittest.py::UnittestTest::test_isolatedasynciotestcase PASSED [ 23%] tests/test_builder.py::FromToLineNoTest::test_callfunc_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_class_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_class_with_docstring PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_decorated_class_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_decorated_function_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_for_while_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_function_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_function_with_docstring PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_if_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_try_except_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_try_finally_25_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_try_finally_lineno PASSED [ 24%] tests/test_builder.py::FromToLineNoTest::test_with_lineno PASSED [ 24%] tests/test_builder.py::BuilderTest::test_asstuple PASSED [ 24%] tests/test_builder.py::BuilderTest::test_augassign_attr PASSED [ 24%] tests/test_builder.py::BuilderTest::test_build_constants PASSED [ 24%] tests/test_builder.py::BuilderTest::test_data_build_error_filename PASSED [ 24%] tests/test_builder.py::BuilderTest::test_data_build_invalid_x_escape PASSED [ 25%] tests/test_builder.py::BuilderTest::test_data_build_null_bytes PASSED [ 25%] tests/test_builder.py::BuilderTest::test_future_imports PASSED [ 25%] tests/test_builder.py::BuilderTest::test_gen_expr_var_scope PASSED [ 25%] tests/test_builder.py::BuilderTest::test_globals PASSED [ 25%] tests/test_builder.py::BuilderTest::test_infer_can_assign_has_slots PASSED [ 25%] tests/test_builder.py::BuilderTest::test_infer_can_assign_no_classdict PASSED [ 25%] tests/test_builder.py::BuilderTest::test_infer_can_assign_regular_object PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inferred_build PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inferred_dont_pollute PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inspect_build0 PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inspect_build1 PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inspect_build3 PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inspect_build_type_object PASSED [ 25%] tests/test_builder.py::BuilderTest::test_inspect_transform_module PASSED [ 25%] tests/test_builder.py::BuilderTest::test_missing_file PASSED [ 25%] tests/test_builder.py::BuilderTest::test_missing_newline PASSED [ 25%] tests/test_builder.py::BuilderTest::test_newstyle_detection PASSED [ 25%] tests/test_builder.py::BuilderTest::test_no_future_imports PASSED [ 26%] tests/test_builder.py::BuilderTest::test_not_implemented PASSED [ 26%] tests/test_builder.py::BuilderTest::test_object PASSED [ 26%] tests/test_builder.py::BuilderTest::test_package_name PASSED [ 26%] tests/test_builder.py::BuilderTest::test_socket_build PASSED [ 26%] tests/test_builder.py::BuilderTest::test_two_future_imports PASSED [ 26%] tests/test_builder.py::BuilderTest::test_type_comments_without_content PASSED [ 26%] tests/test_builder.py::BuilderTest::test_yield_parent PASSED [ 26%] tests/test_builder.py::FileBuildTest::test_class_base_props FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_class_basenames FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_class_instance_attrs FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_class_locals FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_function_base_props FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_function_locals FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_method_base_props FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_method_locals FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_module_base_props FAILED [ 26%] tests/test_builder.py::FileBuildTest::test_module_locals FAILED [ 27%] tests/test_builder.py::FileBuildTest::test_unknown_encoding FAILED [ 27%] tests/test_builder.py::test_module_build_dunder_file PASSED [ 27%] tests/test_builder.py::test_parse_module_with_invalid_type_comments_does_not_crash PASSED [ 27%] tests/test_builder.py::test_arguments_of_signature PASSED [ 27%] tests/test_builder.py::HermeticInterpreterTest::test_build_from_live_module_without_source_file PASSED [ 27%] tests/test_constraint.py::test_if_single_statement[x is None-None-3] PASSED [ 27%] tests/test_constraint.py::test_if_single_statement[x is not None-3-None] PASSED [ 27%] tests/test_constraint.py::test_if_multiple_statements[x is None-None-3] PASSED [ 27%] tests/test_constraint.py::test_if_multiple_statements[x is not None-3-None] PASSED [ 27%] tests/test_constraint.py::test_if_irrelevant_condition[x is None-None-3] PASSED [ 27%] tests/test_constraint.py::test_if_irrelevant_condition[x is not None-3-None] PASSED [ 27%] tests/test_constraint.py::test_outside_if[x is None-None-3] PASSED [ 27%] tests/test_constraint.py::test_outside_if[x is not None-3-None] PASSED [ 27%] tests/test_constraint.py::test_nested_if[x is None-None-3] PASSED [ 27%] tests/test_constraint.py::test_nested_if[x is not None-3-None] PASSED [ 27%] tests/test_constraint.py::test_if_uninferable PASSED [ 27%] tests/test_constraint.py::test_if_reassignment_in_body[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_reassignment_in_body[x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_elif_else_negates[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_elif_else_negates[x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_reassignment_in_else[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_reassignment_in_else[x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_comprehension_shadow[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_comprehension_shadow[x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_function_shadow[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_function_shadow[x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_function_call[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_function_call[x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_instance_attr[self.x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_instance_attr[self.x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_instance_attr_reassignment_in_body[self.x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_instance_attr_reassignment_in_body[self.x is not None-3-None] PASSED [ 28%] tests/test_constraint.py::test_if_instance_attr_varname_collision1[x is None-None-3] PASSED [ 28%] tests/test_constraint.py::test_if_instance_attr_varname_collision1[x is not None-3-None] PASSED [ 29%] tests/test_constraint.py::test_if_instance_attr_varname_collision2[self.x is None-None-3] PASSED [ 29%] tests/test_constraint.py::test_if_instance_attr_varname_collision2[self.x is not None-3-None] PASSED [ 29%] tests/test_constraint.py::test_if_instance_attr_varname_collision3[self.x is None-None-3] PASSED [ 29%] tests/test_constraint.py::test_if_instance_attr_varname_collision3[self.x is not None-3-None] PASSED [ 29%] tests/test_constraint.py::test_if_instance_attr_varname_collision4[self.x is None-None-3] PASSED [ 29%] tests/test_constraint.py::test_if_instance_attr_varname_collision4[self.x is not None-3-None] PASSED [ 29%] tests/test_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_one_arg PASSED [ 29%] tests/test_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_two_args PASSED [ 29%] tests/test_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_ok PASSED [ 29%] tests/test_filter_statements.py::test_empty_node PASSED [ 29%] tests/test_group_exceptions.py::test_group_exceptions PASSED [ 29%] tests/test_group_exceptions.py::test_star_exceptions PASSED [ 29%] tests/test_group_exceptions.py::test_star_exceptions_infer_name PASSED [ 29%] tests/test_helpers.py::TestHelpers::test_inference_errors PASSED [ 29%] tests/test_helpers.py::TestHelpers::test_inference_errors_2 PASSED [ 29%] tests/test_helpers.py::TestHelpers::test_is_subtype PASSED [ 29%] tests/test_helpers.py::TestHelpers::test_is_subtype_supertype_classes_metaclasses PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_is_subtype_supertype_classes_no_type_ancestor PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_is_subtype_supertype_mro_error PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_is_subtype_supertype_unknown_bases PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_is_subtype_supertype_unrelated_classes PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_object_type PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_object_type_classes_and_functions PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_object_type_metaclasses PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_object_type_most_derived PASSED [ 30%] tests/test_helpers.py::TestHelpers::test_object_type_too_many_types PASSED [ 30%] tests/test_helpers.py::test_uninferable_for_safe_infer PASSED [ 30%] tests/test_helpers.py::test_safe_infer_shim PASSED [ 30%] tests/test_inference.py::InferenceUtilsTest::test_path_wrapper PASSED [ 30%] tests/test_inference.py::InferenceTest::test__new__ PASSED [ 30%] tests/test_inference.py::InferenceTest::test__new__bound_methods PASSED [ 30%] tests/test_inference.py::InferenceTest::test_advanced_tupleassign_name_inference1 PASSED [ 30%] tests/test_inference.py::InferenceTest::test_advanced_tupleassign_name_inference2 PASSED [ 30%] tests/test_inference.py::InferenceTest::test_ancestors_inference PASSED [ 31%] tests/test_inference.py::InferenceTest::test_ancestors_inference2 PASSED [ 31%] tests/test_inference.py::InferenceTest::test_arg_keyword_no_default_value PASSED [ 31%] tests/test_inference.py::InferenceTest::test_args_default_inference1 PASSED [ 31%] tests/test_inference.py::InferenceTest::test_args_default_inference2 PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_different_types_aug_not_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_different_types_aug_not_implemented_rop_fallback PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_different_types_augop_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_different_types_no_method_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_op_same_type_aug_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_op_same_type_aug_not_implemented_normal_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_op_same_type_not_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_op_subtype_aug_op_is_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_op_subtype_both_not_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_aug_op_subtype_normal_op_is_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_augassign PASSED [ 31%] tests/test_inference.py::InferenceTest::test_augop_supertypes_augop_implemented PASSED [ 31%] tests/test_inference.py::InferenceTest::test_augop_supertypes_none_implemented PASSED [ 32%] tests/test_inference.py::InferenceTest::test_augop_supertypes_normal_binop_implemented PASSED [ 32%] tests/test_inference.py::InferenceTest::test_augop_supertypes_not_implemented_returned_for_all PASSED [ 32%] tests/test_inference.py::InferenceTest::test_augop_supertypes_reflected_binop_implemented PASSED [ 32%] tests/test_inference.py::InferenceTest::test_augop_type_errors_partially_uninferable PASSED [ 32%] tests/test_inference.py::InferenceTest::test_bin_op_classes PASSED [ 32%] tests/test_inference.py::InferenceTest::test_bin_op_classes_with_metaclass SKIPPED [ 32%] tests/test_inference.py::InferenceTest::test_bin_op_supertype_more_complicated_example PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_custom_class PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_float_div PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_add PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_bitand PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_bitor PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_bitxor PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_shiftleft PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_shiftright PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_int_sub PASSED [ 32%] tests/test_inference.py::InferenceTest::test_binary_op_list_mul PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_list_mul_int PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_list_mul_none PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_not_used_in_boolean_context PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_on_self PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_or_union_type FAILED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_other_type PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_other_type_using_reflected_operands PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_reflected_and_not_implemented_is_type_error PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_str_mul PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_tuple_add PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_op_type_errors PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binary_type_errors_partially_uninferable PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binop_ambiguity PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binop_different_types_no_method_implemented PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binop_different_types_normal_not_implemented_and_reflected PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binop_different_types_reflected_and_normal_not_implemented PASSED [ 33%] tests/test_inference.py::InferenceTest::test_binop_different_types_reflected_only PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_different_types_unknown_bases PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_inference_errors PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_list_with_elts PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_same_types PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_self_in_list PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_subtype PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_subtype_implemented_in_parent PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_subtype_not_implemented PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_supertype PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_supertype_both_not_implemented PASSED [ 34%] tests/test_inference.py::InferenceTest::test_binop_supertype_rop_not_implemented PASSED [ 34%] tests/test_inference.py::InferenceTest::test_bool_value PASSED [ 34%] tests/test_inference.py::InferenceTest::test_bool_value_instances PASSED [ 34%] tests/test_inference.py::InferenceTest::test_bool_value_recursive PASSED [ 34%] tests/test_inference.py::InferenceTest::test_bool_value_variable PASSED [ 34%] tests/test_inference.py::InferenceTest::test_bound_method_inference PASSED [ 34%] tests/test_inference.py::InferenceTest::test_bt_ancestor_crash PASSED [ 35%] tests/test_inference.py::InferenceTest::test_builtin_help PASSED [ 35%] tests/test_inference.py::InferenceTest::test_builtin_inference_py3k PASSED [ 35%] tests/test_inference.py::InferenceTest::test_builtin_name_inference PASSED [ 35%] tests/test_inference.py::InferenceTest::test_builtin_new PASSED [ 35%] tests/test_inference.py::InferenceTest::test_builtin_open PASSED [ 35%] tests/test_inference.py::InferenceTest::test_builtin_types PASSED [ 35%] tests/test_inference.py::InferenceTest::test_bytes_subscript PASSED [ 35%] tests/test_inference.py::InferenceTest::test_callfunc_context_func PASSED [ 35%] tests/test_inference.py::InferenceTest::test_callfunc_context_lambda PASSED [ 35%] tests/test_inference.py::InferenceTest::test_callfunc_inference PASSED [ 35%] tests/test_inference.py::InferenceTest::test_class_inference PASSED [ 35%] tests/test_inference.py::InferenceTest::test_classmethod_inferred_by_context PASSED [ 35%] tests/test_inference.py::InferenceTest::test_context_call_for_context_managers PASSED [ 35%] tests/test_inference.py::InferenceTest::test_conversion_of_dict_methods PASSED [ 35%] tests/test_inference.py::InferenceTest::test_copy_method_inference PASSED [ 35%] tests/test_inference.py::InferenceTest::test_del1 PASSED [ 35%] tests/test_inference.py::InferenceTest::test_del2 PASSED [ 36%] tests/test_inference.py::InferenceTest::test_delayed_attributes_without_slots PASSED [ 36%] tests/test_inference.py::InferenceTest::test_descriptor_are_callable XFAIL [ 36%] tests/test_inference.py::InferenceTest::test_dict_inference PASSED [ 36%] tests/test_inference.py::InferenceTest::test_dict_inference_for_multiple_starred PASSED [ 36%] tests/test_inference.py::InferenceTest::test_dict_inference_kwargs PASSED [ 36%] tests/test_inference.py::InferenceTest::test_dict_inference_unpack_repeated_key PASSED [ 36%] tests/test_inference.py::InferenceTest::test_dict_invalid_args PASSED [ 36%] tests/test_inference.py::InferenceTest::test_do_import_module_performance PASSED [ 36%] tests/test_inference.py::InferenceTest::test_exc_ancestors PASSED [ 36%] tests/test_inference.py::InferenceTest::test_except_inference PASSED [ 36%] tests/test_inference.py::InferenceTest::test_f_arg_f PASSED [ 36%] tests/test_inference.py::InferenceTest::test_factory_method PASSED [ 36%] tests/test_inference.py::InferenceTest::test_factory_methods_cls_call PASSED [ 36%] tests/test_inference.py::InferenceTest::test_factory_methods_inside_binary_operation XFAIL [ 36%] tests/test_inference.py::InferenceTest::test_factory_methods_object_new_call PASSED [ 36%] tests/test_inference.py::InferenceTest::test_float_complex_ambiguity PASSED [ 36%] tests/test_inference.py::InferenceTest::test_for_dict PASSED [ 37%] tests/test_inference.py::InferenceTest::test_frozenset_builtin_inference PASSED [ 37%] tests/test_inference.py::InferenceTest::test_fstring_inference PASSED [ 37%] tests/test_inference.py::InferenceTest::test_function_inference PASSED [ 37%] tests/test_inference.py::InferenceTest::test_function_metaclasses XFAIL [ 37%] tests/test_inference.py::InferenceTest::test_genexpr_bool_value PASSED [ 37%] tests/test_inference.py::InferenceTest::test_getattr_inference1 PASSED [ 37%] tests/test_inference.py::InferenceTest::test_getattr_inference2 PASSED [ 37%] tests/test_inference.py::InferenceTest::test_getattr_inference3 PASSED [ 37%] tests/test_inference.py::InferenceTest::test_getattr_inference4 PASSED [ 37%] tests/test_inference.py::InferenceTest::test_getitem_of_class_raised_type_error PASSED [ 37%] tests/test_inference.py::InferenceTest::test_im_func_unwrap PASSED [ 37%] tests/test_inference.py::InferenceTest::test_import_as PASSED [ 37%] tests/test_inference.py::InferenceTest::test_infer_abstract_property_return_values PASSED [ 37%] tests/test_inference.py::InferenceTest::test_infer_arg_called_object_when_used_as_index_is_uninferable PASSED [ 37%] tests/test_inference.py::InferenceTest::test_infer_arg_called_type_defined_in_outer_scope_is_uninferable PASSED [ 37%] tests/test_inference.py::InferenceTest::test_infer_arg_called_type_is_uninferable PASSED [ 37%] tests/test_inference.py::InferenceTest::test_infer_arg_called_type_when_used_as_index_is_uninferable PASSED [ 37%] tests/test_inference.py::InferenceTest::test_infer_arg_called_type_when_used_as_subscript_is_uninferable PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_arguments PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_call_result_crash PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_call_result_invalid_dunder_call_on_instance PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_call_result_same_proxied_class PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_call_result_with_metaclass PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_cls_in_class_methods PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_coercion_rules_for_floats_complex PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_empty_nodes PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_function_under_if PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_method_empty_body PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_method_overload PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_nested PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_property_setter PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_subclass_attr_inner_class PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_subclass_attr_inner_class_works_indirectly PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_subclass_attr_instance_attr PASSED [ 38%] tests/test_inference.py::InferenceTest::test_infer_subclass_attr_instance_attr_indirect PASSED [ 39%] tests/test_inference.py::InferenceTest::test_infer_subclass_attr_outer_class PASSED [ 39%] tests/test_inference.py::InferenceTest::test_infer_variable_arguments PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inference_restrictions PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inferring_context_manager_skip_index_error PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inferring_context_manager_unpacking_inference_error PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inferring_with_contextlib_contextmanager PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inferring_with_contextlib_contextmanager_failures PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inferring_with_statement PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inferring_with_statement_failures PASSED [ 39%] tests/test_inference.py::InferenceTest::test_infinite_loop_for_decorators PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inner_value_redefined_by_subclass PASSED [ 39%] tests/test_inference.py::InferenceTest::test_inner_value_redefined_by_subclass_with_mro PASSED [ 39%] tests/test_inference.py::InferenceTest::test_instance_binary_operations PASSED [ 39%] tests/test_inference.py::InferenceTest::test_instance_binary_operations_multiple_methods PASSED [ 39%] tests/test_inference.py::InferenceTest::test_instance_binary_operations_parent PASSED [ 39%] tests/test_inference.py::InferenceTest::test_instance_slicing PASSED [ 39%] tests/test_inference.py::InferenceTest::test_instance_slicing_fails PASSED [ 40%] tests/test_inference.py::InferenceTest::test_instance_slicing_slices PASSED [ 40%] tests/test_inference.py::InferenceTest::test_invalid_slicing_primaries PASSED [ 40%] tests/test_inference.py::InferenceTest::test_invalid_subscripts PASSED [ 40%] tests/test_inference.py::InferenceTest::test_lambda_as_methods PASSED [ 40%] tests/test_inference.py::InferenceTest::test_list_builtin_inference PASSED [ 40%] tests/test_inference.py::InferenceTest::test_list_inference PASSED [ 40%] tests/test_inference.py::InferenceTest::test_listassign_name_inference PASSED [ 40%] tests/test_inference.py::InferenceTest::test_lookup_cond_branches PASSED [ 40%] tests/test_inference.py::InferenceTest::test_matmul PASSED [ 40%] tests/test_inference.py::InferenceTest::test_metaclass__getitem__ PASSED [ 40%] tests/test_inference.py::InferenceTest::test_metaclass_arguments_are_classes_not_instances XFAIL [ 40%] tests/test_inference.py::InferenceTest::test_metaclass_custom_dunder_call PASSED [ 40%] tests/test_inference.py::InferenceTest::test_metaclass_custom_dunder_call_boundnode PASSED [ 40%] tests/test_inference.py::InferenceTest::test_metaclass_subclasses_arguments_are_classes_not_instances PASSED [ 40%] tests/test_inference.py::InferenceTest::test_metaclass_with_keyword_args PASSED [ 40%] tests/test_inference.py::InferenceTest::test_method_argument PASSED [ 40%] tests/test_inference.py::InferenceTest::test_module_inference PASSED [ 41%] tests/test_inference.py::InferenceTest::test_mul_list_supports__index__ PASSED [ 41%] tests/test_inference.py::InferenceTest::test_mulassign_inference PASSED [ 41%] tests/test_inference.py::InferenceTest::test_name_bool_value PASSED [ 41%] tests/test_inference.py::InferenceTest::test_name_repeat_inference PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nested_contextmanager PASSED [ 41%] tests/test_inference.py::InferenceTest::test_no_infinite_ancestor_loop PASSED [ 41%] tests/test_inference.py::InferenceTest::test_no_runtime_error_in_repeat_inference PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_absolute_import PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_func_arg PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_func_global PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_getitem_empty_tuple PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_inference_modifying_col_offset PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_instance_attrs PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_lambda_arg PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_layed_dictunpack PASSED [ 41%] tests/test_inference.py::InferenceTest::test_nonregr_multi_referential_addition PASSED [ 41%] tests/test_inference.py::InferenceTest::test_pluggable_inference PASSED [ 42%] tests/test_inference.py::InferenceTest::test_property PASSED [ 42%] tests/test_inference.py::InferenceTest::test_python25_no_relative_import PASSED [ 42%] tests/test_inference.py::InferenceTest::test_scope_lookup_same_attributes PASSED [ 42%] tests/test_inference.py::InferenceTest::test_set_builtin_inference PASSED [ 42%] tests/test_inference.py::InferenceTest::test_simple_for PASSED [ 42%] tests/test_inference.py::InferenceTest::test_simple_for_genexpr PASSED [ 42%] tests/test_inference.py::InferenceTest::test_simple_subscript PASSED [ 42%] tests/test_inference.py::InferenceTest::test_simple_tuple PASSED [ 42%] tests/test_inference.py::InferenceTest::test_slicing_list PASSED [ 42%] tests/test_inference.py::InferenceTest::test_slicing_str PASSED [ 42%] tests/test_inference.py::InferenceTest::test_slicing_tuple PASSED [ 42%] tests/test_inference.py::InferenceTest::test_special_method_masquerading_as_another PASSED [ 42%] tests/test_inference.py::InferenceTest::test_starred_in_list_literal PASSED [ 42%] tests/test_inference.py::InferenceTest::test_starred_in_literals_inference_issues PASSED [ 42%] tests/test_inference.py::InferenceTest::test_starred_in_mapping_inference_issues PASSED [ 42%] tests/test_inference.py::InferenceTest::test_starred_in_mapping_literal PASSED [ 42%] tests/test_inference.py::InferenceTest::test_starred_in_mapping_literal_no_inference_possible PASSED [ 43%] tests/test_inference.py::InferenceTest::test_starred_in_mapping_literal_non_const_keys_values PASSED [ 43%] tests/test_inference.py::InferenceTest::test_starred_in_set_literal PASSED [ 43%] tests/test_inference.py::InferenceTest::test_starred_in_tuple_literal PASSED [ 43%] tests/test_inference.py::InferenceTest::test_stop_iteration_leak PASSED [ 43%] tests/test_inference.py::InferenceTest::test_str_methods PASSED [ 43%] tests/test_inference.py::InferenceTest::test_string_interpolation PASSED [ 43%] tests/test_inference.py::InferenceTest::test_subscript_inference_error PASSED [ 43%] tests/test_inference.py::InferenceTest::test_subscript_multi_slice PASSED [ 43%] tests/test_inference.py::InferenceTest::test_subscript_multi_value PASSED [ 43%] tests/test_inference.py::InferenceTest::test_subscript_supports__index__ PASSED [ 43%] tests/test_inference.py::InferenceTest::test_swap_assign_inference PASSED [ 43%] tests/test_inference.py::InferenceTest::test_tuple_builtin_inference PASSED [ 43%] tests/test_inference.py::InferenceTest::test_tuple_then_list PASSED [ 43%] tests/test_inference.py::InferenceTest::test_tupleassign_name_inference PASSED [ 43%] tests/test_inference.py::InferenceTest::test_two_parents_from_same_module PASSED [ 43%] tests/test_inference.py::InferenceTest::test_type__new__invalid_attrs PASSED [ 43%] tests/test_inference.py::InferenceTest::test_type__new__invalid_bases PASSED [ 44%] tests/test_inference.py::InferenceTest::test_type__new__invalid_mcs_argument PASSED [ 44%] tests/test_inference.py::InferenceTest::test_type__new__invalid_name PASSED [ 44%] tests/test_inference.py::InferenceTest::test_type__new__metaclass_and_ancestors_lookup PASSED [ 44%] tests/test_inference.py::InferenceTest::test_type__new__metaclass_lookup PASSED [ 44%] tests/test_inference.py::InferenceTest::test_type__new__not_enough_arguments PASSED [ 44%] tests/test_inference.py::InferenceTest::test_type__new__with_metaclass PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_empty_type_errors PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_not PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_op_assignment PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_op_classes PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_op_classes_with_metaclass SKIPPED [ 44%] tests/test_inference.py::InferenceTest::test_unary_op_instance_method_not_callable PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_op_leaks_stop_iteration PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_op_numbers PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_operands PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_type_errors PASSED [ 44%] tests/test_inference.py::InferenceTest::test_unary_type_errors_for_non_instance_objects PASSED [ 45%] tests/test_inference.py::InferenceTest::test_unary_type_errors_partially_uninferable PASSED [ 45%] tests/test_inference.py::InferenceTest::test_unbound_method_inference PASSED [ 45%] tests/test_inference.py::InferenceTest::test_unicode_methods PASSED [ 45%] tests/test_inference.py::InferenceTest::test_uninferable_type_subscript PASSED [ 45%] tests/test_inference.py::InferenceTest::test_with_metaclass__getitem__ SKIPPED [ 45%] tests/test_inference.py::InferenceTest::test_with_metaclass_subclasses_arguments_are_classes_not_instances SKIPPED [ 45%] tests/test_inference.py::InferenceTest::test_with_metaclass_with_partial_imported_name SKIPPED [ 45%] tests/test_inference.py::GetattrTest::test_attribute_missing PASSED [ 45%] tests/test_inference.py::GetattrTest::test_attrname_not_string PASSED [ 45%] tests/test_inference.py::GetattrTest::test_default PASSED [ 45%] tests/test_inference.py::GetattrTest::test_lambda PASSED [ 45%] tests/test_inference.py::GetattrTest::test_lookup PASSED [ 45%] tests/test_inference.py::GetattrTest::test_yes_when_unknown PASSED [ 45%] tests/test_inference.py::HasattrTest::test_attribute_is_missing PASSED [ 45%] tests/test_inference.py::HasattrTest::test_attribute_is_not_missing PASSED [ 45%] tests/test_inference.py::HasattrTest::test_inference_errors PASSED [ 45%] tests/test_inference.py::HasattrTest::test_lambda PASSED [ 46%] tests/test_inference.py::BoolOpTest::test_bool_ops PASSED [ 46%] tests/test_inference.py::BoolOpTest::test_other_nodes PASSED [ 46%] tests/test_inference.py::BoolOpTest::test_yes_when_unknown PASSED [ 46%] tests/test_inference.py::TestCallable::test_callable PASSED [ 46%] tests/test_inference.py::TestCallable::test_callable_methods PASSED [ 46%] tests/test_inference.py::TestCallable::test_inference_errors PASSED [ 46%] tests/test_inference.py::TestCallable::test_not_callable PASSED [ 46%] tests/test_inference.py::TestBool::test_bool PASSED [ 46%] tests/test_inference.py::TestBool::test_bool_bool_special_method PASSED [ 46%] tests/test_inference.py::TestBool::test_bool_instance_not_callable PASSED [ 46%] tests/test_inference.py::TestBool::test_class_subscript PASSED [ 46%] tests/test_inference.py::TestBool::test_class_subscript_inference_context PASSED [ 46%] tests/test_inference.py::TestType::test_type PASSED [ 46%] tests/test_inference.py::ArgumentsTest::test_args PASSED [ 46%] tests/test_inference.py::ArgumentsTest::test_args_overwritten PASSED [ 46%] tests/test_inference.py::ArgumentsTest::test_defaults PASSED [ 46%] tests/test_inference.py::ArgumentsTest::test_fail_to_infer_args PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_kwargs PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_kwargs_access_by_name PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_kwargs_and_other_named_parameters PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_kwargs_are_overridden PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_kwonly_args PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_multiple_kwargs PASSED [ 47%] tests/test_inference.py::ArgumentsTest::test_multiple_starred_args PASSED [ 47%] tests/test_inference.py::SliceTest::test_slice PASSED [ 47%] tests/test_inference.py::SliceTest::test_slice_attributes PASSED [ 47%] tests/test_inference.py::SliceTest::test_slice_inference_error PASSED [ 47%] tests/test_inference.py::SliceTest::test_slice_type PASSED [ 47%] tests/test_inference.py::CallSiteTest::test_call_site PASSED [ 47%] tests/test_inference.py::CallSiteTest::test_call_site_starred_args PASSED [ 47%] tests/test_inference.py::CallSiteTest::test_call_site_uninferable PASSED [ 47%] tests/test_inference.py::CallSiteTest::test_call_site_valid_arguments PASSED [ 47%] tests/test_inference.py::CallSiteTest::test_duplicated_keyword_arguments PASSED [ 47%] tests/test_inference.py::ObjectDunderNewTest::test_object_dunder_new_is_inferred_if_decorator PASSED [ 48%] tests/test_inference.py::test_formatted_fstring_inference[width = 10\nprecision = 4\nvalue = 12.34567\nresult = f"result: {value:{width}.{precision}}!"\n-result: 12.35!] PASSED [ 48%] tests/test_inference.py::test_formatted_fstring_inference[width = None\nprecision = 4\nvalue = 12.34567\nresult = f"result: {value:{width}.{precision}}!"\n-None] PASSED [ 48%] tests/test_inference.py::test_formatted_fstring_inference[width = 10\nprecision = 4\nvalue = None\nresult = f"result: {value:{width}.{precision}}!"\n-None] PASSED [ 48%] tests/test_inference.py::test_augassign_recursion PASSED [ 48%] tests/test_inference.py::test_infer_custom_inherit_from_property PASSED [ 48%] tests/test_inference.py::test_cannot_infer_call_result_for_builtin_methods PASSED [ 48%] tests/test_inference.py::test_unpack_dicts_in_assignment PASSED [ 48%] tests/test_inference.py::test_slice_inference_in_for_loops PASSED [ 48%] tests/test_inference.py::test_slice_inference_in_for_loops_not_working PASSED [ 48%] tests/test_inference.py::test_slice_zero_step_does_not_raise_ValueError PASSED [ 48%] tests/test_inference.py::test_slice_zero_step_on_str_does_not_raise_ValueError PASSED [ 48%] tests/test_inference.py::test_unpacking_starred_and_dicts_in_assignment PASSED [ 48%] tests/test_inference.py::test_unpacking_starred_empty_list_in_assignment PASSED [ 48%] tests/test_inference.py::test_regression_infinite_loop_decorator PASSED [ 48%] tests/test_inference.py::test_stop_iteration_in_int PASSED [ 48%] tests/test_inference.py::test_call_on_instance_with_inherited_dunder_call_method PASSED [ 48%] tests/test_inference.py::TestInferencePropagation::test_call_context_propagation XFAIL [ 49%] tests/test_inference.py::TestInferencePropagation::test_call_starargs_propagation PASSED [ 49%] tests/test_inference.py::TestInferencePropagation::test_call_kwargs_propagation PASSED [ 49%] tests/test_inference.py::test_compare[<-False] PASSED [ 49%] tests/test_inference.py::test_compare[<=-True] PASSED [ 49%] tests/test_inference.py::test_compare[==-True] PASSED [ 49%] tests/test_inference.py::test_compare[>=-True] PASSED [ 49%] tests/test_inference.py::test_compare[>-False] PASSED [ 49%] tests/test_inference.py::test_compare[!=-False] PASSED [ 49%] tests/test_inference.py::test_compare_identity[is-True] XFAIL (uninf...) [ 49%] tests/test_inference.py::test_compare_identity[is not-False] XFAIL (...) [ 49%] tests/test_inference.py::test_compare_membership[in-True] PASSED [ 49%] tests/test_inference.py::test_compare_membership[not in-False] PASSED [ 49%] tests/test_inference.py::test_compare_lesseq_types[1-1-True] PASSED [ 49%] tests/test_inference.py::test_compare_lesseq_types[1-1.1-True] PASSED [ 49%] tests/test_inference.py::test_compare_lesseq_types[1.1-1-False] PASSED [ 49%] tests/test_inference.py::test_compare_lesseq_types[1.0-1.0-True] PASSED [ 49%] tests/test_inference.py::test_compare_lesseq_types[abc-def-True] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[abc--False] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[lhs6-rhs6-True] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[lhs7-rhs7-True] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[lhs8-rhs8-False] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[True-True-True] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[True-False-False] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[False-1-True] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[(1+0j)-(2+0j)-result12] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[0.0--0.0-True] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[0-1-result14] PASSED [ 50%] tests/test_inference.py::test_compare_lesseq_types[\x00-\x01-True] PASSED [ 50%] tests/test_inference.py::test_compare_chained PASSED [ 50%] tests/test_inference.py::test_compare_inferred_members PASSED [ 50%] tests/test_inference.py::test_compare_instance_members PASSED [ 50%] tests/test_inference.py::test_compare_dynamic XFAIL (unimplemented) [ 50%] tests/test_inference.py::test_compare_uninferable_member PASSED [ 50%] tests/test_inference.py::test_compare_chained_comparisons_shortcircuit_on_false PASSED [ 50%] tests/test_inference.py::test_compare_chained_comparisons_continue_on_true PASSED [ 51%] tests/test_inference.py::test_compare_known_false_branch XFAIL (unim...) [ 51%] tests/test_inference.py::test_compare_ifexp_constant PASSED [ 51%] tests/test_inference.py::test_compare_typeerror PASSED [ 51%] tests/test_inference.py::test_compare_multiple_possibilites PASSED [ 51%] tests/test_inference.py::test_compare_ambiguous_multiple_possibilites PASSED [ 51%] tests/test_inference.py::test_compare_nonliteral PASSED [ 51%] tests/test_inference.py::test_compare_unknown PASSED [ 51%] tests/test_inference.py::test_limit_inference_result_amount PASSED [ 51%] tests/test_inference.py::test_attribute_inference_should_not_access_base_classes PASSED [ 51%] tests/test_inference.py::test_attribute_mro_object_inference PASSED [ 51%] tests/test_inference.py::test_inferred_sequence_unpacking_works PASSED [ 51%] tests/test_inference.py::test_recursion_error_inferring_slice PASSED [ 51%] tests/test_inference.py::test_exception_lookup_last_except_handler_wins PASSED [ 51%] tests/test_inference.py::test_exception_lookup_name_bound_in_except_handler PASSED [ 51%] tests/test_inference.py::test_builtin_inference_list_of_exceptions PASSED [ 51%] tests/test_inference.py::test_cannot_getattr_ann_assigns PASSED [ 51%] tests/test_inference.py::test_prevent_recursion_error_in_igetattr_and_context_manager_inference PASSED [ 52%] tests/test_inference.py::test_igetattr_idempotent PASSED [ 52%] tests/test_inference.py::test_cache_usage_without_explicit_context PASSED [ 52%] tests/test_inference.py::test_infer_context_manager_with_unknown_args PASSED [ 52%] tests/test_inference.py::test_subclass_of_exception[\n class Error(Exception):\n pass\n\n a = Error()\n a #@\n ] PASSED [ 52%] tests/test_inference.py::test_subclass_of_exception[\n class Error(Exception):\n def method(self):\n self #@\n ] PASSED [ 52%] tests/test_inference.py::test_ifexp_inference PASSED [ 52%] tests/test_inference.py::test_assert_last_function_returns_none_on_inference PASSED [ 52%] tests/test_inference.py::test_posonlyargs_inference PASSED [ 52%] tests/test_inference.py::test_infer_args_unpacking_of_self PASSED [ 52%] tests/test_inference.py::test_infer_exception_instance_attributes PASSED [ 52%] tests/test_inference.py::test_infer_assign_attr PASSED [ 52%] tests/test_inference.py::test_inference_is_limited_to_the_boundnode[\n class A:\n def __enter__(self):\n return self\n def __exit__(self, err_type, err, traceback):\n return\n class B(A):\n pass\n with B() as b:\n b #@\n -B] PASSED [ 52%] tests/test_inference.py::test_inference_is_limited_to_the_boundnode[\n class A:\n def __enter__(self):\n return A()\n def __exit__(self, err_type, err, traceback):\n return\n class B(A):\n pass\n with B() as b:\n b #@\n -A] PASSED [ 52%] tests/test_inference.py::test_inference_is_limited_to_the_boundnode[\n class A:\n def test(self):\n return A()\n class B(A):\n def test(self):\n return A.test(self)\n B().test()\n -A] PASSED [ 52%] tests/test_inference.py::test_property_inference PASSED [ 52%] tests/test_inference.py::test_property_as_string PASSED [ 52%] tests/test_inference.py::test_property_callable_inference PASSED [ 53%] tests/test_inference.py::test_property_docstring PASSED [ 53%] tests/test_inference.py::test_recursion_error_inferring_builtin_containers PASSED [ 53%] tests/test_inference.py::test_inferaugassign_picking_parent_instead_of_stmt PASSED [ 53%] tests/test_inference.py::test_classmethod_from_builtins_inferred_as_bound PASSED [ 53%] tests/test_inference.py::test_infer_dict_passes_context PASSED [ 53%] tests/test_inference.py::test_custom_decorators_for_classmethod_and_staticmethods[\n def klassmethod1(method):\n @classmethod\n def inner(cls):\n return method(cls)\n return inner\n\n class X(object):\n @klassmethod1\n def x(cls):\n return 'X'\n X.x\n -BoundMethod-classmethod] PASSED [ 53%] tests/test_inference.py::test_custom_decorators_for_classmethod_and_staticmethods[\n def staticmethod1(method):\n @staticmethod\n def inner(cls):\n return method(cls)\n return inner\n\n class X(object):\n @staticmethod1\n def x(cls):\n return 'X'\n X.x\n -FunctionDef-staticmethod] PASSED [ 53%] tests/test_inference.py::test_custom_decorators_for_classmethod_and_staticmethods[\n def klassmethod1(method):\n def inner(cls):\n return method(cls)\n return classmethod(inner)\n\n class X(object):\n @klassmethod1\n def x(cls):\n return 'X'\n X.x\n -BoundMethod-classmethod] PASSED [ 53%] tests/test_inference.py::test_custom_decorators_for_classmethod_and_staticmethods[\n def staticmethod1(method):\n def inner(cls):\n return method(cls)\n return staticmethod(inner)\n\n class X(object):\n @staticmethod1\n def x(cls):\n return 'X'\n X.x\n -FunctionDef-staticmethod] PASSED [ 53%] tests/test_inference.py::test_dataclasses_subscript_inference_recursion_error_39 PASSED [ 53%] tests/test_inference.py::test_self_reference_infer_does_not_trigger_recursion_error PASSED [ 53%] tests/test_inference.py::test_inferring_properties_multiple_time_does_not_mutate_locals PASSED [ 53%] tests/test_inference.py::test_getattr_fails_on_empty_values PASSED [ 53%] tests/test_inference.py::test_infer_first_argument_of_static_method_in_metaclass PASSED [ 53%] tests/test_inference.py::test_recursion_error_metaclass_monkeypatching PASSED [ 53%] tests/test_inference.py::test_recursion_error_self_reference_type_call XFAIL [ 53%] tests/test_inference.py::test_allow_retrieving_instance_attrs_and_special_attrs_for_functions PASSED [ 54%] tests/test_inference.py::test_implicit_parameters_bound_method PASSED [ 54%] tests/test_inference.py::test_super_inference_of_abstract_property PASSED [ 54%] tests/test_inference.py::test_infer_generated_setter PASSED [ 54%] tests/test_inference.py::test_infer_list_of_uninferables_does_not_crash PASSED [ 54%] tests/test_inference.py::test_issue926_infer_stmts_referencing_same_name_is_not_uninferable PASSED [ 54%] tests/test_inference.py::test_issue926_binop_referencing_same_name_is_not_uninferable PASSED [ 54%] tests/test_inference.py::test_pylint_issue_4692_attribute_inference_error_in_infer_import_from PASSED [ 54%] tests/test_inference.py::test_issue_1090_infer_yield_type_base_class PASSED [ 54%] tests/test_inference.py::test_namespace_package PASSED [ 54%] tests/test_inference.py::test_namespace_package_same_name PASSED [ 54%] tests/test_inference.py::test_relative_imports_init_package PASSED [ 54%] tests/test_inference.py::test_inference_of_items_on_module_dict PASSED [ 54%] tests/test_inference.py::test_imported_module_var_inferable PASSED [ 54%] tests/test_inference.py::test_imported_module_var_inferable2 PASSED [ 54%] tests/test_inference.py::test_imported_module_var_inferable3 PASSED [ 54%] tests/test_inference.py::test_recursion_on_inference_tip PASSED [ 54%] tests/test_inference.py::test_function_def_cached_generator PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[empty-indexes] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[numbered-indexes] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[empty-indexes-from-positional] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[numbered-indexes-from-positionl] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[named-indexes-from-keyword] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[empty-indexes-on-variable] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[empty-indexes-from-variable0] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting[empty-indexes-from-variable1] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n from missing import Unknown\n fname = Unknown\n age = 12\n "My name is %(fname)s, I'm %(age)s" % {"fname": fname, "age": age}\n ] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n from missing import fname\n age = 12\n "My name is %(fname)s, I'm %(age)s" % {"fname": fname, "age": age}\n ] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n from missing import fname\n "My name is %s, I'm %s" % (fname, 12)\n ] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n "My name is %0s, I'm %1s" % ("Daniel")\n ] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable["I am %s" % ()] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable["I am %s" % Exception()] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n fsname = "Daniel"\n "My name is %(fname)s, I'm %(age)s" % {"fsname": fsname, "age": age}\n ] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n "My name is %(fname)s, I'm %(age)s" % {Exception(): "Daniel", "age": age}\n ] PASSED [ 55%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n fname = "Daniel"\n age = 12\n "My name is %0s, I'm %(age)s" % (fname, age)\n ] PASSED [ 56%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[\n "My name is %s, I'm %s" % ((fname,)*2)\n ] PASSED [ 56%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[20 % 0] PASSED [ 56%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_uninferable[("%" + str(20)) % 0] PASSED [ 56%] tests/test_inference.py::TestOldStyleStringFormatting::test_old_style_string_formatting_with_specs PASSED [ 56%] tests/test_inference.py::test_sys_argv_uninferable PASSED [ 56%] tests/test_inference.py::test_empty_format_spec PASSED [ 56%] tests/test_inference.py::test_joined_str_returns_string[\nclass Cls:\n # pylint: disable=too-few-public-methods\n pass\n\nc_obj = Cls()\n\ns1 = f'{c_obj!r}' #@\n-<__main__.Cls] PASSED [ 56%] tests/test_inference.py::test_joined_str_returns_string[s1 = f'{5}' #@-5] PASSED [ 56%] tests/test_inference_calls.py::test_no_return PASSED [ 56%] tests/test_inference_calls.py::test_one_return PASSED [ 56%] tests/test_inference_calls.py::test_one_return_possible PASSED [ 56%] tests/test_inference_calls.py::test_multiple_returns PASSED [ 56%] tests/test_inference_calls.py::test_argument PASSED [ 56%] tests/test_inference_calls.py::test_inner_call PASSED [ 56%] tests/test_inference_calls.py::test_inner_call_with_const_argument PASSED [ 56%] tests/test_inference_calls.py::test_inner_call_with_dynamic_argument PASSED [ 56%] tests/test_inference_calls.py::test_method_const_instance_attr PASSED [ 57%] tests/test_inference_calls.py::test_method_const_instance_attr_multiple PASSED [ 57%] tests/test_inference_calls.py::test_method_const_instance_attr_same_method PASSED [ 57%] tests/test_inference_calls.py::test_method_dynamic_instance_attr_1 PASSED [ 57%] tests/test_inference_calls.py::test_method_dynamic_instance_attr_2 PASSED [ 57%] tests/test_inference_calls.py::test_method_dynamic_instance_attr_3 PASSED [ 57%] tests/test_inference_calls.py::test_method_dynamic_instance_attr_4 PASSED [ 57%] tests/test_inference_calls.py::test_method_dynamic_instance_attr_5 PASSED [ 57%] tests/test_inference_calls.py::test_method_dynamic_instance_attr_6 PASSED [ 57%] tests/test_inference_calls.py::test_dunder_getitem PASSED [ 57%] tests/test_inference_calls.py::test_instance_method PASSED [ 57%] tests/test_inference_calls.py::test_class_method PASSED [ 57%] tests/test_inference_calls.py::test_static_method PASSED [ 57%] tests/test_inference_calls.py::test_instance_method_inherited PASSED [ 57%] tests/test_inference_calls.py::test_class_method_inherited PASSED [ 57%] tests/test_inference_calls.py::test_chained_attribute_inherited PASSED [ 57%] tests/test_lookup.py::LookupTest::test_builtin_lookup FAILED [ 57%] tests/test_lookup.py::LookupTest::test_class FAILED [ 58%] tests/test_lookup.py::LookupTest::test_class_ancestor_name FAILED [ 58%] tests/test_lookup.py::LookupTest::test_class_in_function FAILED [ 58%] tests/test_lookup.py::LookupTest::test_class_variables FAILED [ 58%] tests/test_lookup.py::LookupTest::test_decorator_arguments_lookup FAILED [ 58%] tests/test_lookup.py::LookupTest::test_dict_comp_nested FAILED [ 58%] tests/test_lookup.py::LookupTest::test_dict_comps FAILED [ 58%] tests/test_lookup.py::LookupTest::test_explicit___name__ FAILED [ 58%] tests/test_lookup.py::LookupTest::test_function_argument_with_default FAILED [ 58%] tests/test_lookup.py::LookupTest::test_function_module_special FAILED [ 58%] tests/test_lookup.py::LookupTest::test_function_nested FAILED [ 58%] tests/test_lookup.py::LookupTest::test_generator_attributes FAILED [ 58%] tests/test_lookup.py::LookupTest::test_global_delete FAILED [ 58%] tests/test_lookup.py::LookupTest::test_inner_classes FAILED [ 58%] tests/test_lookup.py::LookupTest::test_inner_decorator_member_lookup FAILED [ 58%] tests/test_lookup.py::LookupTest::test_lambda_nested FAILED [ 58%] tests/test_lookup.py::LookupTest::test_limit FAILED [ 58%] tests/test_lookup.py::LookupTest::test_list_comp_nested FAILED [ 59%] tests/test_lookup.py::LookupTest::test_list_comp_target FAILED [ 59%] tests/test_lookup.py::LookupTest::test_list_comps FAILED [ 59%] tests/test_lookup.py::LookupTest::test_loopvar_hiding FAILED [ 59%] tests/test_lookup.py::LookupTest::test_method FAILED [ 59%] tests/test_lookup.py::LookupTest::test_module FAILED [ 59%] tests/test_lookup.py::LookupTest::test_set_comp_closure FAILED [ 59%] tests/test_lookup.py::LookupTest::test_set_comp_nested FAILED [ 59%] tests/test_lookup.py::LookupTest::test_set_comps FAILED [ 59%] tests/test_lookup.py::LookupTest::test_static_method_lookup FAILED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_after_args_param PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_after_kwonly_param PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_after_param PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_after_posonly_param PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_after_use PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_exclusive PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_assign_not_exclusive PASSED [ 59%] tests/test_lookup.py::LookupControlFlowTest::test_consecutive_assign PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_del_exclusive PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_del_no_effect_after PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_del_not_exclusive PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_del_removes_prior PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_assign_after_block PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_assign_after_block_overwritten PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_assign_in_block PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_assign_in_block_multiple PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_var_after_block_multiple PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_var_after_block_single PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_var_in_block PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_var_in_block_overwrites PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_except_var_in_multiple_blocks PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_if_assign PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_if_assigns_different_branch PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_if_assigns_same_branch PASSED [ 60%] tests/test_lookup.py::LookupControlFlowTest::test_if_else PASSED [ 61%] tests/test_lookup.py::LookupControlFlowTest::test_if_variable_in_condition_1 PASSED [ 61%] tests/test_lookup.py::LookupControlFlowTest::test_if_variable_in_condition_2 PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_class PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_class_attr_error PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_class_with_module PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_file PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_file_astro_builder PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_file_cache PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_file_name_astro_builder_exception PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_cache PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_astro_builder_exception PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_egg PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_not_python_source PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_pyz PASSED [ 61%] tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_zip PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_ast_from_namespace_pkg_resources PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_ast_from_namespace_pkgutil PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_ast_from_string PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_denied_modules_raise PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_do_not_expose_main PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_failed_import_hooks PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_file_from_module PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_file_from_module_name_astro_building_exception PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_identify_old_namespace_package_protocol PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_implicit_namespace_package PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_module_is_not_namespace PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_module_unexpectedly_missing_path PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_module_unexpectedly_missing_spec PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_module_unexpectedly_spec_is_none PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_namespace_and_file_mismatch PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_namespace_package_pth_support PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_nested_namespace_import PASSED [ 62%] tests/test_manager.py::AstroidManagerTest::test_raises_exception_for_empty_modname PASSED [ 63%] tests/test_manager.py::AstroidManagerTest::test_same_name_import_module PASSED [ 63%] tests/test_manager.py::AstroidManagerTest::test_submodule_homonym_with_non_module PASSED [ 63%] tests/test_manager.py::AstroidManagerTest::test_zip_import_data PASSED [ 63%] tests/test_manager.py::AstroidManagerTest::test_zip_import_data_without_zipimport PASSED [ 63%] tests/test_manager.py::IsolatedAstroidManagerTest::test_no_user_warning SKIPPED [ 63%] tests/test_manager.py::BorgAstroidManagerTC::test_borg PASSED [ 63%] tests/test_manager.py::BorgAstroidManagerTC::test_max_inferable_values PASSED [ 63%] tests/test_manager.py::ClearCacheTest::test_brain_plugins_reloaded_after_clearing_cache PASSED [ 63%] tests/test_manager.py::ClearCacheTest::test_builtins_inference_after_clearing_cache PASSED [ 63%] tests/test_manager.py::ClearCacheTest::test_builtins_inference_after_clearing_cache_manually PASSED [ 63%] tests/test_manager.py::ClearCacheTest::test_clear_cache_clears_other_lru_caches PASSED [ 63%] tests/test_manager.py::ClearCacheTest::test_file_cache_after_clear_cache PASSED [ 63%] tests/test_modutils.py::ModuleFileTest::test_find_egg_module PASSED [ 63%] tests/test_modutils.py::ModuleFileTest::test_find_zipped_module PASSED [ 63%] tests/test_modutils.py::LoadModuleFromNameTest::test_known_values_load_module_from_name_1 PASSED [ 63%] tests/test_modutils.py::LoadModuleFromNameTest::test_known_values_load_module_from_name_2 PASSED [ 63%] tests/test_modutils.py::LoadModuleFromNameTest::test_raise_load_module_from_name_1 PASSED [ 64%] tests/test_modutils.py::test_import_dotted_library PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_get_module_part_exception PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_get_module_part_only_dot PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_known_values_get_compiled_module_part PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_known_values_get_module_part_1 PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_known_values_get_module_part_2 PASSED [ 64%] tests/test_modutils.py::GetModulePartTest::test_known_values_get_module_part_3 PASSED [ 64%] tests/test_modutils.py::ModPathFromFileTest::test_import_symlink_both_outside_of_path PASSED [ 64%] tests/test_modutils.py::ModPathFromFileTest::test_import_symlink_with_source_outside_of_path PASSED [ 64%] tests/test_modutils.py::ModPathFromFileTest::test_known_values_modpath_from_file_1 PASSED [ 64%] tests/test_modutils.py::ModPathFromFileTest::test_load_from_module_symlink_on_symlinked_paths_in_syspath PASSED [ 64%] tests/test_modutils.py::ModPathFromFileTest::test_load_packages_without_init PASSED [ 64%] tests/test_modutils.py::ModPathFromFileTest::test_raise_modpath_from_file_exception PASSED [ 64%] tests/test_modutils.py::LoadModuleFromPathTest::test_do_not_load_twice PASSED [ 64%] tests/test_modutils.py::FileFromModPathTest::test_builtin PASSED [ 64%] tests/test_modutils.py::FileFromModPathTest::test_site_packages PASSED [ 65%] tests/test_modutils.py::FileFromModPathTest::test_std_lib PASSED [ 65%] tests/test_modutils.py::FileFromModPathTest::test_unexisting PASSED [ 65%] tests/test_modutils.py::FileFromModPathTest::test_unicode_in_package_init PASSED [ 65%] tests/test_modutils.py::GetSourceFileTest::test PASSED [ 65%] tests/test_modutils.py::GetSourceFileTest::test_pyi PASSED [ 65%] tests/test_modutils.py::GetSourceFileTest::test_pyi_preferred PASSED [ 65%] tests/test_modutils.py::GetSourceFileTest::test_raise PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_4 PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_builtin PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_builtins PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_custom_path PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_datetime PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_failing_edge_cases PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_nonstandard PASSED [ 65%] tests/test_modutils.py::IsStandardModuleTest::test_unknown PASSED [ 65%] tests/test_modutils.py::IsStdLibModuleTest::test_4 PASSED [ 65%] tests/test_modutils.py::IsStdLibModuleTest::test_builtin PASSED [ 66%] tests/test_modutils.py::IsStdLibModuleTest::test_builtins PASSED [ 66%] tests/test_modutils.py::IsStdLibModuleTest::test_datetime PASSED [ 66%] tests/test_modutils.py::IsStdLibModuleTest::test_nonstandard PASSED [ 66%] tests/test_modutils.py::IsStdLibModuleTest::test_platform_specific PASSED [ 66%] tests/test_modutils.py::IsStdLibModuleTest::test_subpackages PASSED [ 66%] tests/test_modutils.py::IsStdLibModuleTest::test_unknown PASSED [ 66%] tests/test_modutils.py::ModuleInPathTest::test_bad_import PASSED [ 66%] tests/test_modutils.py::ModuleInPathTest::test_failure PASSED [ 66%] tests/test_modutils.py::ModuleInPathTest::test_no_filename PASSED [ 66%] tests/test_modutils.py::ModuleInPathTest::test_success PASSED [ 66%] tests/test_modutils.py::BackportStdlibNamesTest::test_import_error PASSED [ 66%] tests/test_modutils.py::IsRelativeTest::test_deep_relative PASSED [ 66%] tests/test_modutils.py::IsRelativeTest::test_deep_relative2 PASSED [ 66%] tests/test_modutils.py::IsRelativeTest::test_deep_relative3 PASSED [ 66%] tests/test_modutils.py::IsRelativeTest::test_deep_relative4 PASSED [ 66%] tests/test_modutils.py::IsRelativeTest::test_is_relative_bad_path PASSED [ 66%] tests/test_modutils.py::IsRelativeTest::test_known_values_is_relative_1 PASSED [ 67%] tests/test_modutils.py::IsRelativeTest::test_known_values_is_relative_3 PASSED [ 67%] tests/test_modutils.py::IsRelativeTest::test_known_values_is_relative_4 PASSED [ 67%] tests/test_modutils.py::IsRelativeTest::test_known_values_is_relative_5 PASSED [ 67%] tests/test_modutils.py::GetModuleFilesTest::test_get_all_files PASSED [ 67%] tests/test_modutils.py::GetModuleFilesTest::test_get_module_files_1 PASSED [ 67%] tests/test_modutils.py::GetModuleFilesTest::test_get_module_files_2 PASSED [ 67%] tests/test_modutils.py::GetModuleFilesTest::test_load_module_set_attribute PASSED [ 67%] tests/test_modutils.py::ExtensionPackageWhitelistTest::test_is_module_name_part_of_extension_package_whitelist_success PASSED [ 67%] tests/test_modutils.py::ExtensionPackageWhitelistTest::test_is_module_name_part_of_extension_package_whitelist_true PASSED [ 67%] tests/test_modutils.py::test_file_info_from_modpath__SixMetaPathImporter SKIPPED [ 67%] tests/test_modutils.py::test_find_setuptools_pep660_editable_install PASSED [ 67%] tests/test_nodes.py::AsStringTest::test_3k_annotations_and_metaclass PASSED [ 67%] tests/test_nodes.py::AsStringTest::test_3k_as_string PASSED [ 67%] tests/test_nodes.py::AsStringTest::test_as_string PASSED [ 67%] tests/test_nodes.py::AsStringTest::test_as_string_for_list_containing_uninferable PASSED [ 67%] tests/test_nodes.py::AsStringTest::test_as_string_unknown PASSED [ 67%] tests/test_nodes.py::AsStringTest::test_class_def PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_ellipsis PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_f_strings PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_frozenset_as_string PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_func_signature_issue_185 PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_int_attribute PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_module2_as_string PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_module_as_string FAILED [ 68%] tests/test_nodes.py::AsStringTest::test_operator_precedence PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_recursion_error_trapped PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_slice_and_subscripts PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_slices PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_tuple_as_string PASSED [ 68%] tests/test_nodes.py::AsStringTest::test_varargs_kwargs_as_string PASSED [ 68%] tests/test_nodes.py::AsStringTypeParamNodes::test_as_string_param_spec PASSED [ 68%] tests/test_nodes.py::AsStringTypeParamNodes::test_as_string_type_alias PASSED [ 68%] tests/test_nodes.py::AsStringTypeParamNodes::test_as_string_type_var PASSED [ 68%] tests/test_nodes.py::AsStringTypeParamNodes::test_as_string_type_var_tuple PASSED [ 69%] tests/test_nodes.py::IfNodeTest::test_block_range PASSED [ 69%] tests/test_nodes.py::IfNodeTest::test_if_elif_else_node PASSED [ 69%] tests/test_nodes.py::TryNodeTest::test_block_range PASSED [ 69%] tests/test_nodes.py::TryExceptNodeTest::test_block_range PASSED [ 69%] tests/test_nodes.py::TryFinallyNodeTest::test_block_range PASSED [ 69%] tests/test_nodes.py::TryExceptFinallyNodeTest::test_block_range PASSED [ 69%] tests/test_nodes.py::ImportNodeTest::test_absolute_import FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_as_string FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_bad_import_inference FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_conditional FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_conditional_import FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_from_self_resolve FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_import_self_resolve FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_more_absolute_import FAILED [ 69%] tests/test_nodes.py::ImportNodeTest::test_real_name FAILED [ 69%] tests/test_nodes.py::CmpNodeTest::test_as_string PASSED [ 69%] tests/test_nodes.py::ConstNodeTest::test_bool PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_complex PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_copy PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_float PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_int PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_none PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_str PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_str_kind PASSED [ 70%] tests/test_nodes.py::ConstNodeTest::test_unicode PASSED [ 70%] tests/test_nodes.py::NameNodeTest::test_assign_to_true PASSED [ 70%] tests/test_nodes.py::TestNamedExprNode::test_frame PASSED [ 70%] tests/test_nodes.py::TestNamedExprNode::test_scope PASSED [ 70%] tests/test_nodes.py::AnnAssignNodeTest::test_as_string PASSED [ 70%] tests/test_nodes.py::AnnAssignNodeTest::test_complex PASSED [ 70%] tests/test_nodes.py::AnnAssignNodeTest::test_primitive PASSED [ 70%] tests/test_nodes.py::AnnAssignNodeTest::test_primitive_without_initial_value PASSED [ 70%] tests/test_nodes.py::ArgumentsNodeTC::test_kwoargs PASSED [ 70%] tests/test_nodes.py::ArgumentsNodeTC::test_linenumbering PASSED [ 71%] tests/test_nodes.py::ArgumentsNodeTC::test_positional_only PASSED [ 71%] tests/test_nodes.py::UnboundMethodNodeTest::test_no_super_getattr PASSED [ 71%] tests/test_nodes.py::BoundMethodNodeTest::test_is_property PASSED [ 71%] tests/test_nodes.py::AliasesTest::test_aliases PASSED [ 71%] tests/test_nodes.py::Python35AsyncTest::test_async_await_keywords PASSED [ 71%] tests/test_nodes.py::Python35AsyncTest::test_asyncfor_as_string PASSED [ 71%] tests/test_nodes.py::Python35AsyncTest::test_asyncwith_as_string PASSED [ 71%] tests/test_nodes.py::Python35AsyncTest::test_await_as_string PASSED [ 71%] tests/test_nodes.py::Python35AsyncTest::test_decorated_async_def_as_string PASSED [ 71%] tests/test_nodes.py::ContextTest::test_list_del PASSED [ 71%] tests/test_nodes.py::ContextTest::test_list_load PASSED [ 71%] tests/test_nodes.py::ContextTest::test_list_store PASSED [ 71%] tests/test_nodes.py::ContextTest::test_starred_load PASSED [ 71%] tests/test_nodes.py::ContextTest::test_starred_store PASSED [ 71%] tests/test_nodes.py::ContextTest::test_subscript_del PASSED [ 71%] tests/test_nodes.py::ContextTest::test_subscript_load PASSED [ 71%] tests/test_nodes.py::ContextTest::test_subscript_store PASSED [ 72%] tests/test_nodes.py::ContextTest::test_tuple_load PASSED [ 72%] tests/test_nodes.py::ContextTest::test_tuple_store PASSED [ 72%] tests/test_nodes.py::test_unknown PASSED [ 72%] tests/test_nodes.py::test_type_comments_with PASSED [ 72%] tests/test_nodes.py::test_type_comments_for PASSED [ 72%] tests/test_nodes.py::test_type_coments_assign PASSED [ 72%] tests/test_nodes.py::test_type_comments_invalid_expression PASSED [ 72%] tests/test_nodes.py::test_type_comments_invalid_function_comments PASSED [ 72%] tests/test_nodes.py::test_type_comments_function PASSED [ 72%] tests/test_nodes.py::test_type_comments_arguments PASSED [ 72%] tests/test_nodes.py::test_type_comments_posonly_arguments PASSED [ 72%] tests/test_nodes.py::test_correct_function_type_comment_parent PASSED [ 72%] tests/test_nodes.py::test_is_generator_for_yield_assignments PASSED [ 72%] tests/test_nodes.py::test_f_string_correct_line_numbering PASSED [ 72%] tests/test_nodes.py::test_assignment_expression PASSED [ 72%] tests/test_nodes.py::test_assignment_expression_in_functiondef PASSED [ 72%] tests/test_nodes.py::test_get_doc PASSED [ 73%] tests/test_nodes.py::test_parse_fstring_debug_mode PASSED [ 73%] tests/test_nodes.py::test_parse_type_comments_with_proper_parent PASSED [ 73%] tests/test_nodes.py::test_const_itered PASSED [ 73%] tests/test_nodes.py::test_is_generator_for_yield_in_while PASSED [ 73%] tests/test_nodes.py::test_is_generator_for_yield_in_if PASSED [ 73%] tests/test_nodes.py::test_is_generator_for_yield_in_aug_assign PASSED [ 73%] tests/test_nodes.py::TestPatternMatching::test_match_simple PASSED [ 73%] tests/test_nodes.py::TestPatternMatching::test_match_sequence PASSED [ 73%] tests/test_nodes.py::TestPatternMatching::test_match_mapping PASSED [ 73%] tests/test_nodes.py::TestPatternMatching::test_match_class PASSED [ 73%] tests/test_nodes.py::TestPatternMatching::test_return_from_match PASSED [ 73%] tests/test_nodes.py::test_str_repr_no_warnings[AnnAssign] PASSED [ 73%] tests/test_nodes.py::test_str_repr_no_warnings[Arguments] PASSED [ 73%] tests/test_nodes.py::test_str_repr_no_warnings[Assert] PASSED [ 73%] tests/test_nodes.py::test_str_repr_no_warnings[Assign] PASSED [ 73%] tests/test_nodes.py::test_str_repr_no_warnings[AssignAttr] PASSED [ 73%] tests/test_nodes.py::test_str_repr_no_warnings[AssignName] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[AsyncFor] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[AsyncFunctionDef] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[AsyncWith] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Attribute] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[AugAssign] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Await] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[BinOp] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[BoolOp] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Break] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Call] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[ClassDef] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Compare] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Comprehension] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[ComprehensionScope] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Const] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Continue] PASSED [ 74%] tests/test_nodes.py::test_str_repr_no_warnings[Decorators] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[DelAttr] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[Delete] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[DelName] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[Dict] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[DictComp] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[DictUnpack] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[EmptyNode] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[EvaluatedObject] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[ExceptHandler] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[Expr] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[For] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[FormattedValue] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[FunctionDef] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[GeneratorExp] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[Global] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[If] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[IfExp] PASSED [ 75%] tests/test_nodes.py::test_str_repr_no_warnings[Import] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[ImportFrom] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[JoinedStr] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[Keyword] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[Lambda] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[List] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[ListComp] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[LocalsDictNodeNG] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[Match] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchAs] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchCase] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchClass] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchMapping] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchOr] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchSequence] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchSingleton] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchStar] PASSED [ 76%] tests/test_nodes.py::test_str_repr_no_warnings[MatchValue] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Module] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Name] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[NamedExpr] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Nonlocal] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[ParamSpec] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Pass] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Pattern] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Raise] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Return] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Set] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[SetComp] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Slice] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Starred] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Subscript] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Try] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[TryStar] PASSED [ 77%] tests/test_nodes.py::test_str_repr_no_warnings[Tuple] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[TypeAlias] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[TypeVar] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[TypeVarTuple] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[UnaryOp] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[Unknown] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[While] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[With] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[Yield] PASSED [ 78%] tests/test_nodes.py::test_str_repr_no_warnings[YieldFrom] PASSED [ 78%] tests/test_nodes.py::test_arguments_contains_all PASSED [ 78%] tests/test_nodes.py::test_arguments_default_value PASSED [ 78%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_container PASSED [ 78%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_name PASSED [ 78%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_attribute PASSED [ 78%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_call PASSED [ 78%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_assignment PASSED [ 78%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_mix_stmts PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_mix_nodes PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_ops PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_if PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_for PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_const PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_function PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_dict PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_try PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_subscript PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_import PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_with PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_while PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_string PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_match PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_comprehension PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_class PASSED [ 79%] tests/test_nodes_lineno.py::TestLinenoColOffset::test_end_lineno_module PASSED [ 80%] tests/test_nodes_position.py::TestNodePosition::test_position_class PASSED [ 80%] tests/test_nodes_position.py::TestNodePosition::test_position_function PASSED [ 80%] tests/test_nodes_position.py::TestNodePosition::test_position_async_function PASSED [ 80%] tests/test_object_model.py::InstanceModelTest::test_instance_local_attributes_overrides_object_model XFAIL [ 80%] tests/test_object_model.py::InstanceModelTest::test_instance_special_model PASSED [ 80%] tests/test_object_model.py::BoundMethodModelTest::test_bound_method_model PASSED [ 80%] tests/test_object_model.py::UnboundMethodModelTest::test_unbound_method_model PASSED [ 80%] tests/test_object_model.py::ClassModelTest::test_class_model PASSED [ 80%] tests/test_object_model.py::ClassModelTest::test_class_model_correct_mro_subclasses_proxied PASSED [ 80%] tests/test_object_model.py::ClassModelTest::test_priority_to_local_defined_values PASSED [ 80%] tests/test_object_model.py::ModuleModelTest::test__path__not_a_package PASSED [ 80%] tests/test_object_model.py::ModuleModelTest::test_module_model PASSED [ 80%] tests/test_object_model.py::ModuleModelTest::test_priority_to_local_defined_values PASSED [ 80%] tests/test_object_model.py::FunctionModelTest::test___get__has_extra_params_defined PASSED [ 80%] tests/test_object_model.py::FunctionModelTest::test__get__and_positional_only_args PASSED [ 80%] tests/test_object_model.py::FunctionModelTest::test_annotation_positional_only PASSED [ 80%] tests/test_object_model.py::FunctionModelTest::test_annotations_kwdefaults PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_builtin_dunder_init_does_not_crash_when_accessing_annotations PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_descriptor_error_regression PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_descriptor_not_inferrring_self XFAIL [ 81%] tests/test_object_model.py::FunctionModelTest::test_descriptors_binding_invalid PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_empty_return_annotation PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_function_model PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_is_not_lambda PASSED [ 81%] tests/test_object_model.py::FunctionModelTest::test_partial_descriptor_support PASSED [ 81%] tests/test_object_model.py::TestContextManagerModel::test_model PASSED [ 81%] tests/test_object_model.py::GeneratorModelTest::test_model PASSED [ 81%] tests/test_object_model.py::ExceptionModelTest::test_exception_instance_correctly_instantiated PASSED [ 81%] tests/test_object_model.py::ExceptionModelTest::test_import_error PASSED [ 81%] tests/test_object_model.py::ExceptionModelTest::test_oserror PASSED [ 81%] tests/test_object_model.py::ExceptionModelTest::test_syntax_error PASSED [ 81%] tests/test_object_model.py::ExceptionModelTest::test_unicodedecodeerror PASSED [ 81%] tests/test_object_model.py::ExceptionModelTest::test_valueerror_py3 PASSED [ 81%] tests/test_object_model.py::DictObjectModelTest::test__class__ PASSED [ 82%] tests/test_object_model.py::DictObjectModelTest::test_attributes_inferred_as_methods PASSED [ 82%] tests/test_object_model.py::DictObjectModelTest::test_wrapper_objects_for_dict_methods_python3 PASSED [ 82%] tests/test_object_model.py::TestExceptionInstanceModel::test_str_argument_not_required PASSED [ 82%] tests/test_object_model.py::test_lru_cache[True] PASSED [ 82%] tests/test_object_model.py::test_lru_cache[False] PASSED [ 82%] tests/test_object_model.py::test_class_annotations PASSED [ 82%] tests/test_object_model.py::test_class_annotations_typed_dict PASSED [ 82%] tests/test_objects.py::ObjectsTest::test_frozenset PASSED [ 82%] tests/test_objects.py::ObjectsTest::test_lookup_regression_slots PASSED [ 82%] tests/test_objects.py::SuperTests::test_inferring_invalid_supers PASSED [ 82%] tests/test_objects.py::SuperTests::test_inferring_super_outside_methods PASSED [ 82%] tests/test_objects.py::SuperTests::test_inferring_unbound_super_doesnt_work PASSED [ 82%] tests/test_objects.py::SuperTests::test_no_arguments_super PASSED [ 82%] tests/test_objects.py::SuperTests::test_proxied PASSED [ 82%] tests/test_objects.py::SuperTests::test_super_bound_model PASSED [ 82%] tests/test_objects.py::SuperTests::test_super_complex_mro PASSED [ 82%] tests/test_objects.py::SuperTests::test_super_data_model PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_getattr_single_inheritance PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_infer PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_init_call PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_invalid_mro PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_invalid_types PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_mro PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_new_call PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_properties PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_qname PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_simple_cases PASSED [ 83%] tests/test_objects.py::SuperTests::test_super_yes_objects PASSED [ 83%] tests/test_objects.py::SuperTests::test_use_default_inference_on_not_inferring_args PASSED [ 83%] tests/test_protocols.py::ProtocolTests::test_assign_stmts_starred_fails PASSED [ 83%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_annassignments PASSED [ 83%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_assignments PASSED [ 83%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_nested_for_dict PASSED [ 83%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_nested_for_tuple PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_simple_for PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_starred_assnames PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_starred_for PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_starred_inside_call PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_assigned_stmts_starred_yes PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_not_passing_uninferable_in_seq_inference PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_sequence_assigned_stmts_not_accepting_empty_node PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_uninferable_exponents PASSED [ 84%] tests/test_protocols.py::ProtocolTests::test_uninferable_list_multiplication PASSED [ 84%] tests/test_protocols.py::test_named_expr_inference PASSED [ 84%] tests/test_protocols.py::TestPatternMatching::test_assigned_stmts_match_mapping PASSED [ 84%] tests/test_protocols.py::TestPatternMatching::test_assigned_stmts_match_star PASSED [ 84%] tests/test_protocols.py::TestPatternMatching::test_assigned_stmts_match_as PASSED [ 84%] tests/test_protocols.py::TestGenericTypeSyntax::test_assigned_stmts_type_var PASSED [ 84%] tests/test_protocols.py::TestGenericTypeSyntax::test_assigned_stmts_type_var_tuple PASSED [ 84%] tests/test_protocols.py::TestGenericTypeSyntax::test_assigned_stmts_param_spec PASSED [ 84%] tests/test_python3.py::Python3TC::test_annotation_as_string PASSED [ 85%] tests/test_python3.py::Python3TC::test_annotation_support PASSED [ 85%] tests/test_python3.py::Python3TC::test_as_string PASSED [ 85%] tests/test_python3.py::Python3TC::test_async_comprehensions PASSED [ 85%] tests/test_python3.py::Python3TC::test_async_comprehensions_as_string PASSED [ 85%] tests/test_python3.py::Python3TC::test_async_comprehensions_outside_coroutine PASSED [ 85%] tests/test_python3.py::Python3TC::test_format_string PASSED [ 85%] tests/test_python3.py::Python3TC::test_kwonlyargs_annotations_supper PASSED [ 85%] tests/test_python3.py::Python3TC::test_metaclass_ancestors PASSED [ 85%] tests/test_python3.py::Python3TC::test_metaclass_error PASSED [ 85%] tests/test_python3.py::Python3TC::test_metaclass_imported PASSED [ 85%] tests/test_python3.py::Python3TC::test_metaclass_multiple_keywords PASSED [ 85%] tests/test_python3.py::Python3TC::test_metaclass_yes_leak PASSED [ 85%] tests/test_python3.py::Python3TC::test_nested_unpacking_in_dicts PASSED [ 85%] tests/test_python3.py::Python3TC::test_old_syntax_works PASSED [ 85%] tests/test_python3.py::Python3TC::test_parent_metaclass PASSED [ 85%] tests/test_python3.py::Python3TC::test_simple_metaclass PASSED [ 85%] tests/test_python3.py::Python3TC::test_starred_notation PASSED [ 86%] tests/test_python3.py::Python3TC::test_underscores_in_numeral_literal PASSED [ 86%] tests/test_python3.py::Python3TC::test_unpacking_in_dict_getitem PASSED [ 86%] tests/test_python3.py::Python3TC::test_unpacking_in_dict_getitem_uninferable PASSED [ 86%] tests/test_python3.py::Python3TC::test_unpacking_in_dict_getitem_with_ref PASSED [ 86%] tests/test_python3.py::Python3TC::test_unpacking_in_dicts PASSED [ 86%] tests/test_python3.py::Python3TC::test_yield_from PASSED [ 86%] tests/test_python3.py::Python3TC::test_yield_from_as_string PASSED [ 86%] tests/test_python3.py::Python3TC::test_yield_from_is_generator PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_attach_dummy_node PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_class PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_from_import PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_function PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_function_args PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_function_deepinspect_deprecation PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_function_defaults PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_function_kwonlyargs PASSED [ 86%] tests/test_raw_building.py::RawBuildingTC::test_build_function_posonlyargs PASSED [ 87%] tests/test_raw_building.py::RawBuildingTC::test_build_module PASSED [ 87%] tests/test_raw_building.py::RawBuildingTC::test_io_is__io PASSED [ 87%] tests/test_raw_building.py::RawBuildingTC::test_module_object_with_broken_getattr PASSED [ 87%] tests/test_raw_building.py::test_build_module_getattr_catch_output PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_ancestors_missing_from_function PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_ancestors_patching_class_recursion PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_ancestors_yes_in_bases PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_binop_generates_nodes_with_parents PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_decorator_callchain_issue42 PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_decorator_names_inference_error_leaking PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_filter_stmts_nested_if PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_filter_stmts_scoping PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_inference_context_consideration PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_living_property PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_manager_instance_attributes_reference_global_MANAGER PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_module_path PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_nameconstant PASSED [ 87%] tests/test_regrtest.py::NonRegressionTests::test_numpy_crash SKIPPED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_numpy_distutils SKIPPED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_package_sidepackage PASSED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_recursion_regression_issue25 PASSED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_recursive_property_method PASSED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_regression_inference_of_self_in_lambda PASSED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_unicode_in_docstring PASSED [ 88%] tests/test_regrtest.py::NonRegressionTests::test_uninferable_string_argument_of_namedtuple PASSED [ 88%] tests/test_regrtest.py::test_ancestor_looking_up_redefined_function PASSED [ 88%] tests/test_regrtest.py::test_crash_in_dunder_inference_prevented PASSED [ 88%] tests/test_regrtest.py::test_regression_crash_classmethod PASSED [ 88%] tests/test_regrtest.py::test_max_inferred_for_complicated_class_hierarchy PASSED [ 88%] tests/test_regrtest.py::test_recursion_during_inference PASSED [ 88%] tests/test_regrtest.py::test_regression_missing_callcontext PASSED [ 88%] tests/test_scoped_nodes.py::ModuleNodeTest::test_comment_before_docstring FAILED [ 88%] tests/test_scoped_nodes.py::ModuleNodeTest::test_dict_interface FAILED [ 88%] tests/test_scoped_nodes.py::ModuleNodeTest::test_file_stream_api FAILED [ 88%] tests/test_scoped_nodes.py::ModuleNodeTest::test_file_stream_in_memory FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_file_stream_physical FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_getattr FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_import_1 FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_import_2 FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_import_unavailable_module FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_module_getattr FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_multiline_docstring FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_public_names FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_relative_to_absolute_name FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_relative_to_absolute_name_beyond_top_level FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_singleline_docstring FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_special_attributes FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_stream_api FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_wildcard_import_names FAILED [ 89%] tests/test_scoped_nodes.py::ModuleNodeTest::test_without_docstring FAILED [ 89%] tests/test_scoped_nodes.py::FunctionNodeTest::test_abstract_methods_are_not_implicitly_none FAILED [ 89%] tests/test_scoped_nodes.py::FunctionNodeTest::test_argnames FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_argnames_lambda FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_decorator_builtin_descriptors FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_default_value FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_dict_interface FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_display_type FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_docstring_special_cases FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_dunder_class_local_to_classmethod FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_dunder_class_local_to_function FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_dunder_class_local_to_method FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_format_args FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_format_args_keyword_only_args FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_four_args FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_func_instance_attr FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_func_is_bound FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_igetattr FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_inference_error FAILED [ 90%] tests/test_scoped_nodes.py::FunctionNodeTest::test_is_abstract FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_is_abstract_decorated FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_is_generator FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_is_method FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_lambda_getattr FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_lambda_pytype FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_lambda_qname FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_method_init_subclass FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_multiline_docstring FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_multiline_docstring_async FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_navigation FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_no_returns_is_implicitly_none FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_only_raises_is_not_implicitly_none FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_positional_only_argnames FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_return_annotation_is_not_the_last FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_return_nothing FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_singleline_docstring FAILED [ 91%] tests/test_scoped_nodes.py::FunctionNodeTest::test_special_attributes FAILED [ 92%] tests/test_scoped_nodes.py::FunctionNodeTest::test_type_builtin_descriptor_subclasses FAILED [ 92%] tests/test_scoped_nodes.py::FunctionNodeTest::test_without_docstring FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test__bases__attribute FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test__mro__attribute FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_add_metaclass FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_all_ancestors_need_slots FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_ancestors FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_frame_is_not_class FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_only_assignment_names_are_considered FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_only_callfunc_are_considered FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_only_same_name_considered FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_getattr FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_class_keywords FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_classmethod_attributes FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_cls_special_attributes_1 FAILED [ 92%] tests/test_scoped_nodes.py::ClassNodeTest::test_cls_special_attributes_2 FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_dict_interface FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_duplicate_bases_namedtuple FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_extra_decorators_only_class_level_assignments FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_function_with_decorator_lineno FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_generator_from_infer_call_result_parent FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_getattr_from_grandpa FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_getattr_method_transform FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_getattr_with_enpty_annassign FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_has_dynamic_getattr FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_implicit_metaclass FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_implicit_metaclass_lookup FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_inner_classes FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_instance_attr_ancestors FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_instance_bound_method_lambdas FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_instance_bound_method_lambdas_2 FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_instance_getattr FAILED [ 93%] tests/test_scoped_nodes.py::ClassNodeTest::test_instance_getattr_with_class_attr FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_instance_special_attributes FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_kite_graph FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_local_attr_ancestors FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_local_attr_invalid_mro FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_local_attr_mro FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_error FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_generator_hack SKIPPED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_generator_hack_enum_base SKIPPED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_lookup FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_lookup_inference_errors FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_lookup_using_same_class FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_type FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_yes_leak FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_methods FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_1 FAILED [ 94%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_2 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_3 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_4 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_5 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_6 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_7 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_error_1 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_error_2 FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_typing_extensions FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_with_attribute_classes FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_mro_with_factories FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_multiline_docstring FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_navigation FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_no_infinite_metaclass_loop FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_no_infinite_metaclass_loop_with_redefine FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_nonregr_infer_callresult FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_singleline_docstring FAILED [ 95%] tests/test_scoped_nodes.py::ClassNodeTest::test_slots FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_slots_added_dynamically_still_inferred FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_slots_empty_list_of_slots FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_slots_for_dict_keys FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_slots_taken_from_parents FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_type FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_type_three_arguments FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_using_invalid_six_add_metaclass_call SKIPPED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_with_invalid_metaclass FAILED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_with_metaclass_mro SKIPPED [ 96%] tests/test_scoped_nodes.py::ClassNodeTest::test_without_docstring FAILED [ 96%] tests/test_scoped_nodes.py::test_issue940_metaclass_subclass_property PASSED [ 96%] tests/test_scoped_nodes.py::test_issue940_property_grandchild PASSED [ 96%] tests/test_scoped_nodes.py::test_issue940_metaclass_property PASSED [ 96%] tests/test_scoped_nodes.py::test_issue940_with_metaclass_class_context_property PASSED [ 96%] tests/test_scoped_nodes.py::test_issue940_metaclass_values_funcdef PASSED [ 96%] tests/test_scoped_nodes.py::test_issue940_metaclass_derived_funcdef PASSED [ 96%] tests/test_scoped_nodes.py::test_issue940_metaclass_funcdef_is_not_datadescriptor PASSED [ 97%] tests/test_scoped_nodes.py::test_property_in_body_of_try PASSED [ 97%] tests/test_scoped_nodes.py::test_property_in_body_of_if PASSED [ 97%] tests/test_scoped_nodes.py::test_issue940_enums_as_a_real_world_usecase PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_str_member PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_no_value[bool] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_no_value[dict] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_no_value[int] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_no_value[str] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_value2member_map_ PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_non_str_member[int-42] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotation_non_str_member[bytes-] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotations_non_const_member[dict-value0] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotations_non_const_member[list-value1] PASSED [ 97%] tests/test_scoped_nodes.py::test_enums_type_annotations_non_const_member[TypedDict-value2] PASSED [ 97%] tests/test_scoped_nodes.py::test_metaclass_cannot_infer_call_yields_an_instance PASSED [ 97%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef func(a, b, /, d, e):\n pass\n] PASSED [ 97%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef func(a, b=None, /, d=None, e=None):\n pass\n] PASSED [ 98%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef func(a, other, other, b=None, /, d=None, e=None):\n pass\n] PASSED [ 98%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef func(a, other, other, b=None, /, d=None, e=None, **kwargs):\n pass\n] PASSED [ 98%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef name(p1, p2, /, p_or_kw, *, kw):\n pass\n] PASSED [ 98%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef __init__(self, other=(), /, **kw):\n pass\n] PASSED [ 98%] tests/test_scoped_nodes.py::test_posonlyargs_python_38[\ndef __init__(self: int, other: float, /, **kw):\n pass\n] PASSED [ 98%] tests/test_scoped_nodes.py::test_posonlyargs_default_value PASSED [ 98%] tests/test_scoped_nodes.py::test_ancestor_with_generic PASSED [ 98%] tests/test_scoped_nodes.py::test_slots_duplicate_bases_issue_1089 PASSED [ 98%] tests/test_scoped_nodes.py::TestFrameNodes::test_frame_node PASSED [ 98%] tests/test_scoped_nodes.py::TestFrameNodes::test_non_frame_node PASSED [ 98%] tests/test_stdlib.py::TestSys::test_sys_builtin_module_names PASSED [ 98%] tests/test_stdlib.py::TestSys::test_sys_modules PASSED [ 98%] tests/test_transforms.py::TestTransforms::test_builder_apply_transforms PASSED [ 98%] tests/test_transforms.py::TestTransforms::test_function_inlining_transform PASSED [ 98%] tests/test_transforms.py::TestTransforms::test_predicates PASSED [ 98%] tests/test_transforms.py::TestTransforms::test_recursive_transforms_into_astroid_fields PASSED [ 98%] tests/test_transforms.py::TestTransforms::test_transform_aborted_if_recursion_limited PASSED [ 99%] tests/test_transforms.py::TestTransforms::test_transform_crashes_on_is_subtype_of PASSED [ 99%] tests/test_transforms.py::TestTransforms::test_transform_patches_locals PASSED [ 99%] tests/test_transforms.py::TestTransforms::test_transforms_are_called_for_builtin_modules PASSED [ 99%] tests/test_transforms.py::TestTransforms::test_transforms_are_separated PASSED [ 99%] tests/test_type_params.py::test_type_alias PASSED [ 99%] tests/test_type_params.py::test_type_param_spec PASSED [ 99%] tests/test_type_params.py::test_type_var_tuple PASSED [ 99%] tests/test_type_params.py::test_type_param PASSED [ 99%] tests/test_type_params.py::test_get_children PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_if PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_not_exclusive PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_not_exclusive_walrus_multiple PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_not_exclusive_walrus_operator PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_not_exclusive_walrus_operator_nested PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_try_except PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_unpack_infer_empty_tuple PASSED [ 99%] tests/test_utils.py::InferenceUtil::test_unpack_infer_uninferable_nodes PASSED [100%] =================================== FAILURES =================================== ___________ CollectionsBrain.test_collections_object_subscriptable_3 ___________ args = (,) kwargs = {'context': } generator = def inner(*args: _P.args, **kwargs: _P.kwargs) -> Generator[InferenceResult]: generator = func(*args, **kwargs) try: > yield next(generator) E StopIteration astroid/decorators.py:86: StopIteration The above exception was the direct cause of the following exception: self = def test_collections_object_subscriptable_3(self): """With Python 3.9 the ByteString class of the collections module is subscriptable (but not the same class from typing module)""" right_node = builder.extract_node( """ import collections.abc collections.abc.ByteString[int] """ ) > inferred = next(right_node.infer()) tests/brain/test_brain.py:347: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/nodes/node_ng.py:168: in infer for i, result in enumerate(self._infer(context=context, **kwargs)): astroid/decorators.py:86: in inner yield next(generator) astroid/decorators.py:49: in wrapped for res in _func(node, context, **kwargs): astroid/nodes/node_classes.py:3724: in _infer_subscript for value in self.value.infer(context): astroid/nodes/node_ng.py:168: in infer for i, result in enumerate(self._infer(context=context, **kwargs)): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (,) kwargs = {'context': } generator = def inner(*args: _P.args, **kwargs: _P.kwargs) -> Generator[InferenceResult]: generator = func(*args, **kwargs) try: yield next(generator) except StopIteration as error: # generator is empty if error.args: raise InferenceError(**error.args[0]) from error > raise InferenceError( "StopIteration raised without any error information." ) from error E astroid.exceptions.InferenceError: StopIteration raised without any error information. astroid/decorators.py:91: InferenceError _______________________ TypingBrain.test_has_dunder_args _______________________ self = def test_has_dunder_args(self) -> None: ast_node = builder.extract_node( """ from typing import Union NumericTypes = Union[int, float] NumericTypes.__args__ #@ """ ) inferred = next(ast_node.infer()) > assert isinstance(inferred, nodes.Tuple) E AssertionError: assert False E + where False = isinstance(Uninferable, ) E + where = nodes.Tuple tests/brain/test_brain.py:747: AssertionError ______________ TypingBrain.test_typing_object_notsubscriptable_3 _______________ args = (,) kwargs = {'context': } generator = def inner(*args: _P.args, **kwargs: _P.kwargs) -> Generator[InferenceResult]: generator = func(*args, **kwargs) try: > yield next(generator) E StopIteration astroid/decorators.py:86: StopIteration The above exception was the direct cause of the following exception: self = def test_typing_object_notsubscriptable_3(self): """Until python39 ByteString class of the typing module is not subscriptable (whereas it is in the collections' module)""" right_node = builder.extract_node( """ import typing typing.ByteString """ ) > inferred = next(right_node.infer()) tests/brain/test_brain.py:930: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/nodes/node_ng.py:168: in infer for i, result in enumerate(self._infer(context=context, **kwargs)): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (,) kwargs = {'context': } generator = def inner(*args: _P.args, **kwargs: _P.kwargs) -> Generator[InferenceResult]: generator = func(*args, **kwargs) try: yield next(generator) except StopIteration as error: # generator is empty if error.args: raise InferenceError(**error.args[0]) from error > raise InferenceError( "StopIteration raised without any error information." ) from error E astroid.exceptions.InferenceError: StopIteration raised without any error information. astroid/decorators.py:91: InferenceError ________________________ TypingBrain.test_typing_types _________________________ self = def test_typing_types(self) -> None: ast_nodes = builder.extract_node( """ from typing import TypeVar, Iterable, Tuple, NewType, Dict, Union TypeVar('MyTypeVar', int, float, complex) #@ Iterable[Tuple[MyTypeVar, MyTypeVar]] #@ TypeVar('AnyStr', str, bytes) #@ NewType('UserId', str) #@ Dict[str, str] #@ Union[int, str] #@ """ ) for node in ast_nodes: inferred = next(node.infer()) > self.assertIsInstance(inferred, nodes.ClassDef, node.as_string()) E AssertionError: Uninferable is not an instance of : Union[int, str] tests/brain/test_brain.py:561: AssertionError ____________________________ test_inference_parents ____________________________ def test_inference_parents() -> None: """Test inference of ``pathlib.Path.parents``.""" name_node = astroid.extract_node( """ from pathlib import Path current_path = Path().resolve() path_parents = current_path.parents path_parents """ ) inferred = name_node.inferred() assert len(inferred) == 1 assert isinstance(inferred[0], bases.Instance) if PY313_PLUS: > assert inferred[0].qname() == "builtins.tuple" E AssertionError: assert 'pathlib._PathParents' == 'builtins.tuple' E E - builtins.tuple E + pathlib._PathParents tests/brain/test_pathlib.py:27: AssertionError ____________________ test_inference_parents_subscript_index ____________________ def test_inference_parents_subscript_index() -> None: """Test inference of ``pathlib.Path.parents``, accessed by index.""" path = astroid.extract_node( """ from pathlib import Path current_path = Path().resolve() current_path.parents[2] #@ """ ) inferred = path.inferred() assert len(inferred) == 1 assert isinstance(inferred[0], bases.Instance) if PY313_PLUS: > assert inferred[0].qname() == "pathlib._local.Path" E AssertionError: assert 'builtins.tuple' == 'pathlib._local.Path' E E - pathlib._local.Path E + builtins.tuple tests/brain/test_pathlib.py:47: AssertionError _____________________ FileBuildTest.test_class_base_props ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FileBuildTest.test_class_basenames ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ FileBuildTest.test_class_instance_attrs ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ FileBuildTest.test_class_locals ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ FileBuildTest.test_function_base_props ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FileBuildTest.test_function_locals ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FileBuildTest.test_method_base_props _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ FileBuildTest.test_method_locals _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FileBuildTest.test_module_base_props _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ FileBuildTest.test_module_locals _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FileBuildTest.test_unknown_encoding ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: > self.module = resources.build_file("data/module.py", "data.module") tests/test_builder.py:752: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ InferenceTest.test_binary_op_or_union_type __________________ self = def test_binary_op_or_union_type(self) -> None: """Binary or union is only defined for Python 3.10+.""" code = """ class A: ... int | 2 #@ int | "Hello" #@ int | ... #@ int | A() #@ int | None | 2 #@ """ ast_nodes = extract_node(code) for n in ast_nodes: assert n.inferred() == [util.Uninferable] code = """ from typing import List class A: ... class B: ... int | None #@ int | str #@ int | str | None #@ A | B #@ A | None #@ List[int] | int #@ tuple | int #@ """ ast_nodes = extract_node(code) if not PY310_PLUS: for n in ast_nodes: assert n.inferred() == [util.Uninferable] else: i0 = ast_nodes[0].inferred()[0] assert isinstance(i0, UnionType) assert isinstance(i0.left, nodes.ClassDef) assert i0.left.name == "int" assert isinstance(i0.right, nodes.Const) assert i0.right.value is None # Assert basic UnionType properties and methods assert i0.callable() is False assert i0.bool_value() is True assert i0.pytype() == "types.UnionType" assert i0.display_type() == "UnionType" > assert str(i0) == "UnionType(UnionType)" E AssertionError: assert 'UnionType(Union)' == 'UnionType(UnionType)' E E - UnionType(UnionType) E ? ---- E + UnionType(Union) tests/test_inference.py:1309: AssertionError ________________________ LookupTest.test_builtin_lookup ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________________ LookupTest.test_class _____________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ LookupTest.test_class_ancestor_name ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ LookupTest.test_class_in_function _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_class_variables ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ LookupTest.test_decorator_arguments_lookup __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_dict_comp_nested _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________________ LookupTest.test_dict_comps __________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ LookupTest.test_explicit___name__ _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ LookupTest.test_function_argument_with_default ________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ LookupTest.test_function_module_special ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_function_nested ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ LookupTest.test_generator_attributes _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ LookupTest.test_global_delete _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ LookupTest.test_inner_classes _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ LookupTest.test_inner_decorator_member_lookup _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ LookupTest.test_lambda_nested _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________________ LookupTest.test_limit _____________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_list_comp_nested _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_list_comp_target _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________________ LookupTest.test_list_comps __________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ LookupTest.test_loopvar_hiding ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________________ LookupTest.test_method ____________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________________ LookupTest.test_module ____________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_set_comp_closure _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ LookupTest.test_set_comp_nested ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________________ LookupTest.test_set_comps ___________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ LookupTest.test_static_method_lookup _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_lookup.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ AsStringTest.test_module_as_string ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def test_module_as_string(self) -> None: """Check as_string on a whole module prepared to be returned identically.""" > module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ ImportNodeTest.test_absolute_import ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ ImportNodeTest.test_as_string _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ImportNodeTest.test_bad_import_inference ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ImportNodeTest.test_conditional ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ImportNodeTest.test_conditional_import ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ImportNodeTest.test_from_self_resolve _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ImportNodeTest.test_import_self_resolve ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ImportNodeTest.test_more_absolute_import ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ ImportNodeTest.test_real_name _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_nodes.py:481: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ModuleNodeTest.test_comment_before_docstring _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ModuleNodeTest.test_dict_interface ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ ModuleNodeTest.test_file_stream_api ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ModuleNodeTest.test_file_stream_in_memory ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ModuleNodeTest.test_file_stream_physical ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________________ ModuleNodeTest.test_getattr __________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________________ ModuleNodeTest.test_import_1 _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________________ ModuleNodeTest.test_import_2 _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ ModuleNodeTest.test_import_unavailable_module _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ModuleNodeTest.test_module_getattr ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ModuleNodeTest.test_multiline_docstring ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ModuleNodeTest.test_public_names _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ ModuleNodeTest.test_relative_to_absolute_name _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________ ModuleNodeTest.test_relative_to_absolute_name_beyond_top_level ________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ModuleNodeTest.test_singleline_docstring ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ModuleNodeTest.test_special_attributes ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ ModuleNodeTest.test_stream_api ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ModuleNodeTest.test_wildcard_import_names ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ModuleNodeTest.test_without_docstring _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________ FunctionNodeTest.test_abstract_methods_are_not_implicitly_none ________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ FunctionNodeTest.test_argnames ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ FunctionNodeTest.test_argnames_lambda _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ FunctionNodeTest.test_decorator_builtin_descriptors ______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FunctionNodeTest.test_default_value ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FunctionNodeTest.test_dict_interface _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FunctionNodeTest.test_display_type ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ FunctionNodeTest.test_docstring_special_cases _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________ FunctionNodeTest.test_dunder_class_local_to_classmethod ____________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ FunctionNodeTest.test_dunder_class_local_to_function _____________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________ FunctionNodeTest.test_dunder_class_local_to_method ______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FunctionNodeTest.test_format_args _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ FunctionNodeTest.test_format_args_keyword_only_args ______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ FunctionNodeTest.test_four_args ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ FunctionNodeTest.test_func_instance_attr ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FunctionNodeTest.test_func_is_bound ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ FunctionNodeTest.test_igetattr ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ FunctionNodeTest.test_inference_error _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FunctionNodeTest.test_is_abstract _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ FunctionNodeTest.test_is_abstract_decorated __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FunctionNodeTest.test_is_generator ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ FunctionNodeTest.test_is_method ________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FunctionNodeTest.test_lambda_getattr _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FunctionNodeTest.test_lambda_pytype ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ FunctionNodeTest.test_lambda_qname ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ FunctionNodeTest.test_method_init_subclass __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ FunctionNodeTest.test_multiline_docstring ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________ FunctionNodeTest.test_multiline_docstring_async ________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ FunctionNodeTest.test_navigation _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ FunctionNodeTest.test_no_returns_is_implicitly_none ______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________ FunctionNodeTest.test_only_raises_is_not_implicitly_none ___________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ FunctionNodeTest.test_positional_only_argnames ________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________ FunctionNodeTest.test_return_annotation_is_not_the_last ____________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ FunctionNodeTest.test_return_nothing _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ FunctionNodeTest.test_singleline_docstring __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ FunctionNodeTest.test_special_attributes ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________ FunctionNodeTest.test_type_builtin_descriptor_subclasses ___________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ FunctionNodeTest.test_without_docstring ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ ClassNodeTest.test__bases__attribute _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ClassNodeTest.test__mro__attribute ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_add_metaclass _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_all_ancestors_need_slots __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________________ ClassNodeTest.test_ancestors _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ClassNodeTest.test_class_extra_decorators ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________ ClassNodeTest.test_class_extra_decorators_frame_is_not_class _________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _ ClassNodeTest.test_class_extra_decorators_only_assignment_names_are_considered _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____ ClassNodeTest.test_class_extra_decorators_only_callfunc_are_considered ____ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____ ClassNodeTest.test_class_extra_decorators_only_same_name_considered ______ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_class_getattr _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ClassNodeTest.test_class_keywords _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ClassNodeTest.test_classmethod_attributes ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_cls_special_attributes_1 __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_cls_special_attributes_2 __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ClassNodeTest.test_dict_interface _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ ClassNodeTest.test_duplicate_bases_namedtuple _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______ ClassNodeTest.test_extra_decorators_only_class_level_assignments _______ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________ ClassNodeTest.test_function_with_decorator_lineno _______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________ ClassNodeTest.test_generator_from_infer_call_result_parent __________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ClassNodeTest.test_getattr_from_grandpa ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_getattr_method_transform __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________ ClassNodeTest.test_getattr_with_enpty_annassign ________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_has_dynamic_getattr ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_implicit_metaclass _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_implicit_metaclass_lookup _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_inner_classes _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ClassNodeTest.test_instance_attr_ancestors __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________ ClassNodeTest.test_instance_bound_method_lambdas _______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________ ClassNodeTest.test_instance_bound_method_lambdas_2 ______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ ClassNodeTest.test_instance_getattr ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ ClassNodeTest.test_instance_getattr_with_class_attr ______________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ ClassNodeTest.test_instance_special_attributes ________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ ClassNodeTest.test_kite_graph _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ClassNodeTest.test_local_attr_ancestors ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ClassNodeTest.test_local_attr_invalid_mro ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ClassNodeTest.test_local_attr_mro _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ClassNodeTest.test_metaclass_error ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ ClassNodeTest.test_metaclass_lookup ______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ ClassNodeTest.test_metaclass_lookup_inference_errors _____________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________ ClassNodeTest.test_metaclass_lookup_using_same_class _____________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ______________________ ClassNodeTest.test_metaclass_type _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_metaclass_yes_leak _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________________ ClassNodeTest.test_methods __________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________________ ClassNodeTest.test_mro ____________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_1 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_2 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_3 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_4 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_5 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_6 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _______________________ ClassNodeTest.test_mro_generic_7 _______________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_mro_generic_error_1 ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_mro_generic_error_2 ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ClassNodeTest.test_mro_typing_extensions ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ ClassNodeTest.test_mro_with_attribute_classes _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_mro_with_factories _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_multiline_docstring ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________________ ClassNodeTest.test_navigation _________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ________________ ClassNodeTest.test_no_infinite_metaclass_loop _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________ ClassNodeTest.test_no_infinite_metaclass_loop_with_redefine __________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_nonregr_infer_callresult __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ClassNodeTest.test_singleline_docstring ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________________ ClassNodeTest.test_slots ___________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________ ClassNodeTest.test_slots_added_dynamically_still_inferred ___________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_slots_empty_list_of_slots _________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ____________________ ClassNodeTest.test_slots_for_dict_keys ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _________________ ClassNodeTest.test_slots_taken_from_parents __________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________________ ClassNodeTest.test_type ____________________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError ___________________ ClassNodeTest.test_type_three_arguments ____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError __________________ ClassNodeTest.test_with_invalid_metaclass ___________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError _____________________ ClassNodeTest.test_without_docstring _____________________ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: > node, parser_module = _parse_string( data, type_comments=True, modname=modname ) astroid/builder.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ astroid/builder.py:477: in _parse_string parsed = parser_module.parse( astroid/_ast.py:29: in parse return ast.parse(string, filename=filename, type_comments=type_comments) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n\n' filename = 'data.module', mode = 'exec' def parse(source, filename='', mode='exec', *, type_comments=False, feature_version=None, optimize=-1): """ Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. """ flags = PyCF_ONLY_AST if optimize > 0: flags |= PyCF_OPTIMIZED_AST if type_comments: flags |= PyCF_TYPE_COMMENTS if feature_version is None: feature_version = -1 elif isinstance(feature_version, tuple): major, minor = feature_version # Should be a 2-tuple. if major != 3: raise ValueError(f"Unsupported major version: {major}") feature_version = minor # Else it should be an int giving the minor version for 3.x. > return compile(source, filename, mode, flags, _feature_version=feature_version, optimize=optimize) E File "data.module", line 62 E SyntaxError: 'return' in a 'finally' block /usr/lib64/python3.14/ast.py:46: SyntaxError The above exception was the direct cause of the following exception: self = def setUp(self) -> None: super().setUp() > self.module = resources.build_file("data/module.py", "data.module") tests/test_scoped_nodes.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/resources.py:23: in build_file return builder.AstroidBuilder().file_build(find(path), modname) astroid/builder.py:144: in file_build module, builder = self._data_build(data, modname, path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...= a and (b or c)\n else:\n c = a and b or d\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' modname = 'data.module' path = '/builddir/build/BUILD/python-astroid-3.3.8-build/astroid-3.3.8/tests/testdata/python3/data/module.py' def _data_build( self, data: str, modname: str, path: str | None ) -> tuple[nodes.Module, rebuilder.TreeRebuilder]: """Build tree node from data and add some informations.""" try: node, parser_module = _parse_string( data, type_comments=True, modname=modname ) except (TypeError, ValueError, SyntaxError) as exc: > raise AstroidSyntaxError( "Parsing Python code failed:\n{error}", source=data, modname=modname, path=path, error=exc, ) from exc E astroid.exceptions.AstroidSyntaxError: Parsing Python code failed: E 'return' in a 'finally' block (data.module, line 62) astroid/builder.py:185: AstroidSyntaxError =========================== short test summary info ============================ FAILED tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable_3 FAILED tests/brain/test_brain.py::TypingBrain::test_has_dunder_args - Asserti... FAILED tests/brain/test_brain.py::TypingBrain::test_typing_object_notsubscriptable_3 FAILED tests/brain/test_brain.py::TypingBrain::test_typing_types - AssertionE... FAILED tests/brain/test_pathlib.py::test_inference_parents - AssertionError: ... FAILED tests/brain/test_pathlib.py::test_inference_parents_subscript_index - ... FAILED tests/test_builder.py::FileBuildTest::test_class_base_props - astroid.... FAILED tests/test_builder.py::FileBuildTest::test_class_basenames - astroid.e... FAILED tests/test_builder.py::FileBuildTest::test_class_instance_attrs - astr... FAILED tests/test_builder.py::FileBuildTest::test_class_locals - astroid.exce... FAILED tests/test_builder.py::FileBuildTest::test_function_base_props - astro... FAILED tests/test_builder.py::FileBuildTest::test_function_locals - astroid.e... FAILED tests/test_builder.py::FileBuildTest::test_method_base_props - astroid... FAILED tests/test_builder.py::FileBuildTest::test_method_locals - astroid.exc... FAILED tests/test_builder.py::FileBuildTest::test_module_base_props - astroid... FAILED tests/test_builder.py::FileBuildTest::test_module_locals - astroid.exc... FAILED tests/test_builder.py::FileBuildTest::test_unknown_encoding - astroid.... FAILED tests/test_inference.py::InferenceTest::test_binary_op_or_union_type FAILED tests/test_lookup.py::LookupTest::test_builtin_lookup - astroid.except... FAILED tests/test_lookup.py::LookupTest::test_class - astroid.exceptions.Astr... FAILED tests/test_lookup.py::LookupTest::test_class_ancestor_name - astroid.e... FAILED tests/test_lookup.py::LookupTest::test_class_in_function - astroid.exc... FAILED tests/test_lookup.py::LookupTest::test_class_variables - astroid.excep... FAILED tests/test_lookup.py::LookupTest::test_decorator_arguments_lookup - as... FAILED tests/test_lookup.py::LookupTest::test_dict_comp_nested - astroid.exce... FAILED tests/test_lookup.py::LookupTest::test_dict_comps - astroid.exceptions... FAILED tests/test_lookup.py::LookupTest::test_explicit___name__ - astroid.exc... FAILED tests/test_lookup.py::LookupTest::test_function_argument_with_default FAILED tests/test_lookup.py::LookupTest::test_function_module_special - astro... FAILED tests/test_lookup.py::LookupTest::test_function_nested - astroid.excep... FAILED tests/test_lookup.py::LookupTest::test_generator_attributes - astroid.... FAILED tests/test_lookup.py::LookupTest::test_global_delete - astroid.excepti... FAILED tests/test_lookup.py::LookupTest::test_inner_classes - astroid.excepti... FAILED tests/test_lookup.py::LookupTest::test_inner_decorator_member_lookup FAILED tests/test_lookup.py::LookupTest::test_lambda_nested - astroid.excepti... FAILED tests/test_lookup.py::LookupTest::test_limit - astroid.exceptions.Astr... FAILED tests/test_lookup.py::LookupTest::test_list_comp_nested - astroid.exce... FAILED tests/test_lookup.py::LookupTest::test_list_comp_target - astroid.exce... FAILED tests/test_lookup.py::LookupTest::test_list_comps - astroid.exceptions... FAILED tests/test_lookup.py::LookupTest::test_loopvar_hiding - astroid.except... FAILED tests/test_lookup.py::LookupTest::test_method - astroid.exceptions.Ast... FAILED tests/test_lookup.py::LookupTest::test_module - astroid.exceptions.Ast... FAILED tests/test_lookup.py::LookupTest::test_set_comp_closure - astroid.exce... FAILED tests/test_lookup.py::LookupTest::test_set_comp_nested - astroid.excep... FAILED tests/test_lookup.py::LookupTest::test_set_comps - astroid.exceptions.... FAILED tests/test_lookup.py::LookupTest::test_static_method_lookup - astroid.... FAILED tests/test_nodes.py::AsStringTest::test_module_as_string - astroid.exc... FAILED tests/test_nodes.py::ImportNodeTest::test_absolute_import - astroid.ex... FAILED tests/test_nodes.py::ImportNodeTest::test_as_string - astroid.exceptio... FAILED tests/test_nodes.py::ImportNodeTest::test_bad_import_inference - astro... FAILED tests/test_nodes.py::ImportNodeTest::test_conditional - astroid.except... FAILED tests/test_nodes.py::ImportNodeTest::test_conditional_import - astroid... FAILED tests/test_nodes.py::ImportNodeTest::test_from_self_resolve - astroid.... FAILED tests/test_nodes.py::ImportNodeTest::test_import_self_resolve - astroi... FAILED tests/test_nodes.py::ImportNodeTest::test_more_absolute_import - astro... FAILED tests/test_nodes.py::ImportNodeTest::test_real_name - astroid.exceptio... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_comment_before_docstring FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_dict_interface - astr... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_file_stream_api - ast... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_file_stream_in_memory FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_file_stream_physical FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_getattr - astroid.exc... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_import_1 - astroid.ex... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_import_2 - astroid.ex... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_import_unavailable_module FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_module_getattr - astr... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_multiline_docstring FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_public_names - astroi... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_relative_to_absolute_name FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_relative_to_absolute_name_beyond_top_level FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_singleline_docstring FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_special_attributes - ... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_stream_api - astroid.... FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_wildcard_import_names FAILED tests/test_scoped_nodes.py::ModuleNodeTest::test_without_docstring - a... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_abstract_methods_are_not_implicitly_none FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_argnames - astroid.... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_argnames_lambda - a... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_decorator_builtin_descriptors FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_default_value - ast... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_dict_interface - as... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_display_type - astr... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_docstring_special_cases FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_dunder_class_local_to_classmethod FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_dunder_class_local_to_function FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_dunder_class_local_to_method FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_format_args - astro... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_format_args_keyword_only_args FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_four_args - astroid... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_func_instance_attr FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_func_is_bound - ast... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_igetattr - astroid.... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_inference_error - a... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_is_abstract - astro... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_is_abstract_decorated FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_is_generator - astr... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_is_method - astroid... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_lambda_getattr - as... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_lambda_pytype - ast... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_lambda_qname - astr... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_method_init_subclass FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_multiline_docstring FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_multiline_docstring_async FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_navigation - astroi... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_no_returns_is_implicitly_none FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_only_raises_is_not_implicitly_none FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_positional_only_argnames FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_return_annotation_is_not_the_last FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_return_nothing - as... FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_singleline_docstring FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_special_attributes FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_type_builtin_descriptor_subclasses FAILED tests/test_scoped_nodes.py::FunctionNodeTest::test_without_docstring FAILED tests/test_scoped_nodes.py::ClassNodeTest::test__bases__attribute - as... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test__mro__attribute - astr... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_add_metaclass - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_all_ancestors_need_slots FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_ancestors - astroid.ex... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_frame_is_not_class FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_only_assignment_names_are_considered FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_only_callfunc_are_considered FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_extra_decorators_only_same_name_considered FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_getattr - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_class_keywords - astro... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_classmethod_attributes FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_cls_special_attributes_1 FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_cls_special_attributes_2 FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_dict_interface - astro... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_duplicate_bases_namedtuple FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_extra_decorators_only_class_level_assignments FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_function_with_decorator_lineno FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_generator_from_infer_call_result_parent FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_getattr_from_grandpa FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_getattr_method_transform FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_getattr_with_enpty_annassign FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_has_dynamic_getattr - ... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_implicit_metaclass - a... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_implicit_metaclass_lookup FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_inner_classes - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_instance_attr_ancestors FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_instance_bound_method_lambdas FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_instance_bound_method_lambdas_2 FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_instance_getattr - ast... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_instance_getattr_with_class_attr FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_instance_special_attributes FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_kite_graph - astroid.e... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_local_attr_ancestors FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_local_attr_invalid_mro FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_local_attr_mro - astro... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_error - astr... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_lookup - ast... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_lookup_inference_errors FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_lookup_using_same_class FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_type - astro... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_metaclass_yes_leak - a... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_methods - astroid.exce... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro - astroid.exceptio... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_1 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_2 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_3 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_4 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_5 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_6 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_7 - astroi... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_error_1 - ... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_generic_error_2 - ... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_typing_extensions FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_with_attribute_classes FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_mro_with_factories - a... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_multiline_docstring - ... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_navigation - astroid.e... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_no_infinite_metaclass_loop FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_no_infinite_metaclass_loop_with_redefine FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_nonregr_infer_callresult FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_singleline_docstring FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_slots - astroid.except... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_slots_added_dynamically_still_inferred FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_slots_empty_list_of_slots FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_slots_for_dict_keys - ... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_slots_taken_from_parents FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_type - astroid.excepti... FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_type_three_arguments FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_with_invalid_metaclass FAILED tests/test_scoped_nodes.py::ClassNodeTest::test_without_docstring - as... ========== 185 failed, 1430 passed, 78 skipped, 15 xfailed in 34.40s =========== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Nea7hx (%check) Bad exit status from /var/tmp/rpm-tmp.Nea7hx (%check) Finish: rpmbuild python-astroid-3.3.8-2.fc43.src.rpm Finish: build phase for python-astroid-3.3.8-2.fc43.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1747421230.783866/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names ERROR: Exception(/var/lib/copr-rpmbuild/results/python-astroid-3.3.8-2.fc43.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 49 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M a87f5359afb241909da924cde912c331 -D /var/lib/mock/fedora-rawhide-x86_64-1747421230.783866/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.tqq3jzb7:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -ba --noprep --target x86_64 --nodeps /builddir/build/originals/python-astroid.spec' Copr build error: Build failed