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-cheroot.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-81865-56187/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=991gid=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-cheroot.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-cheroot-10.0.0-2.oc9.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-cheroot.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-81865-56187/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=991gid=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-cheroot.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1Koa7O + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cheroot-10.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cheroot-10.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cheroot-10.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's/ --numprocesses=auto//' pytest.ini + sed -i -e /--cov=/d -e '/--cov-report /d' pytest.ini + sed -i /setuptools_scm_git_archive/d setup.cfg + sed -i /pypytools/d cheroot/test/test_server.py + sed -i '/getfixturevalue('\''_garbage_bin'\'')/d' cheroot/test/test_server.py + sed -i /jaraco.context/d cheroot/test/test_wsgi.py + sed -i '39 i @pytest.mark.skip()' cheroot/test/test_wsgi.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3ngpuO + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd cheroot-10.0.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /usr/lib/python3.11/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) WARNING: The wheel package is not available. /usr/lib/python3.11/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output warnings.warn("git archive did not support describe output") /usr/lib/python3.11/site-packages/setuptools_scm/_integration/setuptools.py:90: UserWarning: version of None already set warnings.warn(f"version of {dist_name} already set") running build running build_py creating build creating build/lib creating build/lib/cheroot copying cheroot/cli.py -> build/lib/cheroot copying cheroot/connections.py -> build/lib/cheroot copying cheroot/_compat.py -> build/lib/cheroot copying cheroot/__init__.py -> build/lib/cheroot copying cheroot/testing.py -> build/lib/cheroot copying cheroot/server.py -> build/lib/cheroot copying cheroot/wsgi.py -> build/lib/cheroot copying cheroot/__main__.py -> build/lib/cheroot copying cheroot/makefile.py -> build/lib/cheroot copying cheroot/errors.py -> build/lib/cheroot creating build/lib/cheroot/test copying cheroot/test/test_dispatch.py -> build/lib/cheroot/test copying cheroot/test/test_wsgi.py -> build/lib/cheroot/test copying cheroot/test/__init__.py -> build/lib/cheroot/test copying cheroot/test/test_makefile.py -> build/lib/cheroot/test copying cheroot/test/test_cli.py -> build/lib/cheroot/test copying cheroot/test/conftest.py -> build/lib/cheroot/test copying cheroot/test/test_errors.py -> build/lib/cheroot/test copying cheroot/test/test_ssl.py -> build/lib/cheroot/test copying cheroot/test/_pytest_plugin.py -> build/lib/cheroot/test copying cheroot/test/test_server.py -> build/lib/cheroot/test copying cheroot/test/test__compat.py -> build/lib/cheroot/test copying cheroot/test/test_core.py -> build/lib/cheroot/test copying cheroot/test/helper.py -> build/lib/cheroot/test copying cheroot/test/test_conn.py -> build/lib/cheroot/test copying cheroot/test/webtest.py -> build/lib/cheroot/test creating build/lib/cheroot/ssl copying cheroot/ssl/pyopenssl.py -> build/lib/cheroot/ssl copying cheroot/ssl/builtin.py -> build/lib/cheroot/ssl copying cheroot/ssl/__init__.py -> build/lib/cheroot/ssl creating build/lib/cheroot/workers copying cheroot/workers/threadpool.py -> build/lib/cheroot/workers copying cheroot/workers/__init__.py -> build/lib/cheroot/workers running egg_info writing cheroot.egg-info/PKG-INFO writing dependency_links to cheroot.egg-info/dependency_links.txt writing entry points to cheroot.egg-info/entry_points.txt writing requirements to cheroot.egg-info/requires.txt writing top-level names to cheroot.egg-info/top_level.txt WARNING setuptools_scm._file_finders.git git archive detected - fallback to listing all files adding license file 'LICENSE.md' writing manifest file 'cheroot.egg-info/SOURCES.txt' copying cheroot/__init__.pyi -> build/lib/cheroot copying cheroot/_compat.pyi -> build/lib/cheroot copying cheroot/cli.pyi -> build/lib/cheroot copying cheroot/connections.pyi -> build/lib/cheroot copying cheroot/errors.pyi -> build/lib/cheroot copying cheroot/makefile.pyi -> build/lib/cheroot copying cheroot/py.typed -> build/lib/cheroot copying cheroot/server.pyi -> build/lib/cheroot copying cheroot/testing.pyi -> build/lib/cheroot copying cheroot/wsgi.pyi -> build/lib/cheroot copying cheroot/ssl/__init__.pyi -> build/lib/cheroot/ssl copying cheroot/ssl/builtin.pyi -> build/lib/cheroot/ssl copying cheroot/ssl/pyopenssl.pyi -> build/lib/cheroot/ssl copying cheroot/workers/__init__.pyi -> build/lib/cheroot/workers copying cheroot/workers/threadpool.pyi -> build/lib/cheroot/workers + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.4Pa5sR + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch ++ dirname /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch + cd cheroot-10.0.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch /usr/lib/python3.11/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) WARNING: The wheel package is not available. /usr/lib/python3.11/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output warnings.warn("git archive did not support describe output") /usr/lib/python3.11/site-packages/setuptools_scm/_integration/setuptools.py:90: UserWarning: version of None already set warnings.warn(f"version of {dist_name} already set") running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/cli.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/connections.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/_compat.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_dispatch.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_wsgi.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_makefile.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_cli.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/conftest.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_errors.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_ssl.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/_pytest_plugin.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_server.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test__compat.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_core.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/helper.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/test_conn.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/test/webtest.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test copying build/lib/cheroot/__init__.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/testing.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/server.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/_compat.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/makefile.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/server.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/errors.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/wsgi.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/pyopenssl.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/builtin.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/builtin.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/__init__.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/pyopenssl.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl copying build/lib/cheroot/wsgi.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot creating /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers copying build/lib/cheroot/workers/threadpool.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers copying build/lib/cheroot/workers/__init__.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers copying build/lib/cheroot/workers/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers copying build/lib/cheroot/workers/threadpool.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers copying build/lib/cheroot/__main__.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/testing.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/cli.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/makefile.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/connections.pyi -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/errors.py -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot copying build/lib/cheroot/py.typed -> /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/cli.py to cli.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/connections.py to connections.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/_compat.py to _compat.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_dispatch.py to test_dispatch.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_wsgi.py to test_wsgi.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_makefile.py to test_makefile.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_cli.py to test_cli.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/conftest.py to conftest.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_errors.py to test_errors.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_ssl.py to test_ssl.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/_pytest_plugin.py to _pytest_plugin.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_server.py to test_server.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test__compat.py to test__compat.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_core.py to test_core.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/helper.py to helper.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/test_conn.py to test_conn.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/test/webtest.py to webtest.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/testing.py to testing.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/server.py to server.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl/pyopenssl.py to pyopenssl.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl/builtin.py to builtin.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/ssl/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/wsgi.py to wsgi.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers/threadpool.py to threadpool.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/workers/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/__main__.py to __main__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/makefile.py to makefile.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot/errors.py to errors.cpython-311.pyc writing byte-compilation script '/tmp/tmp9jxe7t2l.py' /usr/bin/python3 /tmp/tmp9jxe7t2l.py removing /tmp/tmp9jxe7t2l.py running install_egg_info running egg_info writing cheroot.egg-info/PKG-INFO writing dependency_links to cheroot.egg-info/dependency_links.txt writing entry points to cheroot.egg-info/entry_points.txt writing requirements to cheroot.egg-info/requires.txt writing top-level names to cheroot.egg-info/top_level.txt WARNING setuptools_scm._file_finders.git git archive detected - fallback to listing all files adding license file 'LICENSE.md' writing manifest file 'cheroot.egg-info/SOURCES.txt' Copying cheroot.egg-info to /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11/site-packages/cheroot-10.0.0-py3.11.egg-info running install_scripts Installing cheroot script to /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/bin + rm -rfv /builddir/build/BUILDROOT/python-cheroot-10.0.0-2.oc9.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 10.0.0-2.oc9 --unique-debug-suffix -10.0.0-2.oc9.noarch --unique-debug-src-base python-cheroot-10.0.0-2.oc9.noarch -S debugsourcefiles.list /builddir/build/BUILD/cheroot-10.0.0 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-cheroot-10.0.0-2.oc9.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.G4hD2O + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd cheroot-10.0.0 + LANG=C.utf-8 + /usr/bin/python3 -m pytest --ignore=build -W ignore::DeprecationWarning -p no:unraisableexception ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/cheroot-10.0.0 configfile: pytest.ini testpaths: cheroot/test/ plugins: rerunfailures-12.0, mock-3.11.1, forked-1.6.0 collecting ... collected 182 items cheroot/test/test__compat.py::test_compat_functions_positive[ntob-bar-bar] PASSED [ 0%] cheroot/test/test__compat.py::test_compat_functions_positive[ntou-bar-bar] PASSED [ 1%] cheroot/test/test__compat.py::test_compat_functions_positive[bton-bar-bar] PASSED [ 1%] cheroot/test/test__compat.py::test_compat_functions_negative_nonnative[ntob] PASSED [ 2%] cheroot/test/test__compat.py::test_compat_functions_negative_nonnative[ntou] PASSED [ 2%] cheroot/test/test__compat.py::test_ntou_escape PASSED [ 3%] cheroot/test/test__compat.py::test_extract_bytes[qwerty-qwerty] PASSED [ 3%] cheroot/test/test__compat.py::test_extract_bytes[input_argument1-asdfgh] PASSED [ 4%] cheroot/test/test__compat.py::test_extract_bytes_invalid PASSED [ 4%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[192.168.1.1:80-expected_bind_addr0] PASSED [ 5%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[[::1]:8000-expected_bind_addr1] PASSED [ 6%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[localhost:5000-expected_bind_addr2] PASSED [ 6%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[foo@bar:5000-expected_bind_addr3] PASSED [ 7%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[foo-expected_bind_addr4] PASSED [ 7%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[123456789-expected_bind_addr5] PASSED [ 8%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[/tmp/cheroot.sock-/tmp/cheroot.sock] PASSED [ 8%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[/tmp/some-random-file-name-/tmp/some-random-file-name] PASSED [ 9%] cheroot/test/test_cli.py::test_parse_wsgi_bind_addr[@cheroot-\x00cheroot] PASSED [ 9%] cheroot/test/test_cli.py::test_Aplication_resolve[None-application] PASSED [ 10%] cheroot/test/test_cli.py::test_Aplication_resolve[application-application] PASSED [ 10%] cheroot/test/test_cli.py::test_Aplication_resolve[main-main] PASSED [ 11%] cheroot/test/test_conn.py::test_HTTP11_persistent_connections PASSED [ 12%] cheroot/test/test_conn.py::test_streaming_11[False] PASSED [ 12%] cheroot/test/test_conn.py::test_streaming_11[True] PASSED [ 13%] cheroot/test/test_conn.py::test_streaming_10[False] PASSED [ 13%] cheroot/test/test_conn.py::test_streaming_10[True] PASSED [ 14%] cheroot/test/test_conn.py::test_keepalive[HTTP/1.0] PASSED [ 14%] cheroot/test/test_conn.py::test_keepalive[HTTP/1.1] PASSED [ 15%] cheroot/test/test_conn.py::test_keepalive_conn_management PASSED [ 15%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[socket.error(ECONNRESET)] PASSED [ 16%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[socket.error(EPIPE)] PASSED [ 17%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[simulated socket.error(ENOTCONN)] PASSED [ 17%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[real socket.error(ENOTCONN)] PASSED [ 18%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[socket.error(ESHUTDOWN)] PASSED [ 18%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[RuntimeError(666)] PASSED [ 19%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[socket.error(-1)] PASSED [ 19%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[ConnectionResetError(ECONNRESET)] PASSED [ 20%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[BrokenPipeError(EPIPE)] PASSED [ 20%] cheroot/test/test_conn.py::test_broken_connection_during_tcp_fin[BrokenPipeError(ESHUTDOWN)] PASSED [ 21%] cheroot/test/test_conn.py::test_HTTP11_Timeout[True] PASSED [ 21%] cheroot/test/test_conn.py::test_HTTP11_Timeout[False] PASSED [ 22%] cheroot/test/test_conn.py::test_HTTP11_Timeout_after_request PASSED [ 23%] cheroot/test/test_conn.py::test_HTTP11_pipelining PASSED [ 23%] cheroot/test/test_conn.py::test_100_Continue PASSED [ 24%] cheroot/test/test_conn.py::test_readall_or_close[0] PASSED [ 24%] cheroot/test/test_conn.py::test_readall_or_close[1001] PASSED [ 25%] cheroot/test/test_conn.py::test_No_Message_Body PASSED [ 25%] cheroot/test/test_conn.py::test_Chunked_Encoding XFAIL (Headers from...) [ 26%] cheroot/test/test_conn.py::test_Content_Length_in PASSED [ 26%] cheroot/test/test_conn.py::test_Content_Length_not_int PASSED [ 27%] cheroot/test/test_conn.py::test_Content_Length_out[/wrong_cl_buffered-500-The requested resource returned more bytes than the declared Content-Length.] PASSED [ 28%] cheroot/test/test_conn.py::test_Content_Length_out[/wrong_cl_unbuffered-200-I too] PASSED [ 28%] cheroot/test/test_conn.py::test_598 XFAIL (Sometimes this test fails...) [ 29%] cheroot/test/test_conn.py::test_No_CRLF[\n\n] PASSED [ 29%] cheroot/test/test_conn.py::test_No_CRLF[\r\n\n] PASSED [ 30%] cheroot/test/test_conn.py::test_invalid_selected_connection PASSED [ 30%] cheroot/test/test_core.py::test_http_connect_request PASSED [ 31%] cheroot/test/test_core.py::test_normal_request PASSED [ 31%] cheroot/test/test_core.py::test_query_string_request PASSED [ 32%] cheroot/test/test_core.py::test_parse_acceptable_uri[/hello] PASSED [ 32%] cheroot/test/test_core.py::test_parse_acceptable_uri[/query_string?test=True] PASSED [ 33%] cheroot/test/test_core.py::test_parse_acceptable_uri[/%D0%AE%D1%85%D1%85%D1%83%D1%83%D1%83?%D1%97=%D0%B9%D0%BE] PASSED [ 34%] cheroot/test/test_core.py::test_parse_uri_unsafe_uri PASSED [ 34%] cheroot/test/test_core.py::test_parse_uri_invalid_uri PASSED [ 35%] cheroot/test/test_core.py::test_parse_no_leading_slash_invalid[hello] PASSED [ 35%] cheroot/test/test_core.py::test_parse_no_leading_slash_invalid[\u043f\u0440\u0438\u0432\u0456\u0442] PASSED [ 36%] cheroot/test/test_core.py::test_parse_uri_absolute_uri PASSED [ 36%] cheroot/test/test_core.py::test_parse_uri_asterisk_uri PASSED [ 37%] cheroot/test/test_core.py::test_parse_uri_fragment_uri PASSED [ 37%] cheroot/test/test_core.py::test_no_content_length PASSED [ 38%] cheroot/test/test_core.py::test_content_length_required PASSED [ 39%] cheroot/test/test_core.py::test_large_request XFAIL (https://github....) [ 39%] cheroot/test/test_core.py::test_malformed_request_line[GET /-400-Malformed Request-Line] PASSED [ 40%] cheroot/test/test_core.py::test_malformed_request_line[GET / HTTPS/1.1-400-Malformed Request-Line: bad protocol] PASSED [ 40%] cheroot/test/test_core.py::test_malformed_request_line[GET / HTTP/1-400-Malformed Request-Line: bad version] PASSED [ 41%] cheroot/test/test_core.py::test_malformed_request_line[GET / HTTP/2.15-505-Cannot fulfill request] PASSED [ 41%] cheroot/test/test_core.py::test_malformed_http_method PASSED [ 42%] cheroot/test/test_core.py::test_malformed_header PASSED [ 42%] cheroot/test/test_core.py::test_request_line_split_issue_1220 PASSED [ 43%] cheroot/test/test_core.py::test_garbage_in PASSED [ 43%] cheroot/test/test_core.py::test_send_header_before_closing PASSED [ 44%] cheroot/test/test_dispatch.py::test_dispatch_no_script_name PASSED [ 45%] cheroot/test/test_errors.py::test_plat_specific_errors[err_names0-err_nums0] PASSED [ 45%] cheroot/test/test_errors.py::test_plat_specific_errors[err_names1-err_nums1] PASSED [ 46%] cheroot/test/test_makefile.py::test_bytes_read PASSED [ 46%] cheroot/test/test_makefile.py::test_bytes_written PASSED [ 47%] cheroot/test/test_server.py::test_prepare_makes_server_ready PASSED [ 47%] cheroot/test/test_server.py::test_stop_interrupts_serve PASSED [ 48%] cheroot/test/test_server.py::test_server_interrupt[OSError0] PASSED [ 48%] cheroot/test/test_server.py::test_server_interrupt[KeyboardInterrupt] PASSED [ 49%] cheroot/test/test_server.py::test_server_interrupt[OSError1] PASSED [ 50%] cheroot/test/test_server.py::test_server_interrupt[RuntimeError] PASSED [ 50%] cheroot/test/test_server.py::test_serving_is_false_and_stop_returns_after_ctrlc PASSED [ 51%] cheroot/test/test_server.py::test_bind_addr_inet[0.0.0.0] PASSED [ 51%] cheroot/test/test_server.py::test_bind_addr_inet[::] PASSED [ 52%] cheroot/test/test_server.py::test_bind_addr_unix[abstract] PASSED [ 52%] cheroot/test/test_server.py::test_bind_addr_unix[file] PASSED [ 53%] cheroot/test/test_server.py::test_bind_addr_unix_abstract PASSED [ 53%] cheroot/test/test_server.py::test_peercreds_unix_sock[abstract] RERUN [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[abstract] RERUN [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[abstract] RERUN [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[abstract] FAILED [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[file] RERUN [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[file] RERUN [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[file] RERUN [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock[file] FAILED [ 54%] cheroot/test/test_server.py::test_peercreds_unix_sock_with_lookup[abstract] FAILED [ 55%] cheroot/test/test_server.py::test_peercreds_unix_sock_with_lookup[file] FAILED [ 56%] cheroot/test/test_server.py::test_high_number_of_file_descriptors[1024] PASSED [ 56%] cheroot/test/test_server.py::test_high_number_of_file_descriptors[2048] PASSED [ 57%] cheroot/test/test_server.py::test_reuse_port[0.0.0.0] PASSED [ 57%] cheroot/test/test_server.py::test_reuse_port[::] PASSED [ 58%] cheroot/test/test_server.py::test_threadpool_threadrange_set[1--2-inf] PASSED [ 58%] cheroot/test/test_server.py::test_threadpool_threadrange_set[1--1-inf] PASSED [ 59%] cheroot/test/test_server.py::test_threadpool_threadrange_set[1-1-1] PASSED [ 59%] cheroot/test/test_server.py::test_threadpool_threadrange_set[1-2-2] PASSED [ 60%] cheroot/test/test_server.py::test_threadpool_threadrange_set[1-inf-inf] PASSED [ 60%] cheroot/test/test_server.py::test_threadpool_threadrange_set[2--2-inf] PASSED [ 61%] cheroot/test/test_server.py::test_threadpool_threadrange_set[2--1-inf] PASSED [ 62%] cheroot/test/test_server.py::test_threadpool_threadrange_set[2-2-2] PASSED [ 62%] cheroot/test/test_server.py::test_threadpool_threadrange_set[2-inf-inf] PASSED [ 63%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[-1--1-min=-1 must be > 0] PASSED [ 63%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[-1-0-min=-1 must be > 0] PASSED [ 64%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[-1-1-min=-1 must be > 0] PASSED [ 64%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[-1-2-min=-1 must be > 0] PASSED [ 65%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[0--1-min=0 must be > 0] PASSED [ 65%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[0-0-min=0 must be > 0] PASSED [ 66%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[0-1-min=0 must be > 0] PASSED [ 67%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[0-2-min=0 must be > 0] PASSED [ 67%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[1-0-Expected an integer or the infinity value for the `max` argument but got 0.] PASSED [ 68%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[1-0.5-Expected an integer or the infinity value for the `max` argument but got 0.5.] PASSED [ 68%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[2-0-Expected an integer or the infinity value for the `max` argument but got 0.] PASSED [ 69%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[2-1-Expected an integer or the infinity value for the `max` argument but got '1'.] PASSED [ 69%] cheroot/test/test_server.py::test_threadpool_invalid_threadrange[2-1-max=1 must be > min=2] PASSED [ 70%] cheroot/test/test_server.py::test_threadpool_multistart_validation PASSED [ 70%] cheroot/test/test_ssl.py::test_ssl_adapters[builtin] PASSED [ 71%] cheroot/test/test_ssl.py::test_ssl_adapters[pyopenssl] PASSED [ 71%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-localhost-builtin] PASSED [ 72%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-localhost-pyopenssl] PASSED [ 73%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-127.0.0.1-builtin] PASSED [ 73%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-127.0.0.1-pyopenssl] PASSED [ 74%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-*.localhost-builtin] PASSED [ 74%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-*.localhost-pyopenssl] PASSED [ 75%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-not_localhost-builtin] PASSED [ 75%] cheroot/test/test_ssl.py::test_tls_client_auth[0-True-not_localhost-pyopenssl] PASSED [ 76%] cheroot/test/test_ssl.py::test_tls_client_auth[0-False-localhost-builtin] PASSED [ 76%] cheroot/test/test_ssl.py::test_tls_client_auth[0-False-localhost-pyopenssl] PASSED [ 77%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-localhost-builtin] PASSED [ 78%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-localhost-pyopenssl] PASSED [ 78%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-127.0.0.1-builtin] PASSED [ 79%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-127.0.0.1-pyopenssl] PASSED [ 79%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-*.localhost-builtin] PASSED [ 80%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-*.localhost-pyopenssl] PASSED [ 80%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-not_localhost-builtin] PASSED [ 81%] cheroot/test/test_ssl.py::test_tls_client_auth[1-True-not_localhost-pyopenssl] PASSED [ 81%] cheroot/test/test_ssl.py::test_tls_client_auth[1-False-localhost-builtin] PASSED [ 82%] cheroot/test/test_ssl.py::test_tls_client_auth[1-False-localhost-pyopenssl] PASSED [ 82%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-localhost-builtin] PASSED [ 83%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-localhost-pyopenssl] PASSED [ 84%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-127.0.0.1-builtin] PASSED [ 84%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-127.0.0.1-pyopenssl] PASSED [ 85%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-*.localhost-builtin] PASSED [ 85%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-*.localhost-pyopenssl] PASSED [ 86%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-not_localhost-builtin] PASSED [ 86%] cheroot/test/test_ssl.py::test_tls_client_auth[2-True-not_localhost-pyopenssl] PASSED [ 87%] cheroot/test/test_ssl.py::test_tls_client_auth[2-False-localhost-builtin] PASSED [ 87%] cheroot/test/test_ssl.py::test_tls_client_auth[2-False-localhost-pyopenssl] PASSED [ 88%] cheroot/test/test_ssl.py::test_ssl_env[0-False-builtin] PASSED [ 89%] cheroot/test/test_ssl.py::test_ssl_env[0-False-pyopenssl] PASSED [ 89%] cheroot/test/test_ssl.py::test_ssl_env[0-True-builtin] PASSED [ 90%] cheroot/test/test_ssl.py::test_ssl_env[0-True-pyopenssl] PASSED [ 90%] cheroot/test/test_ssl.py::test_ssl_env[1-False-builtin] PASSED [ 91%] cheroot/test/test_ssl.py::test_ssl_env[1-False-pyopenssl] PASSED [ 91%] cheroot/test/test_ssl.py::test_ssl_env[1-True-builtin] PASSED [ 92%] cheroot/test/test_ssl.py::test_ssl_env[1-True-pyopenssl] PASSED [ 92%] cheroot/test/test_ssl.py::test_ssl_env[2-True-builtin] PASSED [ 93%] cheroot/test/test_ssl.py::test_ssl_env[2-True-pyopenssl] PASSED [ 93%] cheroot/test/test_ssl.py::test_https_over_http_error[0.0.0.0] PASSED [ 94%] cheroot/test/test_ssl.py::test_https_over_http_error[::] PASSED [ 95%] cheroot/test/test_ssl.py::test_http_over_https_error[0.0.0.0-builtin] PASSED [ 95%] cheroot/test/test_ssl.py::test_http_over_https_error[0.0.0.0-pyopenssl] PASSED [ 96%] cheroot/test/test_ssl.py::test_http_over_https_error[::-builtin] PASSED [ 96%] cheroot/test/test_ssl.py::test_http_over_https_error[::-pyopenssl] PASSED [ 97%] cheroot/test/test_wsgi.py::test_connection_keepalive SKIPPED (uncond...) [ 97%] cheroot/test/test_wsgi.py::test_gateway_start_response_called_twice PASSED [ 98%] cheroot/test/test_wsgi.py::test_gateway_write_needs_start_response_called_before PASSED [ 98%] cheroot/test/webtest.py::cheroot.test.webtest.WebCase.getPage PASSED [ 99%] cheroot/test/webtest.py::cheroot.test.webtest.strip_netloc PASSED [100%] =================================== FAILURES =================================== ______________________ test_peercreds_unix_sock[abstract] ______________________ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: > conn = self._get_connection(request, verify, proxies) cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests/adapters.py:383: in _get_connection conn = self.poolmanager.connection_from_host( host_params = {'host': '%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f', 'port': None, 'scheme': 'http+unix'} pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} proxies = OrderedDict() proxy = None request = self = verify = True /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:246: in connection_from_host return self.connection_from_context(request_context) host = '%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f' pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} port = 80 request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f', 'maxsize': 10, ...} scheme = 'http+unix' self = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f', 'maxsize': 10, ...} def connection_from_context(self, request_context): """ Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. ``request_context`` must at least contain the ``scheme`` key and its value must be a key in ``key_fn_by_scheme`` instance variable. """ scheme = request_context["scheme"].lower() pool_key_constructor = self.key_fn_by_scheme.get(scheme) if not pool_key_constructor: > raise URLSchemeUnknown(scheme) E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix pool_key_constructor = None request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f', 'maxsize': 10, ...} scheme = 'http+unix' self = /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:258: URLSchemeUnknown During handling of the above exception, another exception occurred: http_request_timeout = 0.1 peercreds_enabled_server = @unix_only_sock_test @non_macos_sock_test @pytest.mark.flaky(reruns=3, reruns_delay=2) def test_peercreds_unix_sock(http_request_timeout, peercreds_enabled_server): """Check that ``PEERCRED`` lookup works when enabled.""" httpserver = peercreds_enabled_server bind_addr = httpserver.bind_addr if isinstance(bind_addr, bytes): bind_addr = bind_addr.decode() # pylint: disable=possibly-unused-variable quoted = urllib.parse.quote(bind_addr, safe='') unix_base_uri = 'http+unix://{quoted}'.format(**locals()) expected_peercreds = os.getpid(), os.getuid(), os.getgid() expected_peercreds = '|'.join(map(str, expected_peercreds)) with requests_unixsocket.monkeypatch(): > peercreds_resp = requests.get( unix_base_uri + PEERCRED_IDS_URI, timeout=http_request_timeout, ) bind_addr = '\x00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f' expected_peercreds = '2140658|991|135' http_request_timeout = 0.1 httpserver = peercreds_enabled_server = quoted = '%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f' unix_base_uri = 'http+unix://%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f' cheroot/test/test_server.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:51: in get return request('get', url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} url = 'http+unix://%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f/peer_creds/ids' /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:46: in request return session.request(method=method, url=url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} method = 'get' session = url = 'http+unix://%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f/peer_creds/ids' /usr/lib/python3.11/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) allow_redirects = True auth = None cert = None cookies = None data = None files = None headers = None hooks = None json = None method = 'get' params = None prep = proxies = {} req = self = send_kwargs = {'allow_redirects': True, 'cert': None, 'proxies': OrderedDict(), 'stream': False, ...} settings = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'verify': True} stream = None timeout = 0.1 url = 'http+unix://%00cheroot-test-socket9824c0ed-d847-4c19-b760-d6bfad28ff5f/peer_creds/ids' verify = None /usr/lib/python3.11/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) adapter = allow_redirects = True hooks = {'response': []} kwargs = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': 0.1, ...} request = self = start = 1721099234.2676027 stream = False _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self._get_connection(request, verify, proxies) except LocationValueError as e: > raise InvalidURL(e, request=request) E requests.exceptions.InvalidURL: Not supported URL scheme http+unix cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:514: InvalidURL ________________________ test_peercreds_unix_sock[file] ________________________ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: > conn = self._get_connection(request, verify, proxies) cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests/adapters.py:383: in _get_connection conn = self.poolmanager.connection_from_host( host_params = {'host': '%2Ftmp%2Ftmp42zqoa35', 'port': None, 'scheme': 'http+unix'} pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} proxies = OrderedDict() proxy = None request = self = verify = True /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:246: in connection_from_host return self.connection_from_context(request_context) host = '%2Ftmp%2Ftmp42zqoa35' pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} port = 80 request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftmp42zqoa35', 'maxsize': 10, ...} scheme = 'http+unix' self = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftmp42zqoa35', 'maxsize': 10, ...} def connection_from_context(self, request_context): """ Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. ``request_context`` must at least contain the ``scheme`` key and its value must be a key in ``key_fn_by_scheme`` instance variable. """ scheme = request_context["scheme"].lower() pool_key_constructor = self.key_fn_by_scheme.get(scheme) if not pool_key_constructor: > raise URLSchemeUnknown(scheme) E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix pool_key_constructor = None request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftmp42zqoa35', 'maxsize': 10, ...} scheme = 'http+unix' self = /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:258: URLSchemeUnknown During handling of the above exception, another exception occurred: http_request_timeout = 0.1 peercreds_enabled_server = @unix_only_sock_test @non_macos_sock_test @pytest.mark.flaky(reruns=3, reruns_delay=2) def test_peercreds_unix_sock(http_request_timeout, peercreds_enabled_server): """Check that ``PEERCRED`` lookup works when enabled.""" httpserver = peercreds_enabled_server bind_addr = httpserver.bind_addr if isinstance(bind_addr, bytes): bind_addr = bind_addr.decode() # pylint: disable=possibly-unused-variable quoted = urllib.parse.quote(bind_addr, safe='') unix_base_uri = 'http+unix://{quoted}'.format(**locals()) expected_peercreds = os.getpid(), os.getuid(), os.getgid() expected_peercreds = '|'.join(map(str, expected_peercreds)) with requests_unixsocket.monkeypatch(): > peercreds_resp = requests.get( unix_base_uri + PEERCRED_IDS_URI, timeout=http_request_timeout, ) bind_addr = '/tmp/tmp42zqoa35' expected_peercreds = '2140658|991|135' http_request_timeout = 0.1 httpserver = peercreds_enabled_server = quoted = '%2Ftmp%2Ftmp42zqoa35' unix_base_uri = 'http+unix://%2Ftmp%2Ftmp42zqoa35' cheroot/test/test_server.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:51: in get return request('get', url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} url = 'http+unix://%2Ftmp%2Ftmp42zqoa35/peer_creds/ids' /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:46: in request return session.request(method=method, url=url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} method = 'get' session = url = 'http+unix://%2Ftmp%2Ftmp42zqoa35/peer_creds/ids' /usr/lib/python3.11/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) allow_redirects = True auth = None cert = None cookies = None data = None files = None headers = None hooks = None json = None method = 'get' params = None prep = proxies = {} req = self = send_kwargs = {'allow_redirects': True, 'cert': None, 'proxies': OrderedDict(), 'stream': False, ...} settings = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'verify': True} stream = None timeout = 0.1 url = 'http+unix://%2Ftmp%2Ftmp42zqoa35/peer_creds/ids' verify = None /usr/lib/python3.11/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) adapter = allow_redirects = True hooks = {'response': []} kwargs = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': 0.1, ...} request = self = start = 1721099242.3103547 stream = False _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self._get_connection(request, verify, proxies) except LocationValueError as e: > raise InvalidURL(e, request=request) E requests.exceptions.InvalidURL: Not supported URL scheme http+unix cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:514: InvalidURL ________________ test_peercreds_unix_sock_with_lookup[abstract] ________________ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: > conn = self._get_connection(request, verify, proxies) cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests/adapters.py:383: in _get_connection conn = self.poolmanager.connection_from_host( host_params = {'host': '%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5', 'port': None, 'scheme': 'http+unix'} pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} proxies = OrderedDict() proxy = None request = self = verify = True /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:246: in connection_from_host return self.connection_from_context(request_context) host = '%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5' pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} port = 80 request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5', 'maxsize': 10, ...} scheme = 'http+unix' self = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5', 'maxsize': 10, ...} def connection_from_context(self, request_context): """ Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. ``request_context`` must at least contain the ``scheme`` key and its value must be a key in ``key_fn_by_scheme`` instance variable. """ scheme = request_context["scheme"].lower() pool_key_constructor = self.key_fn_by_scheme.get(scheme) if not pool_key_constructor: > raise URLSchemeUnknown(scheme) E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix pool_key_constructor = None request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5', 'maxsize': 10, ...} scheme = 'http+unix' self = /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:258: URLSchemeUnknown During handling of the above exception, another exception occurred: http_request_timeout = 0.1 peercreds_enabled_server = @pytest.mark.skipif( not IS_UID_GID_RESOLVABLE, reason='Modules `grp` and `pwd` are not available ' 'under the current platform', ) @unix_only_sock_test @non_macos_sock_test def test_peercreds_unix_sock_with_lookup( http_request_timeout, peercreds_enabled_server, ): """Check that ``PEERCRED`` resolution works when enabled.""" httpserver = peercreds_enabled_server httpserver.peercreds_resolve_enabled = True bind_addr = httpserver.bind_addr if isinstance(bind_addr, bytes): bind_addr = bind_addr.decode() # pylint: disable=possibly-unused-variable quoted = urllib.parse.quote(bind_addr, safe='') unix_base_uri = 'http+unix://{quoted}'.format(**locals()) import grp import pwd expected_textcreds = ( pwd.getpwuid(os.getuid()).pw_name, grp.getgrgid(os.getgid()).gr_name, ) expected_textcreds = '!'.join(map(str, expected_textcreds)) with requests_unixsocket.monkeypatch(): > peercreds_text_resp = requests.get( unix_base_uri + PEERCRED_TEXTS_URI, timeout=http_request_timeout, ) bind_addr = '\x00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5' expected_textcreds = 'mockbuild!mock' grp = http_request_timeout = 0.1 httpserver = peercreds_enabled_server = pwd = quoted = '%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5' unix_base_uri = 'http+unix://%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5' cheroot/test/test_server.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:51: in get return request('get', url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} url = 'http+unix://%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5/peer_creds/texts' /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:46: in request return session.request(method=method, url=url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} method = 'get' session = url = 'http+unix://%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5/peer_creds/texts' /usr/lib/python3.11/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) allow_redirects = True auth = None cert = None cookies = None data = None files = None headers = None hooks = None json = None method = 'get' params = None prep = proxies = {} req = self = send_kwargs = {'allow_redirects': True, 'cert': None, 'proxies': OrderedDict(), 'stream': False, ...} settings = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'verify': True} stream = None timeout = 0.1 url = 'http+unix://%00cheroot-test-socket15880ddd-e91a-4da6-8974-f5d303370cc5/peer_creds/texts' verify = None /usr/lib/python3.11/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) adapter = allow_redirects = True hooks = {'response': []} kwargs = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': 0.1, ...} request = self = start = 1721099242.8226023 stream = False _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self._get_connection(request, verify, proxies) except LocationValueError as e: > raise InvalidURL(e, request=request) E requests.exceptions.InvalidURL: Not supported URL scheme http+unix cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:514: InvalidURL __________________ test_peercreds_unix_sock_with_lookup[file] __________________ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: > conn = self._get_connection(request, verify, proxies) cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests/adapters.py:383: in _get_connection conn = self.poolmanager.connection_from_host( host_params = {'host': '%2Ftmp%2Ftmpipzy7k29', 'port': None, 'scheme': 'http+unix'} pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} proxies = OrderedDict() proxy = None request = self = verify = True /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:246: in connection_from_host return self.connection_from_context(request_context) host = '%2Ftmp%2Ftmpipzy7k29' pool_kwargs = {'cert_reqs': 'CERT_REQUIRED'} port = 80 request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftmpipzy7k29', 'maxsize': 10, ...} scheme = 'http+unix' self = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftmpipzy7k29', 'maxsize': 10, ...} def connection_from_context(self, request_context): """ Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. ``request_context`` must at least contain the ``scheme`` key and its value must be a key in ``key_fn_by_scheme`` instance variable. """ scheme = request_context["scheme"].lower() pool_key_constructor = self.key_fn_by_scheme.get(scheme) if not pool_key_constructor: > raise URLSchemeUnknown(scheme) E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix pool_key_constructor = None request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftmpipzy7k29', 'maxsize': 10, ...} scheme = 'http+unix' self = /usr/lib/python3.11/site-packages/urllib3/poolmanager.py:258: URLSchemeUnknown During handling of the above exception, another exception occurred: http_request_timeout = 0.1 peercreds_enabled_server = @pytest.mark.skipif( not IS_UID_GID_RESOLVABLE, reason='Modules `grp` and `pwd` are not available ' 'under the current platform', ) @unix_only_sock_test @non_macos_sock_test def test_peercreds_unix_sock_with_lookup( http_request_timeout, peercreds_enabled_server, ): """Check that ``PEERCRED`` resolution works when enabled.""" httpserver = peercreds_enabled_server httpserver.peercreds_resolve_enabled = True bind_addr = httpserver.bind_addr if isinstance(bind_addr, bytes): bind_addr = bind_addr.decode() # pylint: disable=possibly-unused-variable quoted = urllib.parse.quote(bind_addr, safe='') unix_base_uri = 'http+unix://{quoted}'.format(**locals()) import grp import pwd expected_textcreds = ( pwd.getpwuid(os.getuid()).pw_name, grp.getgrgid(os.getgid()).gr_name, ) expected_textcreds = '!'.join(map(str, expected_textcreds)) with requests_unixsocket.monkeypatch(): > peercreds_text_resp = requests.get( unix_base_uri + PEERCRED_TEXTS_URI, timeout=http_request_timeout, ) bind_addr = '/tmp/tmpipzy7k29' expected_textcreds = 'mockbuild!mock' grp = http_request_timeout = 0.1 httpserver = peercreds_enabled_server = pwd = quoted = '%2Ftmp%2Ftmpipzy7k29' unix_base_uri = 'http+unix://%2Ftmp%2Ftmpipzy7k29' cheroot/test/test_server.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:51: in get return request('get', url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} url = 'http+unix://%2Ftmp%2Ftmpipzy7k29/peer_creds/texts' /usr/lib/python3.11/site-packages/requests_unixsocket/__init__.py:46: in request return session.request(method=method, url=url, **kwargs) kwargs = {'allow_redirects': True, 'timeout': 0.1} method = 'get' session = url = 'http+unix://%2Ftmp%2Ftmpipzy7k29/peer_creds/texts' /usr/lib/python3.11/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) allow_redirects = True auth = None cert = None cookies = None data = None files = None headers = None hooks = None json = None method = 'get' params = None prep = proxies = {} req = self = send_kwargs = {'allow_redirects': True, 'cert': None, 'proxies': OrderedDict(), 'stream': False, ...} settings = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'verify': True} stream = None timeout = 0.1 url = 'http+unix://%2Ftmp%2Ftmpipzy7k29/peer_creds/texts' verify = None /usr/lib/python3.11/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) adapter = allow_redirects = True hooks = {'response': []} kwargs = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': 0.1, ...} request = self = start = 1721099243.3268092 stream = False _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , stream = False, timeout = 0.1, verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self._get_connection(request, verify, proxies) except LocationValueError as e: > raise InvalidURL(e, request=request) E requests.exceptions.InvalidURL: Not supported URL scheme http+unix cert = None proxies = OrderedDict() request = self = stream = False timeout = 0.1 verify = True /usr/lib/python3.11/site-packages/requests/adapters.py:514: InvalidURL - generated xml file: /builddir/build/BUILD/cheroot-10.0.0/.test-results/pytest/test.xml - ============================= slowest 10 durations ============================= 4.00s call cheroot/test/test_conn.py::test_HTTP11_Timeout_after_request 3.43s call cheroot/test/test_conn.py::test_keepalive_conn_management 2.00s call cheroot/test/test_conn.py::test_HTTP11_Timeout[False] 2.00s call cheroot/test/test_conn.py::test_HTTP11_Timeout[True] 1.04s call cheroot/test/test_conn.py::test_invalid_selected_connection 0.60s call cheroot/test/test_conn.py::test_598 0.60s call cheroot/test/test_server.py::test_server_interrupt[RuntimeError] 0.60s call cheroot/test/test_server.py::test_server_interrupt[KeyboardInterrupt] 0.60s call cheroot/test/test_server.py::test_server_interrupt[OSError1] 0.60s call cheroot/test/test_server.py::test_server_interrupt[OSError0] =========================== short test summary info ============================ SKIPPED [1] cheroot/test/test_wsgi.py:39: unconditional skip XFAIL cheroot/test/test_conn.py::test_Chunked_Encoding - Headers from earlier request leak into the request line for a subsequent request, resulting in 400 instead of 413. See cherrypy/cheroot#69 for details. XFAIL cheroot/test/test_conn.py::test_598 - Sometimes this test fails due to low timeout. Ref: https://github.com/cherrypy/cherrypy/issues/598 XFAIL cheroot/test/test_core.py::test_large_request - https://github.com/cherrypy/cheroot/issues/106 FAILED cheroot/test/test_server.py::test_peercreds_unix_sock[abstract] - requ... FAILED cheroot/test/test_server.py::test_peercreds_unix_sock[file] - requests... FAILED cheroot/test/test_server.py::test_peercreds_unix_sock_with_lookup[abstract] FAILED cheroot/test/test_server.py::test_peercreds_unix_sock_with_lookup[file] === 4 failed, 174 passed, 1 skipped, 3 xfailed, 6 rerun in 102.77s (0:01:42) === RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.G4hD2O (%check) Bad exit status from /var/tmp/rpm-tmp.G4hD2O (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-cheroot.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-cheroot.spec