Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-asttokens.spec'], chrootPath='/var/lib/mock/f39-build-1717057-41229/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-asttokens.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1700265600 Wrote: /builddir/build/SRPMS/python-asttokens-2.4.0-1.fc39.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-asttokens.spec'], chrootPath='/var/lib/mock/f39-build-1717057-41229/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-asttokens.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1700265600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4eNoPs + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf asttokens-2.4.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/asttokens-2.4.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd asttokens-2.4.0 + rm -rf /builddir/build/BUILD/asttokens-2.4.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/asttokens-2.4.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'python-asttokens-2.4.0 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + git tag 2.4.0 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.kIdwHH + umask 022 + cd /builddir/build/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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/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=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd asttokens-2.4.0 + 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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' /usr/lib/python3.12/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) /usr/lib/python3.12/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) /usr/lib/python3.12/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) running build running build_py creating build creating build/lib creating build/lib/asttokens copying asttokens/version.py -> build/lib/asttokens copying asttokens/util.py -> build/lib/asttokens copying asttokens/asttokens.py -> build/lib/asttokens copying asttokens/mark_tokens.py -> build/lib/asttokens copying asttokens/line_numbers.py -> build/lib/asttokens copying asttokens/astroid_compat.py -> build/lib/asttokens copying asttokens/__init__.py -> build/lib/asttokens copying asttokens/py.typed -> build/lib/asttokens + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.36CCVv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch ++ dirname /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch + 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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/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=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd asttokens-2.4.0 + 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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch --prefix /usr /usr/lib/python3.12/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) /usr/lib/python3.12/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) /usr/lib/python3.12/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr creating /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib creating /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/version.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/util.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/asttokens.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/mark_tokens.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/line_numbers.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/astroid_compat.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/py.typed -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens copying build/lib/asttokens/__init__.py -> /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/version.py to version.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/util.py to util.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/asttokens.py to asttokens.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/mark_tokens.py to mark_tokens.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/line_numbers.py to line_numbers.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/astroid_compat.py to astroid_compat.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens/__init__.py to __init__.cpython-312.pyc writing byte-compilation script '/tmp/tmpb1zplyim.py' /usr/bin/python3 /tmp/tmpb1zplyim.py removing /tmp/tmpb1zplyim.py running install_egg_info running egg_info creating asttokens.egg-info writing asttokens.egg-info/PKG-INFO writing dependency_links to asttokens.egg-info/dependency_links.txt writing requirements to asttokens.egg-info/requires.txt writing top-level names to asttokens.egg-info/top_level.txt writing manifest file 'asttokens.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'asttokens.egg-info/SOURCES.txt' Copying asttokens.egg-info to /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12/site-packages/asttokens-2.4.0-py3.12.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 2.4.0-1.fc39 --unique-debug-suffix -2.4.0-1.fc39.noarch --unique-debug-src-base python-asttokens-2.4.0-1.fc39.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/asttokens-2.4.0 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /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 + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-asttokens-2.4.0-1.fc39.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.AssgLK + umask 022 + cd /builddir/build/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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/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=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd asttokens-2.4.0 + pytest-3 tests/ -v -k 'not test_fixture9 and not test_sys_modules' ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.2.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/asttokens-2.4.0 configfile: setup.cfg collecting ... collected 116 items / 4 deselected / 112 selected tests/test_astroid.py::TestAstroid::test_adjacent_joined_strings PASSED [ 0%] tests/test_astroid.py::TestAstroid::test_adjacent_strings PASSED [ 1%] tests/test_astroid.py::TestAstroid::test_assert_nodes_equal PASSED [ 2%] tests/test_astroid.py::TestAstroid::test_assignment_expressions PASSED [ 3%] tests/test_astroid.py::TestAstroid::test_async_def PASSED [ 4%] tests/test_astroid.py::TestAstroid::test_async_for_and_with PASSED [ 5%] tests/test_astroid.py::TestAstroid::test_await PASSED [ 6%] tests/test_astroid.py::TestAstroid::test_bad_tokenless_types PASSED [ 7%] tests/test_astroid.py::TestAstroid::test_calling_lambdas PASSED [ 8%] tests/test_astroid.py::TestAstroid::test_complex_numbers PASSED [ 8%] tests/test_astroid.py::TestAstroid::test_complex_slice_and_parens FAILED [ 9%] tests/test_astroid.py::TestAstroid::test_comprehensions FAILED [ 10%] tests/test_astroid.py::TestAstroid::test_conditional_expr PASSED [ 11%] tests/test_astroid.py::TestAstroid::test_decorators PASSED [ 12%] tests/test_astroid.py::TestAstroid::test_deep_recursion SKIPPED (ast...) [ 13%] tests/test_astroid.py::TestAstroid::test_del_dict PASSED [ 14%] tests/test_astroid.py::TestAstroid::test_dict_merge PASSED [ 15%] tests/test_astroid.py::TestAstroid::test_dict_order PASSED [ 16%] tests/test_astroid.py::TestAstroid::test_fixture1 PASSED [ 16%] tests/test_astroid.py::TestAstroid::test_fixture10 PASSED [ 17%] tests/test_astroid.py::TestAstroid::test_fixture11 PASSED [ 18%] tests/test_astroid.py::TestAstroid::test_fixture12 PASSED [ 19%] tests/test_astroid.py::TestAstroid::test_fixture13 PASSED [ 20%] tests/test_astroid.py::TestAstroid::test_fixture2 PASSED [ 21%] tests/test_astroid.py::TestAstroid::test_fixture3 FAILED [ 22%] tests/test_astroid.py::TestAstroid::test_fixture4 FAILED [ 23%] tests/test_astroid.py::TestAstroid::test_fixture5 PASSED [ 24%] tests/test_astroid.py::TestAstroid::test_fixture6 PASSED [ 25%] tests/test_astroid.py::TestAstroid::test_fixture7 FAILED [ 25%] tests/test_astroid.py::TestAstroid::test_fixture8 FAILED [ 26%] tests/test_astroid.py::TestAstroid::test_fstrings FAILED [ 27%] tests/test_astroid.py::TestAstroid::test_keyword_arg_only PASSED [ 28%] tests/test_astroid.py::TestAstroid::test_mark_tokens_multiline FAILED [ 29%] tests/test_astroid.py::TestAstroid::test_mark_tokens_simple FAILED [ 30%] tests/test_astroid.py::TestAstroid::test_match_case PASSED [ 31%] tests/test_astroid.py::TestAstroid::test_nonascii PASSED [ 32%] tests/test_astroid.py::TestAstroid::test_one_line_if_elif PASSED [ 33%] tests/test_astroid.py::TestAstroid::test_paren_attr PASSED [ 33%] tests/test_astroid.py::TestAstroid::test_parens_around_func FAILED [ 34%] tests/test_astroid.py::TestAstroid::test_print_function FAILED [ 35%] tests/test_astroid.py::TestAstroid::test_return_annotation PASSED [ 36%] tests/test_astroid.py::TestAstroid::test_slices FAILED [ 37%] tests/test_astroid.py::TestAstroid::test_splat PASSED [ 38%] tests/test_astroid.py::TestAstroid::test_statements_with_semicolons PASSED [ 39%] tests/test_astroid.py::TestAstroid::test_trailing_commas FAILED [ 40%] tests/test_astroid.py::TestAstroid::test_tuples FAILED [ 41%] tests/test_astroid.py::TestAstroid::test_with PASSED [ 41%] tests/test_asttokens.py::TestASTTokens::test_coding_declaration PASSED [ 42%] tests/test_asttokens.py::TestASTTokens::test_given_existing_tokens PASSED [ 43%] tests/test_asttokens.py::TestASTTokens::test_token_methods PASSED [ 44%] tests/test_asttokens.py::TestASTTokens::test_tokenizing PASSED [ 45%] tests/test_asttokens.py::TestASTTokens::test_unicode_offsets PASSED [ 46%] tests/test_asttokens.py::test_filename PASSED [ 47%] tests/test_asttokens.py::test_doesnt_have_location PASSED [ 48%] tests/test_line_numbers.py::TestLineNumbers::test_line_numbers PASSED [ 49%] tests/test_line_numbers.py::TestLineNumbers::test_unicode PASSED [ 50%] tests/test_line_numbers.py::TestLineNumbers::test_utf8_offsets PASSED [ 50%] tests/test_mark_tokens.py::TestMarkTokens::test_adjacent_joined_strings PASSED [ 51%] tests/test_mark_tokens.py::TestMarkTokens::test_adjacent_strings PASSED [ 52%] tests/test_mark_tokens.py::TestMarkTokens::test_assert_nodes_equal PASSED [ 53%] tests/test_mark_tokens.py::TestMarkTokens::test_assignment_expressions PASSED [ 54%] tests/test_mark_tokens.py::TestMarkTokens::test_async_def PASSED [ 55%] tests/test_mark_tokens.py::TestMarkTokens::test_async_for_and_with PASSED [ 56%] tests/test_mark_tokens.py::TestMarkTokens::test_await PASSED [ 57%] tests/test_mark_tokens.py::TestMarkTokens::test_bad_tokenless_types PASSED [ 58%] tests/test_mark_tokens.py::TestMarkTokens::test_calling_lambdas PASSED [ 58%] tests/test_mark_tokens.py::TestMarkTokens::test_complex_numbers PASSED [ 59%] tests/test_mark_tokens.py::TestMarkTokens::test_complex_slice_and_parens PASSED [ 60%] tests/test_mark_tokens.py::TestMarkTokens::test_comprehensions PASSED [ 61%] tests/test_mark_tokens.py::TestMarkTokens::test_conditional_expr PASSED [ 62%] tests/test_mark_tokens.py::TestMarkTokens::test_decorators PASSED [ 63%] tests/test_mark_tokens.py::TestMarkTokens::test_deep_recursion PASSED [ 64%] tests/test_mark_tokens.py::TestMarkTokens::test_del_dict PASSED [ 65%] tests/test_mark_tokens.py::TestMarkTokens::test_dict_merge PASSED [ 66%] tests/test_mark_tokens.py::TestMarkTokens::test_dict_order PASSED [ 66%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture1 PASSED [ 67%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture10 PASSED [ 68%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture11 PASSED [ 69%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture12 PASSED [ 70%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture13 PASSED [ 71%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture2 PASSED [ 72%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture3 PASSED [ 73%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture4 PASSED [ 74%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture5 PASSED [ 75%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture6 PASSED [ 75%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture7 PASSED [ 76%] tests/test_mark_tokens.py::TestMarkTokens::test_fixture8 PASSED [ 77%] tests/test_mark_tokens.py::TestMarkTokens::test_fstrings PASSED [ 78%] tests/test_mark_tokens.py::TestMarkTokens::test_keyword_arg_only PASSED [ 79%] tests/test_mark_tokens.py::TestMarkTokens::test_mark_tokens_multiline PASSED [ 80%] tests/test_mark_tokens.py::TestMarkTokens::test_mark_tokens_simple PASSED [ 81%] tests/test_mark_tokens.py::TestMarkTokens::test_match_case PASSED [ 82%] tests/test_mark_tokens.py::TestMarkTokens::test_nonascii PASSED [ 83%] tests/test_mark_tokens.py::TestMarkTokens::test_one_line_if_elif PASSED [ 83%] tests/test_mark_tokens.py::TestMarkTokens::test_paren_attr PASSED [ 84%] tests/test_mark_tokens.py::TestMarkTokens::test_parens_around_func PASSED [ 85%] tests/test_mark_tokens.py::TestMarkTokens::test_print_function PASSED [ 86%] tests/test_mark_tokens.py::TestMarkTokens::test_return_annotation PASSED [ 87%] tests/test_mark_tokens.py::TestMarkTokens::test_slices PASSED [ 88%] tests/test_mark_tokens.py::TestMarkTokens::test_splat PASSED [ 89%] tests/test_mark_tokens.py::TestMarkTokens::test_statements_with_semicolons PASSED [ 90%] tests/test_mark_tokens.py::TestMarkTokens::test_trailing_commas PASSED [ 91%] tests/test_mark_tokens.py::TestMarkTokens::test_tuples PASSED [ 91%] tests/test_mark_tokens.py::TestMarkTokens::test_with PASSED [ 92%] tests/test_tokenless.py::TestTokenless::test_get_text_tokenless PASSED [ 93%] tests/test_tokenless.py::TestTokenless::test_nested_fstrings PASSED [ 94%] tests/test_tokenless.py::TestFstringPositionsWork::test_fstring_positions_work PASSED [ 95%] tests/test_util.py::TestUtil::test_replace PASSED [ 96%] tests/test_util.py::TestUtil::test_walk_ast PASSED [ 97%] tests/test_util.py::TestUtil::test_walk_astroid PASSED [ 98%] tests/test_util.py::test_expect_token PASSED [ 99%] tests/test_util.py::test_combine_tokens PASSED [100%] =================================== FAILURES =================================== __________________ TestAstroid.test_complex_slice_and_parens ___________________ self = def test_complex_slice_and_parens(self): source = 'f((x)[:, 0])' > self.create_mark_checker(source) tests/test_mark_tokens.py:624: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string=':', start=(1, 6), end=(1, 7), line='f((x)[:, 0])', index=6, startpos=6, endpos=7) last_token = Token(type=2, string='0', start=(1, 9), end=(1, 10), line='f((x)[:, 0])', index=8, startpos=9, endpos=10) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError _______________________ TestAstroid.test_comprehensions ________________________ self = def test_comprehensions(self): # See https://bitbucket.org/plas/thonny/issues/8/range-marker-doesnt-work-correctly-with for source in ( "[(key, val) for key, val in ast.iter_fields(node)]", "((key, val) for key, val in ast.iter_fields(node))", "{(key, val) for key, val in ast.iter_fields(node)}", "{key: val for key, val in ast.iter_fields(node)}", "[[c for c in key] for key, val in ast.iter_fields(node)]"): > self.create_mark_checker(source) tests/test_mark_tokens.py:396: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(1, 1), end=(1, 2), line='[(key, val) for key, val in ast.iter_fields(node)]', index=1, startpos=1, endpos=2) last_token = Token(type=55, string=')', start=(1, 10), end=(1, 11), line='[(key, val) for key, val in ast.iter_fields(node)]', index=5, startpos=10, endpos=11) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError __________________________ TestAstroid.test_fixture3 ___________________________ self = > def test_fixture3(self): self.verify_fixture_file('astroid/all.py') tests/test_mark_tokens.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:139: in verify_fixture_file m = self.create_mark_checker(source, verify=False) tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=3, string="'Aaa'", start=(9, 10), end=(9, 15), line="__all__ = 'Aaa', '_bla', 'name'\n", index=32, startpos=85, endpos=90) last_token = Token(type=3, string="'name'", start=(9, 25), end=(9, 31), line="__all__ = 'Aaa', '_bla', 'name'\n", index=36, startpos=100, endpos=106) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError __________________________ TestAstroid.test_fixture4 ___________________________ self = > def test_fixture4(self): self.verify_fixture_file('astroid/clientmodule_test.py') tests/test_mark_tokens.py:176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:139: in verify_fixture_file m = self.create_mark_checker(source, verify=False) tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(8, 21), end=(8, 22), line=' __implements__ = (IFace,)\n', index=29, startpos=194, endpos=195) last_token = Token(type=55, string=')', start=(8, 28), end=(8, 29), line=' __implements__ = (IFace,)\n', index=32, startpos=201, endpos=202) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError __________________________ TestAstroid.test_fixture7 ___________________________ self = > def test_fixture7(self): self.verify_fixture_file('astroid/format.py') tests/test_mark_tokens.py:179: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:139: in verify_fixture_file m = self.create_mark_checker(source, verify=False) tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=1, string='aaaa', start=(26, 4), end=(26, 8), line=' aaaa,bbbb = 1,2\n', index=93, startpos=320, endpos=324) last_token = Token(type=1, string='bbbb', start=(26, 9), end=(26, 13), line=' aaaa,bbbb = 1,2\n', index=95, startpos=325, endpos=329) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError __________________________ TestAstroid.test_fixture8 ___________________________ self = > def test_fixture8(self): self.verify_fixture_file('astroid/module.py') tests/test_mark_tokens.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:139: in verify_fixture_file m = self.create_mark_checker(source, verify=False) tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(34, 15), end=(34, 16), line=' except (NameError, TypeError):\n', index=143, startpos=631, endpos=632) last_token = Token(type=55, string=')', start=(34, 36), end=(34, 37), line=' except (NameError, TypeError):\n', index=147, startpos=652, endpos=653) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError __________________________ TestAstroid.test_fstrings ___________________________ self = def test_fstrings(self): for source in ( '(f"He said his name is {name!r}.",)', "f'{function(kwarg=24)}'", 'a = f"""result: {value:{width}.{precision}}"""', """[f"abc {a['x']} def"]""", "def t():\n return f'{function(kwarg=24)}'"): > self.create_mark_checker(source) tests/test_mark_tokens.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(1, 0), end=(1, 1), line='(f"He said his name is {name!r}.",)', index=0, startpos=0, endpos=1) last_token = Token(type=55, string=')', start=(1, 34), end=(1, 35), line='(f"He said his name is {name!r}.",)', index=11, startpos=34, endpos=35) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError ____________________ TestAstroid.test_mark_tokens_multiline ____________________ self = def test_mark_tokens_multiline(self): source = ( """( # line1 a, # line2 b + # line3 c + # line4 d # line5 )""") > m = self.create_mark_checker(source) tests/test_mark_tokens.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(1, 0), end=(1, 1), line='( # line1\n', index=0, startpos=0, endpos=1) last_token = Token(type=55, string=')', start=(6, 0), end=(6, 1), line=')', index=18, startpos=77, endpos=78) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError _____________________ TestAstroid.test_mark_tokens_simple ______________________ self = def test_mark_tokens_simple(self): source = tools.read_fixture('astroid', 'module.py') > m = self.create_mark_checker(source) tests/test_mark_tokens.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(34, 15), end=(34, 16), line=' except (NameError, TypeError):\n', index=143, startpos=631, endpos=632) last_token = Token(type=55, string=')', start=(34, 36), end=(34, 37), line=' except (NameError, TypeError):\n', index=147, startpos=652, endpos=653) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError _____________________ TestAstroid.test_parens_around_func ______________________ self = def test_parens_around_func(self): source = textwrap.dedent( ''' foo() (foo)() (lambda: 0)() (lambda: ())() (foo)((1)) (lambda: ())((2)) x = (obj.attribute.get_callback() or default_callback)() ''') > m = self.create_mark_checker(source) tests/test_mark_tokens.py:610: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(5, 9), end=(5, 10), line='(lambda: ())()\n', index=22, startpos=38, endpos=39) last_token = Token(type=55, string=')', start=(5, 10), end=(5, 11), line='(lambda: ())()\n', index=23, startpos=39, endpos=40) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError _______________________ TestAstroid.test_print_function ________________________ self = def test_print_function(self): # This testcase imports print as function (using from __future__). Check that we can parse it. # verify_all_nodes doesn't work on Python 2 because the print() call parsed in isolation # is viewed as a Print node since it doesn't see the future import source = tools.read_fixture('astroid/nonregr.py') > m = self.create_mark_checker(source, verify=six.PY3) tests/test_mark_tokens.py:278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=1, string='i', start=(11, 18), end=(11, 19), line=' yield i, val\n', index=39, startpos=200, endpos=201) last_token = Token(type=1, string='val', start=(11, 21), end=(11, 24), line=' yield i, val\n', index=41, startpos=203, endpos=206) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError ___________________________ TestAstroid.test_slices ____________________________ self = def test_slices(self): # Make sure we don't fail on parsing slices of the form `foo[4:]`. source = "(foo.Area_Code, str(foo.Phone)[:3], str(foo.Phone)[3:], foo[:], bar[::2, :], bar2[:, ::2], [a[:]][::-1])" > m = self.create_mark_checker(source) tests/test_mark_tokens.py:239: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string=':', start=(1, 68), end=(1, 69), line='(foo.Area_Code, str(foo.Phone)[:3], str(foo.Phone)[3:], foo[:], bar[::2, :], bar2[:, ::2], [a[:]][::-1])', index=34, startpos=68, endpos=69) last_token = Token(type=2, string='2', start=(1, 70), end=(1, 71), line='(foo.Area_Code, str(foo.Phone)[:3], str(foo.Phone)[3:], foo[:], bar[::2, :], bar2[:, ::2], [a[:]][::-1])', index=36, startpos=70, endpos=71) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError _______________________ TestAstroid.test_trailing_commas _______________________ self = def test_trailing_commas(self): # Make sure we handle trailing commas on comma-separated structures (e.g. tuples, sets, etc.) for source in ( "(a,b,)", "[c,d,]", "{e,f,}", "{h:1,i:2,}"): > self.create_mark_checker(source) tests/test_mark_tokens.py:405: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=55, string='(', start=(1, 0), end=(1, 1), line='(a,b,)', index=0, startpos=0, endpos=1) last_token = Token(type=55, string=')', start=(1, 5), end=(1, 6), line='(a,b,)', index=5, startpos=5, endpos=6) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError ___________________________ TestAstroid.test_tuples ____________________________ self = def test_tuples(self): def get_tuples(code): m = self.create_mark_checker(code) return [m.atok.get_text(n) for n in m.all_nodes if n.__class__.__name__ == "Tuple"] > self.assertEqual(get_tuples("a,"), ["a,"]) tests/test_mark_tokens.py:412: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:409: in get_tuples m = self.create_mark_checker(code) tests/test_mark_tokens.py:38: in create_mark_checker atok = self.create_asttokens(source) tests/test_astroid.py:42: in create_asttokens return ASTTokens(source, tree=tree) asttokens/asttokens.py:130: in __init__ self.mark_tokens(self._tree) asttokens/asttokens.py:142: in mark_tokens MarkTokens(self).visit_tree(root_node) asttokens/mark_tokens.py:61: in visit_tree util.visit_tree(node, self._visit_before_children, self._visit_after_children) asttokens/util.py:272: in visit_tree ret = postvisit(current, par_value, cast(Optional[Token], value)) asttokens/mark_tokens.py:109: in _visit_after_children nfirst, nlast = self._methods.get(self, node.__class__)(node, first, last) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = first_token = Token(type=1, string='a', start=(1, 0), end=(1, 1), line='a,', index=0, startpos=0, endpos=1) last_token = Token(type=1, string='a', start=(1, 0), end=(1, 1), line='a,', index=0, startpos=0, endpos=1) def visit_tuple(self, node, first_token, last_token): # type: (AstNode, util.Token, util.Token) -> Tuple[util.Token, util.Token] > assert isinstance(node, ast.Tuple) or isinstance(node, nc._BaseContainer) E AttributeError: module 'astroid.nodes' has no attribute '_BaseContainer'. Did you mean: 'BaseContainer'? asttokens/mark_tokens.py:334: AttributeError =========================== short test summary info ============================ FAILED tests/test_astroid.py::TestAstroid::test_complex_slice_and_parens - At... FAILED tests/test_astroid.py::TestAstroid::test_comprehensions - AttributeErr... FAILED tests/test_astroid.py::TestAstroid::test_fixture3 - AttributeError: mo... FAILED tests/test_astroid.py::TestAstroid::test_fixture4 - AttributeError: mo... FAILED tests/test_astroid.py::TestAstroid::test_fixture7 - AttributeError: mo... FAILED tests/test_astroid.py::TestAstroid::test_fixture8 - AttributeError: mo... FAILED tests/test_astroid.py::TestAstroid::test_fstrings - AttributeError: mo... FAILED tests/test_astroid.py::TestAstroid::test_mark_tokens_multiline - Attri... FAILED tests/test_astroid.py::TestAstroid::test_mark_tokens_simple - Attribut... FAILED tests/test_astroid.py::TestAstroid::test_parens_around_func - Attribut... FAILED tests/test_astroid.py::TestAstroid::test_print_function - AttributeErr... FAILED tests/test_astroid.py::TestAstroid::test_slices - AttributeError: modu... FAILED tests/test_astroid.py::TestAstroid::test_trailing_commas - AttributeEr... FAILED tests/test_astroid.py::TestAstroid::test_tuples - AttributeError: modu... = 14 failed, 97 passed, 1 skipped, 4 deselected, 20 warnings in 83.99s (0:01:23) = error: Bad exit status from /var/tmp/rpm-tmp.AssgLK (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.AssgLK (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-asttokens.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-asttokens.spec