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-locket.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-849663-28425/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-locket.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=1674172800 Wrote: /builddir/build/SRPMS/python-locket-1.0.0-4.fc38.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-locket.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-849663-28425/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-locket.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=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.keW8pO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf locket.py-1.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/locket-1.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd locket.py-1.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GR2Dow + 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 -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 -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,-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 + 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 locket.py-1.0.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' running build running build_py creating build creating build/lib creating build/lib/locket copying locket/__init__.py -> build/lib/locket + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Fa4scH + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch ++ dirname /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.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 -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 -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,-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 + 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 locket.py-1.0.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-locket-1.0.0-4.fc38.noarch --prefix /usr running install /usr/lib/python3.11/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-locket-1.0.0-4.fc38.noarch/usr creating /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib creating /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11/site-packages/locket copying build/lib/locket/__init__.py -> /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11/site-packages/locket byte-compiling /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11/site-packages/locket/__init__.py to __init__.cpython-311.pyc writing byte-compilation script '/tmp/tmpc798ptsh.py' /usr/bin/python3 /tmp/tmpc798ptsh.py removing /tmp/tmpc798ptsh.py running install_egg_info running egg_info creating locket.egg-info writing locket.egg-info/PKG-INFO writing dependency_links to locket.egg-info/dependency_links.txt writing top-level names to locket.egg-info/top_level.txt writing manifest file 'locket.egg-info/SOURCES.txt' reading manifest file 'locket.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'locket.egg-info/SOURCES.txt' Copying locket.egg-info to /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11/site-packages/locket-1.0.0-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.0.0-4.fc38 --unique-debug-suffix -1.0.0-4.fc38.noarch --unique-debug-src-base python-locket-1.0.0-4.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/locket.py-1.0.0 find: 'debug': No such file or directory + /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-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.8Vlwk6 + 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 -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 -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,-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 + 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 locket.py-1.0.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 ' + PATH=/builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-locket-1.0.0-4.fc38.noarch/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.2.2, pluggy-1.0.0 rootdir: /builddir/build/BUILD/locket.py-1.0.0, configfile: tox.ini collected 16 items tests/locket_tests.py ...........FFEFEFEFE [100%] ==================================== ERRORS ==================================== _ ERROR at teardown of test_lock_is_released_if_holding_process_is_brutally_killed _ @pytest.fixture(name="spawn_locker") def _fixture_spawn_locker(): lockers = [] def spawn_locker(*args, **kwargs): locker = _Locker(*args, **kwargs) lockers.append(locker) return locker try: yield spawn_locker finally: for locker in lockers: > locker.terminate() tests/locket_tests.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def terminate(self): > pid = int(self._stdout_lines()[0].strip()) E ValueError: invalid literal for int() with base 10: '' tests/locket_tests.py:304: ValueError _ ERROR at teardown of test_can_set_timeout_to_zero_to_raise_exception_if_lock_cannot_be_acquired _ @pytest.fixture(name="spawn_locker") def _fixture_spawn_locker(): lockers = [] def spawn_locker(*args, **kwargs): locker = _Locker(*args, **kwargs) lockers.append(locker) return locker try: yield spawn_locker finally: for locker in lockers: > locker.terminate() tests/locket_tests.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def terminate(self): > pid = int(self._stdout_lines()[0].strip()) E ValueError: invalid literal for int() with base 10: '' tests/locket_tests.py:304: ValueError _____ ERROR at teardown of test_error_is_raised_after_timeout_has_expired ______ @pytest.fixture(name="spawn_locker") def _fixture_spawn_locker(): lockers = [] def spawn_locker(*args, **kwargs): locker = _Locker(*args, **kwargs) lockers.append(locker) return locker try: yield spawn_locker finally: for locker in lockers: > locker.terminate() tests/locket_tests.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def terminate(self): > pid = int(self._stdout_lines()[0].strip()) E ValueError: invalid literal for int() with base 10: '' tests/locket_tests.py:304: ValueError _ ERROR at teardown of test_lock_is_acquired_if_available_before_timeout_expires _ @pytest.fixture(name="spawn_locker") def _fixture_spawn_locker(): lockers = [] def spawn_locker(*args, **kwargs): locker = _Locker(*args, **kwargs) lockers.append(locker) return locker try: yield spawn_locker finally: for locker in lockers: > locker.terminate() tests/locket_tests.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def terminate(self): > pid = int(self._stdout_lines()[0].strip()) E ValueError: invalid literal for int() with base 10: '' tests/locket_tests.py:304: ValueError =================================== FAILURES =================================== ________________ test_lock_file_blocks_until_lock_is_available _________________ lock_path = '/tmp/tmptceib3su/some-lock' spawn_locker = .spawn_locker at 0xffffffb30176a0> def test_lock_file_blocks_until_lock_is_available(lock_path, spawn_locker): locker_1 = spawn_locker(lock_path) locker_2 = spawn_locker(lock_path) assert not locker_1.has_lock() assert not locker_2.has_lock() locker_1.acquire() time.sleep(0.1) locker_2.acquire() time.sleep(0.1) > assert locker_1.has_lock() E assert False E + where False = >() E + where > = .has_lock tests/locket_tests.py:157: AssertionError _________ test_lock_is_released_if_holding_process_is_brutally_killed __________ lock_path = '/tmp/tmpop4lnud9/some-lock' spawn_locker = .spawn_locker at 0xffffffb30179c0> def test_lock_is_released_if_holding_process_is_brutally_killed(lock_path, spawn_locker): locker_1 = spawn_locker(lock_path) locker_2 = spawn_locker(lock_path) assert not locker_1.has_lock() assert not locker_2.has_lock() locker_1.acquire() time.sleep(0.1) locker_2.acquire() time.sleep(0.1) > assert locker_1.has_lock() E assert False E + where False = >() E + where > = .has_lock tests/locket_tests.py:185: AssertionError __ test_can_set_timeout_to_zero_to_raise_exception_if_lock_cannot_be_acquired __ lock_path = '/tmp/tmpsjr228l8/some-lock' spawn_locker = .spawn_locker at 0xffffffb3017ce0> def test_can_set_timeout_to_zero_to_raise_exception_if_lock_cannot_be_acquired(lock_path, spawn_locker): locker_1 = spawn_locker(lock_path) locker_2 = spawn_locker(lock_path, timeout=0) assert not locker_1.has_lock() assert not locker_2.has_lock() locker_1.acquire() time.sleep(0.1) locker_2.acquire() time.sleep(0.1) > assert locker_1.has_lock() E assert False E + where False = >() E + where > = .has_lock tests/locket_tests.py:207: AssertionError ________________ test_error_is_raised_after_timeout_has_expired ________________ lock_path = '/tmp/tmpo_ucy6t1/some-lock' spawn_locker = .spawn_locker at 0xffffffb3050720> def test_error_is_raised_after_timeout_has_expired(lock_path, spawn_locker): locker_1 = spawn_locker(lock_path) locker_2 = spawn_locker(lock_path, timeout=0.5) assert not locker_1.has_lock() assert not locker_2.has_lock() locker_1.acquire() time.sleep(0.1) locker_2.acquire() time.sleep(0.1) > assert locker_1.has_lock() E assert False E + where False = >() E + where > = .has_lock tests/locket_tests.py:230: AssertionError __________ test_lock_is_acquired_if_available_before_timeout_expires ___________ lock_path = '/tmp/tmp_7q_bggw/some-lock' spawn_locker = .spawn_locker at 0xffffffb3017b00> def test_lock_is_acquired_if_available_before_timeout_expires(lock_path, spawn_locker): locker_1 = spawn_locker(lock_path) locker_2 = spawn_locker(lock_path, timeout=2) assert not locker_1.has_lock() assert not locker_2.has_lock() locker_1.acquire() time.sleep(0.1) locker_2.acquire() time.sleep(0.1) > assert locker_1.has_lock() E assert False E + where False = >() E + where > = .has_lock tests/locket_tests.py:255: AssertionError =========================== short test summary info ============================ FAILED tests/locket_tests.py::test_lock_file_blocks_until_lock_is_available FAILED tests/locket_tests.py::test_lock_is_released_if_holding_process_is_brutally_killed FAILED tests/locket_tests.py::test_can_set_timeout_to_zero_to_raise_exception_if_lock_cannot_be_acquired FAILED tests/locket_tests.py::test_error_is_raised_after_timeout_has_expired FAILED tests/locket_tests.py::test_lock_is_acquired_if_available_before_timeout_expires ERROR tests/locket_tests.py::test_lock_is_released_if_holding_process_is_brutally_killed ERROR tests/locket_tests.py::test_can_set_timeout_to_zero_to_raise_exception_if_lock_cannot_be_acquired ERROR tests/locket_tests.py::test_error_is_raised_after_timeout_has_expired ERROR tests/locket_tests.py::test_lock_is_acquired_if_available_before_timeout_expires =================== 5 failed, 11 passed, 4 errors in 10.04s ==================== error: Bad exit status from /var/tmp/rpm-tmp.8Vlwk6 (%check) Bad exit status from /var/tmp/rpm-tmp.8Vlwk6 (%check) RPM build errors: 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-locket.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 598, 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-locket.spec