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-requests-kerberos.spec'], chrootPath='/var/lib/mock/dist-ocs23-python311-build-57823-2203/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=982gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lmspzmuu:/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.lmspzmuu:/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', 'f4635e6e938449f9aa4b5265e1bd40a7', '-D', '/var/lib/mock/dist-ocs23-python311-build-57823-2203/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lmspzmuu:/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-requests-kerberos.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 Wrote: /builddir/build/SRPMS/python-requests-kerberos-0.12.0-3.ocs23.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-requests-kerberos.spec'], chrootPath='/var/lib/mock/dist-ocs23-python311-build-57823-2203/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=982gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lmspzmuu:/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.lmspzmuu:/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', 'b1452d6dd73e4fc7a39158586003884a', '-D', '/var/lib/mock/dist-ocs23-python311-build-57823-2203/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lmspzmuu:/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-requests-kerberos.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6VFryO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/393e49c698904c76ad9f56c6e4dbd2dbc55a7c42.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-switch-requirement-from-pykerberos-back-to-kerberos.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i -E -e 's/^(\s*)from mock import /\1from unittest.mock import /' tests/test_requests_kerberos.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Au7Wtz + umask 022 + cd /builddir/build/BUILD + PYTHONPATH=:/usr/lib/python3.10/site-packages/:/usr/lib64/python3.10/site-packages/ + export PYTHONPATH + 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 + 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -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/requests_kerberos copying requests_kerberos/__init__.py -> build/lib/requests_kerberos copying requests_kerberos/exceptions.py -> build/lib/requests_kerberos copying requests_kerberos/compat.py -> build/lib/requests_kerberos copying requests_kerberos/kerberos_.py -> build/lib/requests_kerberos running egg_info creating requests_kerberos.egg-info writing requests_kerberos.egg-info/PKG-INFO writing dependency_links to requests_kerberos.egg-info/dependency_links.txt writing requirements to requests_kerberos.egg-info/requires.txt writing top-level names to requests_kerberos.egg-info/top_level.txt writing manifest file 'requests_kerberos.egg-info/SOURCES.txt' reading manifest file 'requests_kerberos.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'AUTHORS' writing manifest file 'requests_kerberos.egg-info/SOURCES.txt' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9iobhT + umask 022 + cd /builddir/build/BUILD + PYTHONPATH=:/usr/lib/python3.10/site-packages/:/usr/lib64/python3.10/site-packages/ + export PYTHONPATH + '[' /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch + cd requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 + 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch 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-requests-kerberos-0.12.0-3.ocs23.noarch/usr creating /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib creating /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos copying build/lib/requests_kerberos/__init__.py -> /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos copying build/lib/requests_kerberos/exceptions.py -> /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos copying build/lib/requests_kerberos/compat.py -> /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos copying build/lib/requests_kerberos/kerberos_.py -> /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos byte-compiling /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos/exceptions.py to exceptions.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos/compat.py to compat.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos/kerberos_.py to kerberos_.cpython-311.pyc writing byte-compilation script '/tmp/tmp0gpl4mmu.py' /usr/bin/python3 /tmp/tmp0gpl4mmu.py removing /tmp/tmp0gpl4mmu.py running install_egg_info running egg_info writing requests_kerberos.egg-info/PKG-INFO writing dependency_links to requests_kerberos.egg-info/dependency_links.txt writing requirements to requests_kerberos.egg-info/requires.txt writing top-level names to requests_kerberos.egg-info/top_level.txt reading manifest file 'requests_kerberos.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'AUTHORS' writing manifest file 'requests_kerberos.egg-info/SOURCES.txt' Copying requests_kerberos.egg-info to /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11/site-packages/requests_kerberos-0.12.0-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-requests-kerberos-0.12.0-3.ocs23.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 0.12.0-3.ocs23 --unique-debug-suffix -0.12.0-3.ocs23.noarch --unique-debug-src-base python-requests-kerberos-0.12.0-3.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 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-requests-kerberos-0.12.0-3.ocs23.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.qgRtss + umask 022 + cd /builddir/build/BUILD + PYTHONPATH=:/usr/lib/python3.10/site-packages/:/usr/lib64/python3.10/site-packages/ + export PYTHONPATH + 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 + py.test-3 tests/ ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.0.0 rootdir: /builddir/build/BUILD/requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42 collected 35 items tests/test_functional_kerberos.py s [ 2%] tests/test_requests_kerberos.py ........................FFFFFFFFFF [100%] =================================== FAILURES =================================== _____________________ TestCertificateHash.test_ecdsa_sha1 ______________________ self = def test_ecdsa_sha1(self): cert_der = b'MIIBjjCCATSgAwIBAgIQRCJw7nbtvJ5F8wikRmwgizAJBgcqhkjOPQQ' \ b'BMBUxEzARBgNVBAMMClNFUlZFUjIwMTYwHhcNMTcwNTMwMDgwMzE3Wh' \ b'cNMTgwNTMwMDgyMzE3WjAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MFkwE' \ b'wYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEk3fOh178kRglmnPKe9K/mbgi' \ b'gf8YgNq62rF2EpfzpyQY0eGw4xnmKDG73aZ+ATSlV2IybxiUVsKyMUn' \ b'LhPfvmaNnMGUwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQ' \ b'UFBwMCBggrBgEFBQcDATAVBgNVHREEDjAMggpTRVJWRVIyMDE2MB0GA' \ b'1UdDgQWBBQSK8qwmiQmyAWWya3FxQDj9wqQAzAJBgcqhkjOPQQBA0kA' \ b'MEYCIQCiOsP56Iqo+cHRvCp2toj65Mgxo/PQY1tn+S3WH4RJFQIhAJe' \ b'gGQuaPWg6aCWV+2+6pNCNMdg/Nix+mMOJ88qCBNHi' expected_hash = b'\x1E\xC9\xAD\x46\xDE\xE9\x34\x0E\x45\x03\xCF\xFD' \ b'\xB5\xCD\x81\x0C\xB2\x6B\x77\x8F\x46\xBE\x95\xD5' \ b'\xEA\xF9\x99\xDC\xB1\xC4\x5E\xDA' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:818: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError ____________________ TestCertificateHash.test_ecdsa_sha256 _____________________ self = def test_ecdsa_sha256(self): cert_der = b'MIIBjzCCATWgAwIBAgIQeNQTxkMgq4BF9tKogIGXUTAKBggqhkjOPQQ' \ b'DAjAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA4MDMxN1' \ b'oXDTE4MDUzMDA4MjMxN1owFTETMBEGA1UEAwwKU0VSVkVSMjAxNjBZM' \ b'BMGByqGSM49AgEGCCqGSM49AwEHA0IABDAfXTLOaC3ElgErlgk2tBlM' \ b'wf9XmGlGBw4vBtMJap1hAqbsdxFm6rhK3QU8PFFpv8Z/AtRG7ba3UwQ' \ b'prkssClejZzBlMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBg' \ b'EFBQcDAgYIKwYBBQUHAwEwFQYDVR0RBA4wDIIKU0VSVkVSMjAxNjAdB' \ b'gNVHQ4EFgQUnFDE8824TYAiBeX4fghEEg33UgYwCgYIKoZIzj0EAwID' \ b'SAAwRQIhAK3rXA4/0i6nm/U7bi6y618Ci2Is8++M3tYIXnEsA7zSAiA' \ b'w2s6bJoI+D7Xaey0Hp0gkks9z55y976keIEI+n3qkzw==' expected_hash = b'\xFE\xCF\x1B\x25\x85\x44\x99\x90\xD9\xE3\xB2\xC9' \ b'\x2D\x3F\x59\x7E\xC8\x35\x4E\x12\x4E\xDA\x75\x1D' \ b'\x94\x83\x7C\x2C\x89\xA2\xC1\x55' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:836: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError ____________________ TestCertificateHash.test_ecdsa_sha384 _____________________ self = def test_ecdsa_sha384(self): cert_der = b'MIIBjzCCATWgAwIBAgIQcO3/jALdQ6BOAoaoseLSCjAKBggqhkjOPQQ' \ b'DAzAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA4MDMxOF' \ b'oXDTE4MDUzMDA4MjMxOFowFTETMBEGA1UEAwwKU0VSVkVSMjAxNjBZM' \ b'BMGByqGSM49AgEGCCqGSM49AwEHA0IABJLjZH274heB/8PhmhWWCIVQ' \ b'Wle1hBZEN3Tk2yWSKaz9pz1bjwb9t79lVpQE9tvGL0zP9AqJYHcVOO9' \ b'YG9trqfejZzBlMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBg' \ b'EFBQcDAgYIKwYBBQUHAwEwFQYDVR0RBA4wDIIKU0VSVkVSMjAxNjAdB' \ b'gNVHQ4EFgQUkRajoFr8qZ/8L8rKB3zGiGolDygwCgYIKoZIzj0EAwMD' \ b'SAAwRQIgfi8dAxXljCMSvngtDtagGCTGBs7Xxh8Z3WX6ZwJZsHYCIQC' \ b'D4iNReh1afXKYC0ipjXWAIkiihnEEycCIQMbkMNst7A==' expected_hash = b'\xD2\x98\x7A\xD8\xF2\x0E\x83\x16\xA8\x31\x26\x1B' \ b'\x74\xEF\x7B\x3E\x55\x15\x5D\x09\x22\xE0\x7F\xFE' \ b'\x54\x62\x08\x06\x98\x2B\x68\xA7\x3A\x5E\x3C\x47' \ b'\x8B\xAA\x5E\x77\x14\x13\x5C\xB2\x6D\x98\x07\x49' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:855: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError ____________________ TestCertificateHash.test_ecdsa_sha512 _____________________ self = def test_ecdsa_sha512(self): cert_der = b'MIIBjjCCATWgAwIBAgIQHVj2AGEwd6pOOSbcf0skQDAKBggqhkjOPQQ' \ b'DBDAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA3NTUzOV' \ b'oXDTE4MDUzMDA4MTUzOVowFTETMBEGA1UEAwwKU0VSVkVSMjAxNjBZM' \ b'BMGByqGSM49AgEGCCqGSM49AwEHA0IABL8d9S++MFpfzeH8B3vG/PjA' \ b'AWg8tGJVgsMw9nR+OfC9ltbTUwhB+yPk3JPcfW/bqsyeUgq4//LhaSp' \ b'lOWFNaNqjZzBlMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBg' \ b'EFBQcDAgYIKwYBBQUHAwEwFQYDVR0RBA4wDIIKU0VSVkVSMjAxNjAdB' \ b'gNVHQ4EFgQUKUkCgLlxoeai0EtQrZth1/BSc5kwCgYIKoZIzj0EAwQD' \ b'RwAwRAIgRrV7CLpDG7KueyFA3ZDced9dPOcv2Eydx/hgrfxYEcYCIBQ' \ b'D35JvzmqU05kSFV5eTvkhkaDObd7V55vokhm31+Li' expected_hash = b'\xE5\xCB\x68\xB2\xF8\x43\xD6\x3B\xF4\x0B\xCB\x20' \ b'\x07\x60\x8F\x81\x97\x61\x83\x92\x78\x3F\x23\x30' \ b'\xE5\xEF\x19\xA5\xBD\x8F\x0B\x2F\xAA\xC8\x61\x85' \ b'\x5F\xBB\x63\xA2\x21\xCC\x46\xFC\x1E\x22\x6A\x07' \ b'\x24\x11\xAF\x17\x5D\xDE\x47\x92\x81\xE0\x06\x87' \ b'\x8B\x34\x80\x59' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:876: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError _____________ TestCertificateHash.test_invalid_signature_algorithm _____________ self = def test_invalid_signature_algorithm(self): # Manually edited from test_ecdsa_sha512 to change the OID to '1.2.840.10045.4.3.5' cert_der = b'MIIBjjCCATWgAwIBAgIQHVj2AGEwd6pOOSbcf0skQDAKBggqhkjOPQQ' \ b'DBTAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA3NTUzOV' \ b'oXDTE4MDUzMDA4MTUzOVowFTETMBEGA1UEAwwKU0VSVkVSMjAxNjBZM' \ b'BMGByqGSM49AgEGCCqGSM49AwEHA0IABL8d9S++MFpfzeH8B3vG/PjA' \ b'AWg8tGJVgsMw9nR+OfC9ltbTUwhB+yPk3JPcfW/bqsyeUgq4//LhaSp' \ b'lOWFNaNqjZzBlMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBg' \ b'EFBQcDAgYIKwYBBQUHAwEwFQYDVR0RBA4wDIIKU0VSVkVSMjAxNjAdB' \ b'gNVHQ4EFgQUKUkCgLlxoeai0EtQrZth1/BSc5kwCgYIKoZIzj0EAwUD' \ b'RwAwRAIgRrV7CLpDG7KueyFA3ZDced9dPOcv2Eydx/hgrfxYEcYCIBQ' \ b'D35JvzmqU05kSFV5eTvkhkaDObd7V55vokhm31+Li' expected_hash = None expected_warning = "Failed to get signature algorithm from " \ "certificate, unable to pass channel bindings:" with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:898: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError _______________________ TestCertificateHash.test_rsa_md5 _______________________ self = def test_rsa_md5(self): cert_der = b'MIIDGzCCAgOgAwIBAgIQJzshhViMG5hLHIJHxa+TcTANBgkqhkiG9w0' \ b'BAQQFADAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA4MD' \ b'MxNloXDTE4MDUzMDA4MjMxNlowFTETMBEGA1UEAwwKU0VSVkVSMjAxN' \ b'jCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN9N5GAzI7uq' \ b'AVlI6vUqhY5+EZWCWWGRwR3FT2DEXE5++AiJxXO0i0ZfAkLu7UggtBe' \ b'QwVNkaPD27EYzVUhy1iDo37BrFcLNpfjsjj8wVjaSmQmqvLvrvEh/BT' \ b'C5SBgDrk2+hiMh9PrpJoB3QAMDinz5aW0rEXMKitPBBiADrczyYrliF' \ b'AlEU6pTlKEKDUAeP7dKOBlDbCYvBxKnR3ddVH74I5T2SmNBq5gzkbKP' \ b'nlCXdHLZSh74USu93rKDZQF8YzdTO5dcBreJDJsntyj1o49w9WCt6M7' \ b'+pg6vKvE+tRbpCm7kXq5B9PDi42Nb6//MzNaMYf9V7v5MHapvVSv3+y' \ b'sCAwEAAaNnMGUwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGA' \ b'QUFBwMCBggrBgEFBQcDATAVBgNVHREEDjAMggpTRVJWRVIyMDE2MB0G' \ b'A1UdDgQWBBTh4L2Clr9ber6yfY3JFS3wiECL4DANBgkqhkiG9w0BAQQ' \ b'FAAOCAQEA0JK/SL7SP9/nvqWp52vnsxVefTFehThle5DLzagmms/9gu' \ b'oSE2I9XkQIttFMprPosaIZWt7WP42uGcZmoZOzU8kFFYJMfg9Ovyca+' \ b'gnG28jDUMF1E74KrC7uynJiQJ4vPy8ne7F3XJ592LsNJmK577l42gAW' \ b'u08p3TvEJFNHy2dBk/IwZp0HIPr9+JcPf7v0uL6lK930xHJHP56XLzN' \ b'YG8vCMpJFR7wVZp3rXkJQUy3GxyHPJPjS8S43I9j+PoyioWIMEotq2+' \ b'q0IpXU/KeNFkdGV6VPCmzhykijExOMwO6doUzIUM8orv9jYLHXYC+i6' \ b'IFKSb6runxF1MAik+GCSA==' expected_hash = b'\x23\x34\xB8\x47\x6C\xBF\x4E\x6D\xFC\x76\x6A\x5D' \ b'\x5A\x30\xD6\x64\x9C\x01\xBA\xE1\x66\x2A\x5C\x3A' \ b'\x13\x02\xA9\x68\xD7\xC6\xB0\xF6' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:684: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError ______________________ TestCertificateHash.test_rsa_sha1 _______________________ self = def test_rsa_sha1(self): cert_der = b'MIIDGzCCAgOgAwIBAgIQJg/Mf5sR55xApJRK+kabbTANBgkqhkiG9w0' \ b'BAQUF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DdI11kPLq4EiwxvPanCg==' expected_hash = b'\x14\xCF\xE8\xE4\xB3\x32\xB2\x0A\x34\x3F\xC8\x40' \ b'\xB1\x8F\x9F\x6F\x78\x92\x6A\xFE\x7E\xC3\xE7\xB8' \ b'\xE2\x89\x69\x61\x9B\x1E\x8F\x3E' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:712: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError _____________________ TestCertificateHash.test_rsa_sha256 ______________________ self = def test_rsa_sha256(self): cert_der = b'MIIDGzCCAgOgAwIBAgIQWkeAtqoFg6pNWF7xC4YXhTANBgkqhkiG9w0' \ b'BAQsFADAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUyNzA5MD' \ b'I0NFoXDTE4MDUyNzA5MjI0NFowFTETMBEGA1UE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x87\xA8\x90\xB6\xD8\xDF\xDF\x4A\x81' \ b'\xBE\xF9\x67\x59\x70\xDA\xDB\x26' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:740: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError _____________________ TestCertificateHash.test_rsa_sha384 ______________________ self = def test_rsa_sha384(self): cert_der = b'MIIDGzCCAgOgAwIBAgIQEmj1prSSQYRL2zYBEjsm5jANBgkqhkiG9w0' \ b'BAQwFADAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA4MD' \ b'MxN1oXDTE4MDUzMDA4MjMxN1owFTETMBEGA1UEAwwKU0VSVkVSMjAxN' \ b'jCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKsK5NvHi4xO' \ b'081fRLMmPqKsKaHvXg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\x11\x1C' \ b'\x5C\x96\x5E\x10\x75\x07\xCB\x41\x98\xC0\x9F\xEC' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:769: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError _____________________ TestCertificateHash.test_rsa_sha512 ______________________ self = def test_rsa_sha512(self): cert_der = b'MIIDGzCCAgOgAwIBAgIQUDHcKGevZohJV+TkIIYC1DANBgkqhkiG9w0' \ b'BAQ0FADAVMRMwEQYDVQQDDApTRVJWRVIyMDE2MB4XDTE3MDUzMDA4MD' \ b'MxN1oXDTE4MDUzMDA4MjMxN1owFTETMBEGA1UEAwwKU0VSVkVSMjAxN' \ b'jCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKr9bo/XXvHt' \ b'D6Qnhb1wyLg9lDQxxe/enH49LQiht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\xBB\x02\x07\xDF\x11\x31' \ b'\x4C\x67\x38\xBC\xAE\xD7\xE0\x71\xD7\xBF\xBF\x2C' \ b'\x9D\xFA\xB8\x5D' > actual_hash = _get_certificate_hash(base64.b64decode(cert_der)) tests/test_requests_kerberos.py:800: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ requests_kerberos/kerberos_.py:100: in _get_certificate_hash cert = x509.load_der_x509_certificate(certificate_der, default_backend()) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/__init__.py:8: in default_backend from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py:6: in from cryptography.hazmat.backends.openssl.backend import backend /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:63: in from cryptography.hazmat.bindings.openssl import binding _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import threading import types import typing import warnings import cryptography from cryptography import utils from cryptography.exceptions import InternalError > from cryptography.hazmat.bindings._openssl import ffi, lib E ModuleNotFoundError: No module named '_cffi_backend' /usr/lib64/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:14: ModuleNotFoundError =============================== warnings summary =============================== requests_kerberos/kerberos_.py:85 /builddir/build/BUILD/requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42/requests_kerberos/kerberos_.py:85: DeprecationWarning: invalid escape sequence '\s' regex = re.compile('(?:.*,)*\s*Negotiate\s*([^,]*),?', re.I) tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_200 tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_200_mutual_auth_optional_hard_failure tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_200_mutual_auth_optional_soft_failure tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_200_mutual_auth_required_failure tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_200_mutual_auth_required_failure_2 tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_401 tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_401_rejected tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_500_mutual_auth_optional_failure tests/test_requests_kerberos.py::KerberosTestCase::test_handle_response_500_mutual_auth_required_failure /builddir/build/BUILD/requests-kerberos-393e49c698904c76ad9f56c6e4dbd2dbc55a7c42/requests_kerberos/kerberos_.py:158: NoCertificateRetrievedWarning: Requests is running with a non urllib3 backend, cannot retrieve server certificate for CBT warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_ecdsa_sha1 FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_ecdsa_sha256 FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_ecdsa_sha384 FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_ecdsa_sha512 FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_invalid_signature_algorithm FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_rsa_md5 - M... FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_rsa_sha1 - ... FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_rsa_sha256 FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_rsa_sha384 FAILED tests/test_requests_kerberos.py::TestCertificateHash::test_rsa_sha512 ============ 10 failed, 24 passed, 1 skipped, 10 warnings in 0.92s ============= RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.qgRtss (%check) Bad exit status from /var/tmp/rpm-tmp.qgRtss (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M b1452d6dd73e4fc7a39158586003884a -D /var/lib/mock/dist-ocs23-python311-build-57823-2203/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.lmspzmuu:/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-requests-kerberos.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: # /usr/bin/systemd-nspawn -q -M b1452d6dd73e4fc7a39158586003884a -D /var/lib/mock/dist-ocs23-python311-build-57823-2203/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.lmspzmuu:/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-requests-kerberos.spec