Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mock.spec'], chrootPath='/var/lib/mock/dist-an23-loongarch-build-311631-66339/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=988gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '3c5dba4a84b249cea5eb28ccb02ffbb4', '-D', '/var/lib/mock/dist-an23-loongarch-build-311631-66339/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mock.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1680048000 Wrote: /builddir/build/SRPMS/python-pytest-mock-3.6.1-1.an23.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-pytest-mock.spec'], chrootPath='/var/lib/mock/dist-an23-loongarch-build-311631-66339/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=988gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b4241883fe13438e83c6b037ee9ff3c6', '-D', '/var/lib/mock/dist-an23-loongarch-build-311631-66339/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mock.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1680048000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Yv6HZd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest-mock-3.6.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-mock-3.6.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-mock-3.6.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf '*.egg-info' + sed -i 's/\r$//' README.rst + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4ESYAp + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 pytest-mock-3.6.1 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/pytest_mock copying src/pytest_mock/__init__.py -> build/lib/pytest_mock copying src/pytest_mock/_util.py -> build/lib/pytest_mock copying src/pytest_mock/_version.py -> build/lib/pytest_mock copying src/pytest_mock/plugin.py -> build/lib/pytest_mock copying src/pytest_mock/py.typed -> build/lib/pytest_mock + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QrPnF2 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch ++ dirname /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 pytest-mock-3.6.1 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr creating /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib creating /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10 creating /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages creating /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock copying build/lib/pytest_mock/__init__.py -> /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock copying build/lib/pytest_mock/_util.py -> /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock copying build/lib/pytest_mock/_version.py -> /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock copying build/lib/pytest_mock/plugin.py -> /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock copying build/lib/pytest_mock/py.typed -> /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock byte-compiling /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock/_util.py to _util.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock/_version.py to _version.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock/plugin.py to plugin.cpython-310.pyc writing byte-compilation script '/tmp/tmp476u1ro_.py' /usr/bin/python3 /tmp/tmp476u1ro_.py removing /tmp/tmp476u1ro_.py running install_egg_info running egg_info writing src/pytest_mock.egg-info/PKG-INFO writing dependency_links to src/pytest_mock.egg-info/dependency_links.txt writing entry points to src/pytest_mock.egg-info/entry_points.txt writing requirements to src/pytest_mock.egg-info/requires.txt writing top-level names to src/pytest_mock.egg-info/top_level.txt reading manifest file 'src/pytest_mock.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/pytest_mock.egg-info/SOURCES.txt' Copying src/pytest_mock.egg-info to /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages/pytest_mock-3.6.1-py3.10.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/bin/__pycache__ + /usr/lib/rpm/anolis/generate-compatibility-deps python-pytest-mock ~/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/compatibility/python-pytest-mock ~/build/BUILD/pytest-mock-3.6.1 ~/build/BUILD/pytest-mock-3.6.1 ~/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/compatibility/python-pytest-mock ~/build/BUILD/pytest-mock-3.6.1 ~/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/compatibility/python-pytest-mock ~/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/compatibility/python-pytest-mock ~/build/BUILD/pytest-mock-3.6.1 ~/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/compatibility/python-pytest-mock ~/build/BUILD/pytest-mock-3.6.1 + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 3.6.1-1.an23 --unique-debug-suffix -3.6.1-1.an23.noarch --unique-debug-src-base python-pytest-mock-3.6.1-1.an23.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pytest-mock-3.6.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/clean_perl + /usr/lib/rpm/anolis/check_elf_files + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.vPlZQ8 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 pytest-mock-3.6.1 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib64/python3.10/site-packages:/builddir/build/BUILDROOT/python-pytest-mock-3.6.1-1.an23.noarch/usr/lib/python3.10/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/pytest -v tests -k 'not test_standalone_mock and not test_detailed_introspection and not test_detailed_introspection and not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection' ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/pytest-mock-3.6.1 configfile: tox.ini plugins: mock-3.6.1 collecting ... collected 72 items / 5 deselected / 67 selected tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_object] PASSED [ 1%] tests/test_pytest_mock.py::test_mock_patches[mock_using_patch] PASSED [ 2%] tests/test_pytest_mock.py::test_mock_patches[mock_using_patch_multiple] PASSED [ 4%] tests/test_pytest_mock.py::test_mock_patch_dict PASSED [ 5%] tests/test_pytest_mock.py::test_mock_patch_dict_resetall PASSED [ 7%] tests/test_pytest_mock.py::test_mocker_aliases[ANY] PASSED [ 8%] tests/test_pytest_mock.py::test_mocker_aliases[call] PASSED [ 10%] tests/test_pytest_mock.py::test_mocker_aliases[create_autospec] PASSED [ 11%] tests/test_pytest_mock.py::test_mocker_aliases[MagicMock] PASSED [ 13%] tests/test_pytest_mock.py::test_mocker_aliases[Mock] PASSED [ 14%] tests/test_pytest_mock.py::test_mocker_aliases[mock_open] PASSED [ 16%] tests/test_pytest_mock.py::test_mocker_aliases[NonCallableMock] PASSED [ 17%] tests/test_pytest_mock.py::test_mocker_aliases[PropertyMock] PASSED [ 19%] tests/test_pytest_mock.py::test_mocker_aliases[sentinel] PASSED [ 20%] tests/test_pytest_mock.py::test_mocker_aliases[seal] PASSED [ 22%] tests/test_pytest_mock.py::test_mocker_resetall PASSED [ 23%] tests/test_pytest_mock.py::TestMockerStub::test_call PASSED [ 25%] tests/test_pytest_mock.py::TestMockerStub::test_repr_with_no_name PASSED [ 26%] tests/test_pytest_mock.py::TestMockerStub::test_repr_with_name PASSED [ 28%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name PASSED [ 29%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] PASSED [ 31%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] PASSED [ 32%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] PASSED [ 34%] tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] PASSED [ 35%] tests/test_pytest_mock.py::test_instance_method_spy PASSED [ 37%] tests/test_pytest_mock.py::test_instance_method_spy_exception[BaseException] PASSED [ 38%] tests/test_pytest_mock.py::test_instance_method_spy_exception[Exception] PASSED [ 40%] tests/test_pytest_mock.py::test_instance_method_spy_exception[GeneratorExit] PASSED [ 41%] tests/test_pytest_mock.py::test_instance_method_spy_exception[KeyboardInterrupt] PASSED [ 43%] tests/test_pytest_mock.py::test_instance_method_spy_exception[RuntimeError] PASSED [ 44%] tests/test_pytest_mock.py::test_instance_method_spy_exception[SystemExit] PASSED [ 46%] tests/test_pytest_mock.py::test_instance_method_spy_autospec_true PASSED [ 47%] tests/test_pytest_mock.py::test_spy_reset PASSED [ 49%] tests/test_pytest_mock.py::test_instance_method_by_class_spy PASSED [ 50%] tests/test_pytest_mock.py::test_instance_method_by_subclass_spy PASSED [ 52%] tests/test_pytest_mock.py::test_class_method_spy PASSED [ 53%] tests/test_pytest_mock.py::test_class_method_spy_autospec_false PASSED [ 55%] tests/test_pytest_mock.py::test_class_method_subclass_spy PASSED [ 56%] tests/test_pytest_mock.py::test_class_method_with_metaclass_spy PASSED [ 58%] tests/test_pytest_mock.py::test_static_method_spy PASSED [ 59%] tests/test_pytest_mock.py::test_static_method_subclass_spy PASSED [ 61%] tests/test_pytest_mock.py::test_callable_like_spy PASSED [ 62%] tests/test_pytest_mock.py::test_instance_async_method_spy SKIPPED (a...) [ 64%] tests/test_pytest_mock.py::test_assert_not_called_wrapper PASSED [ 65%] tests/test_pytest_mock.py::test_assert_called_with_wrapper PASSED [ 67%] tests/test_pytest_mock.py::test_assert_called_once_with_wrapper PASSED [ 68%] tests/test_pytest_mock.py::test_assert_called_once_wrapper PASSED [ 70%] tests/test_pytest_mock.py::test_assert_called_wrapper PASSED [ 71%] tests/test_pytest_mock.py::test_assert_any_call_wrapper PASSED [ 73%] tests/test_pytest_mock.py::test_assert_has_calls PASSED [ 74%] tests/test_pytest_mock.py::test_monkeypatch_ini FAILED [ 76%] tests/test_pytest_mock.py::test_parse_ini_boolean PASSED [ 77%] tests/test_pytest_mock.py::test_patched_method_parameter_name PASSED [ 79%] tests/test_pytest_mock.py::test_monkeypatch_native PASSED [ 80%] tests/test_pytest_mock.py::test_monkeypatch_no_terminal PASSED [ 82%] tests/test_pytest_mock.py::test_missing_introspection PASSED [ 83%] tests/test_pytest_mock.py::test_assert_called_with_unicode_arguments PASSED [ 85%] tests/test_pytest_mock.py::test_plain_stopall PASSED [ 86%] tests/test_pytest_mock.py::test_warn_patch_object_context_manager PASSED [ 88%] tests/test_pytest_mock.py::test_warn_patch_context_manager PASSED [ 89%] tests/test_pytest_mock.py::test_context_manager_patch_example PASSED [ 91%] tests/test_pytest_mock.py::test_patch_context_manager_with_context_manager PASSED [ 92%] tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc PASSED [ 94%] tests/test_pytest_mock.py::test_used_with_class_scope PASSED [ 95%] tests/test_pytest_mock.py::test_used_with_module_scope PASSED [ 97%] tests/test_pytest_mock.py::test_used_with_package_scope PASSED [ 98%] tests/test_pytest_mock.py::test_used_with_session_scope PASSED [100%] =================================== FAILURES =================================== _____________________________ test_monkeypatch_ini _____________________________ testdir = mocker = def test_monkeypatch_ini(testdir: Any, mocker: MockerFixture) -> None: # Make sure the following function actually tests something stub = mocker.stub() assert stub.assert_called_with.__module__ != stub.__module__ testdir.makepyfile( """ import py.code def test_foo(mocker): stub = mocker.stub() assert stub.assert_called_with.__module__ == stub.__module__ """ ) testdir.makeini( """ [pytest] mock_traceback_monkeypatch = false """ ) result = testdir.runpytest_subprocess() > assert result.ret == 0 E assert == 0 E + where = .ret /builddir/build/BUILD/pytest-mock-3.6.1/tests/test_pytest_mock.py:643: AssertionError ----------------------------- Captured stdout call ----------------------------- running: /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_monkeypatch_ini0/runpytest-0 in: /tmp/pytest-of-mockbuild/pytest-0/test_monkeypatch_ini0 ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-7.3.1, pluggy-1.0.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_monkeypatch_ini0 configfile: tox.ini plugins: mock-3.6.1 collected 0 items / 1 error ==================================== ERRORS ==================================== ___________________ ERROR collecting test_monkeypatch_ini.py ___________________ ImportError while importing test module '/tmp/pytest-of-mockbuild/pytest-0/test_monkeypatch_ini0/test_monkeypatch_ini.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) test_monkeypatch_ini.py:1: in import py.code E ModuleNotFoundError: No module named 'py.code'; 'py' is not a package =========================== short test summary info ============================ ERROR test_monkeypatch_ini.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 0.09s =============================== =============================== warnings summary =============================== tests/test_pytest_mock.py:478 /builddir/build/BUILD/pytest-mock-3.6.1/tests/test_pytest_mock.py:478: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.asyncio tests/test_pytest_mock.py::test_instance_async_method_spy /usr/lib/python3.10/site-packages/_pytest/python.py:183: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped. You need to install a suitable plugin for your async framework, for example: - anyio - pytest-asyncio - pytest-tornasync - pytest-trio - pytest-twisted warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid))) tests/test_pytest_mock.py::test_patch_context_manager_with_context_manager /usr/lib/python3.10/site-packages/_pytest/python.py:194: PytestRemovedIn8Warning: Passing None has been deprecated. See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases. result = testfunction(**testargs) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ SKIPPED [1] ../../../../usr/lib/python3.10/site-packages/_pytest/python.py:184: async def function and no async plugin installed (see warnings) FAILED tests/test_pytest_mock.py::test_monkeypatch_ini - assert \\007" --setenv=PS1= \\s-\\v\\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mock.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 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M b4241883fe13438e83c6b037ee9ff3c6 -D /var/lib/mock/dist-an23-loongarch-build-311631-66339/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.bc42ba5q:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-mock.spec