Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-82515-4678/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=86400uid=981gid=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-stack-data.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 Wrote: /builddir/build/SRPMS/python-stack-data-0.6.2-5.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-82515-4678/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iLSzaQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf stack_data-0.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/stack_data-0.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd stack_data-0.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/no-typeguard.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.Y0ZYTW + umask 022 + cd /builddir/build/BUILD + cd stack_data-0.6.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r -t Import error: No module named 'toml' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-stack-data-0.6.2-5.ocs23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-82515-4678/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.p2Hjnp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf stack_data-0.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/stack_data-0.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd stack_data-0.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/no-typeguard.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.zswAn1 + umask 022 + cd /builddir/build/BUILD + cd stack_data-0.6.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r -t Handling setuptools>=44 from build-system.requires Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling wheel from build-system.requires Requirement not satisfied: wheel Handling setuptools_scm[toml]>=3.4.3 from build-system.requires Requirement not satisfied: setuptools_scm[toml]>=3.4.3 Exiting dependency generation pass: build backend + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-stack-data-0.6.2-5.ocs23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-82515-4678/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mj1PO1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf stack_data-0.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/stack_data-0.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd stack_data-0.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/no-typeguard.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.UH3nNz + umask 022 + cd /builddir/build/BUILD + cd stack_data-0.6.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r -t Handling setuptools>=44 from build-system.requires Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.37.0) Handling setuptools_scm[toml]>=3.4.3 from build-system.requires Requirement satisfied: setuptools_scm[toml]>=3.4.3 (installed: setuptools_scm 7.1.0) (extras are currently not checked) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.0) Handling setuptools>=44 from get_requires_for_build_wheel Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling setuptools_scm[toml]>=3.4.3 from get_requires_for_build_wheel Requirement satisfied: setuptools_scm[toml]>=3.4.3 (installed: setuptools_scm 7.1.0) (extras are currently not checked) Handling tox-current-env >= 0.0.6 from tox itself Requirement not satisfied: tox-current-env >= 0.0.6 Exiting dependency generation pass: tox itself + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-stack-data-0.6.2-5.ocs23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-82515-4678/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kmF2kx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf stack_data-0.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/stack_data-0.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd stack_data-0.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/no-typeguard.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.khVzsH + umask 022 + cd /builddir/build/BUILD + cd stack_data-0.6.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r -t Handling setuptools>=44 from build-system.requires Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.37.0) Handling setuptools_scm[toml]>=3.4.3 from build-system.requires Requirement satisfied: setuptools_scm[toml]>=3.4.3 (installed: setuptools_scm 7.1.0) (extras are currently not checked) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.0) Handling setuptools>=44 from get_requires_for_build_wheel Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling setuptools_scm[toml]>=3.4.3 from get_requires_for_build_wheel Requirement satisfied: setuptools_scm[toml]>=3.4.3 (installed: setuptools_scm 7.1.0) (extras are currently not checked) Handling tox-current-env >= 0.0.6 from tox itself Requirement satisfied: tox-current-env >= 0.0.6 (installed: tox-current-env 0.0.8) ___________________________________ summary ____________________________________ py310: commands succeeded congratulations :) HOOK STDOUT: running dist_info HOOK STDOUT: writing stack_data.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to stack_data.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to stack_data.egg-info/requires.txt HOOK STDOUT: writing top-level names to stack_data.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'stack_data.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE.txt' HOOK STDOUT: writing manifest file 'stack_data.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/stack_data-0.6.2/stack_data-0.6.2.dist-info' HOOK STDOUT: adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Handling executing (>=1.2.0) from wheel metadata: Requires-Dist Requirement satisfied: executing (>=1.2.0) (installed: executing 1.2.0) Handling asttokens (>=2.1.0) from wheel metadata: Requires-Dist Requirement satisfied: asttokens (>=2.1.0) (installed: asttokens 2.1.0) Handling pure-eval from wheel metadata: Requires-Dist Requirement satisfied: pure-eval (installed: pure-eval 0.2.2) Handling pytest ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: pytest ; extra == 'tests' (installed: pytest 7.1.3) Handling pygments ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: pygments ; extra == 'tests' (installed: pygments 2.16.1) Handling littleutils ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: littleutils ; extra == 'tests' (installed: littleutils 0.2.2) Handling cython ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: cython ; extra == 'tests' (installed: cython 0.29.36) + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-stack-data-0.6.2-5.ocs23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-82515-4678/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.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 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.dVjZSu + umask 022 + cd /builddir/build/BUILD + cd stack_data-0.6.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv stack_data-0.6.2.dist-info/ removed 'stack_data-0.6.2.dist-info/METADATA' removed 'stack_data-0.6.2.dist-info/top_level.txt' removed 'stack_data-0.6.2.dist-info/LICENSE.txt' removed directory 'stack_data-0.6.2.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/OpenCloudOS/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 -r -t Handling setuptools>=44 from build-system.requires Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.37.0) Handling setuptools_scm[toml]>=3.4.3 from build-system.requires Requirement satisfied: setuptools_scm[toml]>=3.4.3 (installed: setuptools_scm 7.1.0) (extras are currently not checked) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.0) Handling setuptools>=44 from get_requires_for_build_wheel Requirement satisfied: setuptools>=44 (installed: setuptools 62.3.2.post20230908) Handling setuptools_scm[toml]>=3.4.3 from get_requires_for_build_wheel Requirement satisfied: setuptools_scm[toml]>=3.4.3 (installed: setuptools_scm 7.1.0) (extras are currently not checked) Handling tox-current-env >= 0.0.6 from tox itself Requirement satisfied: tox-current-env >= 0.0.6 (installed: tox-current-env 0.0.8) ___________________________________ summary ____________________________________ py310: commands succeeded congratulations :) HOOK STDOUT: running dist_info HOOK STDOUT: creating stack_data.egg-info HOOK STDOUT: writing stack_data.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to stack_data.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to stack_data.egg-info/requires.txt HOOK STDOUT: writing top-level names to stack_data.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'stack_data.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'stack_data.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE.txt' HOOK STDOUT: writing manifest file 'stack_data.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/stack_data-0.6.2/stack_data-0.6.2.dist-info' HOOK STDOUT: adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Handling executing (>=1.2.0) from wheel metadata: Requires-Dist Requirement satisfied: executing (>=1.2.0) (installed: executing 1.2.0) Handling asttokens (>=2.1.0) from wheel metadata: Requires-Dist Requirement satisfied: asttokens (>=2.1.0) (installed: asttokens 2.1.0) Handling pure-eval from wheel metadata: Requires-Dist Requirement satisfied: pure-eval (installed: pure-eval 0.2.2) Handling pytest ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: pytest ; extra == 'tests' (installed: pytest 7.1.3) Handling pygments ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: pygments ; extra == 'tests' (installed: pygments 2.16.1) Handling littleutils ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: littleutils ; extra == 'tests' (installed: littleutils 0.2.2) Handling cython ; extra == 'tests' from wheel metadata: Requires-Dist Requirement satisfied: cython ; extra == 'tests' (installed: cython 0.29.36) + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xLOXRy + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -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 stack_data-0.6.2 + mkdir -p /builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + TMPDIR=/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/stack_data-0.6.2/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/stack_data-0.6.2 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info writing /builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file '/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-modern-metadata-zxydcvwo/stack_data-0.6.2.dist-info' adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: stack-data Building wheel for stack-data (pyproject.toml): started Running command Building wheel for stack-data (pyproject.toml) running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/stack_data copying stack_data/version.py -> build/lib/stack_data copying stack_data/utils.py -> build/lib/stack_data copying stack_data/core.py -> build/lib/stack_data copying stack_data/formatting.py -> build/lib/stack_data copying stack_data/__init__.py -> build/lib/stack_data copying stack_data/serializing.py -> build/lib/stack_data running egg_info creating stack_data.egg-info writing stack_data.egg-info/PKG-INFO writing dependency_links to stack_data.egg-info/dependency_links.txt writing requirements to stack_data.egg-info/requires.txt writing top-level names to stack_data.egg-info/top_level.txt writing manifest file 'stack_data.egg-info/SOURCES.txt' reading manifest file 'stack_data.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'stack_data.egg-info/SOURCES.txt' copying stack_data/py.typed -> build/lib/stack_data installing to build/bdist.linux-aarch64/wheel running install running install_lib creating build/bdist.linux-aarch64 creating build/bdist.linux-aarch64/wheel creating build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/version.py -> build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/py.typed -> build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/utils.py -> build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/core.py -> build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/formatting.py -> build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/__init__.py -> build/bdist.linux-aarch64/wheel/stack_data copying build/lib/stack_data/serializing.py -> build/bdist.linux-aarch64/wheel/stack_data running install_egg_info Copying stack_data.egg-info to build/bdist.linux-aarch64/wheel/stack_data-0.6.2-py3.10.egg-info running install_scripts adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-aarch64/wheel/stack_data-0.6.2.dist-info/WHEEL creating '/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir/pip-wheel-lpj_bzx7/tmp5yw4lh0c/stack_data-0.6.2-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it adding 'stack_data/__init__.py' adding 'stack_data/core.py' adding 'stack_data/formatting.py' adding 'stack_data/py.typed' adding 'stack_data/serializing.py' adding 'stack_data/utils.py' adding 'stack_data/version.py' adding 'stack_data-0.6.2.dist-info/LICENSE.txt' adding 'stack_data-0.6.2.dist-info/METADATA' adding 'stack_data-0.6.2.dist-info/WHEEL' adding 'stack_data-0.6.2.dist-info/top_level.txt' adding 'stack_data-0.6.2.dist-info/RECORD' removing build/bdist.linux-aarch64/wheel Building wheel for stack-data (pyproject.toml): finished with status 'done' Created wheel for stack-data: filename=stack_data-0.6.2-py3-none-any.whl size=24486 sha256=a7c033000961eb877e5192a0ac7b7701faef1c0d31ad761e691f8ee5c673e7df Stored in directory: /builddir/.cache/pip/wheels/37/e9/cd/85d36b97481bbad2df588021196799e3de429f4f8a68ab6a9d Successfully built stack-data + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.wQLWcw + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch + cd stack_data-0.6.2 ++ ls /builddir/build/BUILD/stack_data-0.6.2/pyproject-wheeldir/stack_data-0.6.2-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=stack_data==0.6.2 + TMPDIR=/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch --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/stack_data-0.6.2/pyproject-wheeldir stack_data==0.6.2 Using pip 22.1.1 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: /builddir/build/BUILD/stack_data-0.6.2/pyproject-wheeldir Processing ./pyproject-wheeldir/stack_data-0.6.2-py3-none-any.whl Installing collected packages: stack_data Successfully installed stack_data-0.6.2 + '[' -d /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages ']' + site_dirs+=("/usr/lib/python3.10/site-packages") + '[' /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib64/python3.10/site-packages '!=' /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib64/python3.10/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/OpenCloudOS + /usr/bin/python3 -B /usr/lib/rpm/OpenCloudOS/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch --record /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record + rm -fv /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages/stack_data-0.6.2.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + /usr/bin/python3 /usr/lib/rpm/OpenCloudOS/pyproject_save_files.py --output-files /builddir/build/BUILD/pyproject-files --output-modules /builddir/build/BUILD/pyproject-modules --buildroot /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch --sitelib /usr/lib/python3.10/site-packages --sitearch /usr/lib64/python3.10/site-packages --python-version 3.10 --pyproject-record /builddir/build/BUILD/pyproject-record --prefix /usr stack_data + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 0.6.2-5.ocs23 --unique-debug-suffix -0.6.2-5.ocs23.noarch --unique-debug-src-base python-stack-data-0.6.2-5.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/stack_data-0.6.2 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.NkoNdx + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -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 stack_data-0.6.2 + TOX_TESTENV_PASSENV='*' + PYTHONDONTWRITEBYTECODE=1 + PATH=/builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib64/python3.10/site-packages:/builddir/build/BUILDROOT/python-stack-data-0.6.2-5.ocs23.noarch/usr/lib/python3.10/site-packages + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/stack_data-0.6.2/.pyproject-builddir' + HOSTNAME=rpmbuild + /usr/bin/python3 -m tox --current-env -q --recreate -e py310 ============================= test session starts ============================== platform linux -- Python 3.10.5, pytest-7.1.3, pluggy-1.0.0 cachedir: .tox/py310/.pytest_cache rootdir: /builddir/build/BUILD/stack_data-0.6.2 collected 21 items tests/test_core.py ..............F [ 71%] tests/test_formatter.py F. [ 80%] tests/test_serializer.py F [ 85%] tests/test_utils.py ... [100%] =================================== FAILURES =================================== ____________________________ test_pygments_example _____________________________ @pytest.mark.skipif(pygments_version < (2, 12), reason="Different output in older Pygments") def test_pygments_example(): from .samples.pygments_example import bar result = bar() print(result) > assert result == """\ Terminal256Formatter native: 13 | \x1b[38;5;70;01mdef\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;75mbar\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252m)\x1b[39m\x1b[38;5;252m:\x1b[39m 14 | \x1b[38;5;252m \x1b[39m\x1b[38;5;252mx\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;252m=\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;75m1\x1b[39m 15 | \x1b[38;5;252m \x1b[39m\x1b[38;5;38mstr\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252mx\x1b[39m\x1b[38;5;252m)\x1b[39m 17 | \x1b[38;5;252m \x1b[39m\x1b[38;5;214m@deco\x1b[39m 18 | \x1b[38;5;252m \x1b[39m\x1b[38;5;70;01mdef\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;75mfoo\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252m)\x1b[39m\x1b[38;5;252m:\x1b[39m 19 | \x1b[38;5;252m \x1b[39m\x1b[38;5;70;01mpass\x1b[39;00m ----- 25 | \x1b[38;5;70;01mdef\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;75mdeco\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252mf\x1b[39m\x1b[38;5;252m)\x1b[39m\x1b[38;5;252m:\x1b[39m 26 | \x1b[38;5;252m \x1b[39m\x1b[38;5;252mf\x1b[39m\x1b[38;5;252m.\x1b[39m\x1b[38;5;252mresult\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;252m=\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;252mprint_stack\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252m)\x1b[39m 27 | \x1b[38;5;252m \x1b[39m\x1b[38;5;70;01mreturn\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;252mf\x1b[39m ----- ==================== Terminal256Formatter .NewStyle\'>: 13 | \x1b[38;5;70;01mdef\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;75mbar\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252m)\x1b[39m\x1b[38;5;252m:\x1b[39m 14 | \x1b[38;5;252m \x1b[39m\x1b[38;5;252mx\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;252m=\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;75m1\x1b[39m 15 | \x1b[38;5;252m \x1b[39m\x1b[38;5;38mstr\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252mx\x1b[39m\x1b[38;5;252m)\x1b[39m 17 | \x1b[38;5;252;48;5;58m \x1b[39;49m\x1b[38;5;214;48;5;58m@deco\x1b[39;49m 18 | \x1b[38;5;252;48;5;58m \x1b[39;49m\x1b[38;5;70;48;5;58;01mdef\x1b[39;49;00m\x1b[38;5;252;48;5;58m \x1b[39;49m\x1b[38;5;75;48;5;58mfoo\x1b[39;49m\x1b[38;5;252;48;5;58m(\x1b[39;49m\x1b[38;5;252;48;5;58m)\x1b[39;49m\x1b[38;5;252;48;5;58m:\x1b[39;49m 19 | \x1b[38;5;252;48;5;58m \x1b[39;49m\x1b[38;5;70;48;5;58;01mpass\x1b[39;49;00m ----- 25 | \x1b[38;5;70;01mdef\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;75mdeco\x1b[39m\x1b[38;5;252m(\x1b[39m\x1b[38;5;252mf\x1b[39m\x1b[38;5;252m)\x1b[39m\x1b[38;5;252m:\x1b[39m 26 | \x1b[38;5;252m \x1b[39m\x1b[38;5;252mf\x1b[39m\x1b[38;5;252m.\x1b[39m\x1b[38;5;252mresult\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;252m=\x1b[39m\x1b[38;5;252m \x1b[39m\x1b[38;5;252;48;5;58mprint_stack\x1b[39;49m\x1b[38;5;252;48;5;58m(\x1b[39;49m\x1b[38;5;252;48;5;58m)\x1b[39;49m 27 | \x1b[38;5;252m \x1b[39m\x1b[38;5;70;01mreturn\x1b[39;00m\x1b[38;5;252m \x1b[39m\x1b[38;5;252mf\x1b[39m ----- ==================== TerminalFormatter native: 13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m(): 14 | x = \x1b[34m1\x1b[39;49;00m 15 | \x1b[36mstr\x1b[39;49;00m(x) 17 | \x1b[90m@deco\x1b[39;49;00m 18 | \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m(): 19 | \x1b[34mpass\x1b[39;49;00m ----- 25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f): 26 | f.result = print_stack() 27 | \x1b[34mreturn\x1b[39;49;00m f ----- ==================== TerminalFormatter .NewStyle\'>: 13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m(): 14 | x = \x1b[34m1\x1b[39;49;00m 15 | \x1b[36mstr\x1b[39;49;00m(x) 17 | \x1b[90m@deco\x1b[39;49;00m 18 | \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m(): 19 | \x1b[34mpass\x1b[39;49;00m ----- 25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f): 26 | f.result = print_stack() 27 | \x1b[34mreturn\x1b[39;49;00m f ----- ==================== TerminalTrueColorFormatter native: 13 | \x1b[38;2;110;191;38;01mdef\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;113;173;255mbar\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m\x1b[38;2;208;208;208m:\x1b[39m 14 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mx\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208m=\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;81;178;253m1\x1b[39m 15 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;47;188;205mstr\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208mx\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m 17 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;255;165;0m@deco\x1b[39m 18 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;110;191;38;01mdef\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;113;173;255mfoo\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m\x1b[38;2;208;208;208m:\x1b[39m 19 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;110;191;38;01mpass\x1b[39;00m ----- 25 | \x1b[38;2;110;191;38;01mdef\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;113;173;255mdeco\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208mf\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m\x1b[38;2;208;208;208m:\x1b[39m 26 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mf\x1b[39m\x1b[38;2;208;208;208m.\x1b[39m\x1b[38;2;208;208;208mresult\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208m=\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mprint_stack\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m 27 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;110;191;38;01mreturn\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mf\x1b[39m ----- ==================== TerminalTrueColorFormatter .NewStyle\'>: 13 | \x1b[38;2;110;191;38;01mdef\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;113;173;255mbar\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m\x1b[38;2;208;208;208m:\x1b[39m 14 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mx\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208m=\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;81;178;253m1\x1b[39m 15 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;47;188;205mstr\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208mx\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m 17 | \x1b[38;2;208;208;208;48;2;68;68;0m \x1b[39;49m\x1b[38;2;255;165;0;48;2;68;68;0m@deco\x1b[39;49m 18 | \x1b[38;2;208;208;208;48;2;68;68;0m \x1b[39;49m\x1b[38;2;110;191;38;48;2;68;68;0;01mdef\x1b[39;49;00m\x1b[38;2;208;208;208;48;2;68;68;0m \x1b[39;49m\x1b[38;2;113;173;255;48;2;68;68;0mfoo\x1b[39;49m\x1b[38;2;208;208;208;48;2;68;68;0m(\x1b[39;49m\x1b[38;2;208;208;208;48;2;68;68;0m)\x1b[39;49m\x1b[38;2;208;208;208;48;2;68;68;0m:\x1b[39;49m 19 | \x1b[38;2;208;208;208;48;2;68;68;0m \x1b[39;49m\x1b[38;2;110;191;38;48;2;68;68;0;01mpass\x1b[39;49;00m ----- 25 | \x1b[38;2;110;191;38;01mdef\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;113;173;255mdeco\x1b[39m\x1b[38;2;208;208;208m(\x1b[39m\x1b[38;2;208;208;208mf\x1b[39m\x1b[38;2;208;208;208m)\x1b[39m\x1b[38;2;208;208;208m:\x1b[39m 26 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mf\x1b[39m\x1b[38;2;208;208;208m.\x1b[39m\x1b[38;2;208;208;208mresult\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208m=\x1b[39m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208;48;2;68;68;0mprint_stack\x1b[39;49m\x1b[38;2;208;208;208;48;2;68;68;0m(\x1b[39;49m\x1b[38;2;208;208;208;48;2;68;68;0m)\x1b[39;49m 27 | \x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;110;191;38;01mreturn\x1b[39;00m\x1b[38;2;208;208;208m \x1b[39m\x1b[38;2;208;208;208mf\x1b[39m ----- ==================== HtmlFormatter native: 13 | def bar(): 14 | x = 1 15 | str(x) 17 | @deco 18 | def foo(): 19 | pass ----- 25 | def deco(f): 26 | f.result = print_stack() 27 | return f ----- ==================== HtmlFormatter .NewStyle\'>: 13 | def bar(): 14 | x = 1 15 | str(x) 17 | @deco 18 | def foo(): 19 | pass ----- 25 | def deco(f): 26 | f.result = print_stack() 27 | return f ----- ==================== """ E AssertionError: assert 'Terminal256F...=========\n\n' == 'Terminal256F...=========\n\n' E Skipping 2397 identical leading characters in diff, use -v to show E - ;49;00m(): E + ;49;00m(): E - 14 | x = 1 E + 14 | x = 1 E ? ++++++++++++++++ E - 15 | str(x)... E E ...Full output truncated (130 lines hidden), use '-vv' to show tests/test_core.py:638: AssertionError ----------------------------- Captured stdout call ----------------------------- Terminal256Formatter native: 13 | def bar(): 14 |  x = 1 15 |  str(x) 17 |  @deco 18 |  def foo(): 19 |  pass ----- 25 | def deco(f): 26 |  f.result = print_stack() 27 |  return f ----- ==================== Terminal256Formatter .NewStyle'>: 13 | def bar(): 14 |  x = 1 15 |  str(x) 17 |  @deco 18 |  def foo(): 19 |  pass ----- 25 | def deco(f): 26 |  f.result = print_stack() 27 |  return f ----- ==================== TerminalFormatter native: 13 | def bar(): 14 | x = 1 15 | str(x) 17 | @deco 18 | def foo(): 19 | pass ----- 25 | def deco(f): 26 | f.result = print_stack() 27 | return f ----- ==================== TerminalFormatter .NewStyle'>: 13 | def bar(): 14 | x = 1 15 | str(x) 17 | @deco 18 | def foo(): 19 | pass ----- 25 | def deco(f): 26 | f.result = print_stack() 27 | return f ----- ==================== TerminalTrueColorFormatter native: 13 | def bar(): 14 |  x = 1 15 |  str(x) 17 |  @deco 18 |  def foo(): 19 |  pass ----- 25 | def deco(f): 26 |  f.result = print_stack() 27 |  return f ----- ==================== TerminalTrueColorFormatter .NewStyle'>: 13 | def bar(): 14 |  x = 1 15 |  str(x) 17 |  @deco 18 |  def foo(): 19 |  pass ----- 25 | def deco(f): 26 |  f.result = print_stack() 27 |  return f ----- ==================== HtmlFormatter native: 13 | def bar(): 14 | x = 1 15 | str(x) 17 | @deco 18 | def foo(): 19 | pass ----- 25 | def deco(f): 26 | f.result = print_stack() 27 | return f ----- ==================== HtmlFormatter .NewStyle'>: 13 | def bar(): 14 | x = 1 15 | str(x) 17 | @deco 18 | def foo(): 19 | pass ----- 25 | def deco(f): 26 | f.result = print_stack() 27 | return f ----- ==================== _________________________________ test_example _________________________________ capsys = <_pytest.capture.CaptureFixture object at 0xffff7d2a07f0> def test_example(capsys): from .samples.formatter_example import bar, print_stack1, format_stack1, format_frame, f_string, blank_lines @contextmanager def check_example(name): yield stderr = capsys.readouterr().err compare_to_file(stderr, name) with check_example("variables"): try: bar() except Exception: MyFormatter(show_variables=True).print_exception() > with check_example("pygmented"): tests/test_formatter.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.10/contextlib.py:142: in __exit__ next(self.gen) tests/test_formatter.py:39: in check_example compare_to_file(stderr, name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ text = 'Traceback (most recent call last):\n File "formatter_example.py", line 21, in foo\n 9 | \x1b[38;5;15m\x1b[39m\x...Error\x1b[39m\x1b[38;5;15m \x1b[39m\x1b[38;5;204mfrom\x1b[39m\x1b[38;5;15m \x1b[39m\x1b[38;5;15me\x1b[39m\nTypeError\n' name = 'pygmented' def compare_to_file(text, name): filename = os.path.join( os.path.dirname(__file__), 'golden_files', name + '.txt', ) if os.environ.get('FIX_STACK_DATA_TESTS'): string_to_file(text, filename) else: expected_output = file_to_string(filename) > assert text == expected_output E AssertionError tests/utils.py:16: AssertionError _________________________________ test_example _________________________________ def test_example(): from .samples.formatter_example import bar, format_frame, format_stack1 result = dict( format_frame=(format_frame(MyFormatter())), format_stack=format_stack1(MyFormatter(show_variables=True)), ) try: bar() except Exception: result.update( plain=MyFormatter(show_variables=True).format_exception(), pygmented=MyFormatter(show_variables=True, pygmented=True).format_exception(), pygmented_html=MyFormatter(show_variables=True, pygmented=True, html=True).format_exception(), ) > compare_to_file_json(result, "serialize") tests/test_serializer.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = {'format_frame': {'filename': 'formatter_example.py', 'lineno': 51, 'lines': [{'is_current': False, 'lineno': 49, 'tex...ormatter_example.py', 'lineno': 8, 'lines': [{...}, {...}, {...}, {...}], 'name': 'foo', ...}, ...], 'tail': ''}], ...} name = 'serialize' def compare_to_file_json(data, name): filename = os.path.join( os.path.dirname(__file__), 'golden_files', name + '.json', ) if os.environ.get('FIX_STACK_DATA_TESTS'): json_to_file(data, filename, indent=4) else: expected_output = file_to_json(filename) > assert data == expected_output E AssertionError tests/utils.py:29: AssertionError =============================== warnings summary =============================== ../../../../usr/lib64/python3.10/site-packages/pyximport/pyximport.py:51 /usr/lib64/python3.10/site-packages/pyximport/pyximport.py:51: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_core.py::test_pygments_example - AssertionError: assert 'Te... FAILED tests/test_formatter.py::test_example - AssertionError FAILED tests/test_serializer.py::test_example - AssertionError =================== 3 failed, 18 passed, 1 warning in 1.46s ==================== ERROR: InvocationError for command /usr/bin/pytest (exited with code 1) ___________________________________ summary ____________________________________ ERROR: py310: commands failed error: Bad exit status from /var/tmp/rpm-tmp.NkoNdx (%check) Bad exit status from /var/tmp/rpm-tmp.NkoNdx (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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 -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-stack-data.spec