Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-cheroot.spec'], chrootPath='/var/lib/mock/862418-fedora-rawhide-x86_64-1551140941.780979/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3nmez675:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '2b15f607f4c448b49efe2c322fbcb8f4', '-D', '/var/lib/mock/862418-fedora-rawhide-x86_64-1551140941.780979/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3nmez675:/etc/resolv.conf', '--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=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-cheroot-6.5.4-2.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-cheroot.spec'], chrootPath='/var/lib/mock/862418-fedora-rawhide-x86_64-1551140941.780979/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3nmez675:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0356617ee6804fa394572c0169db01e7', '-D', '/var/lib/mock/862418-fedora-rawhide-x86_64-1551140941.780979/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.3nmez675:/etc/resolv.conf', '--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=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QQlBxf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cheroot-6.5.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/cheroot-6.5.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cheroot-6.5.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's/ --testmon//' pytest.ini + sed -i 's/ --cov=cheroot//' pytest.ini + sed -i 's/ --cov-report term-missing:skip-covered//' pytest.ini + sed -i 's/ --cov-report xml//' pytest.ini + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Kzrb8H + umask 022 + cd /builddir/build/BUILD + cd cheroot-6.5.4 + SETUPTOOLS_SCM_PRETEND_VERSION=6.5.4 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/cheroot copying cheroot/wsgi.py -> build/lib/cheroot copying cheroot/testing.py -> build/lib/cheroot copying cheroot/server.py -> build/lib/cheroot copying cheroot/makefile.py -> build/lib/cheroot copying cheroot/errors.py -> build/lib/cheroot copying cheroot/cli.py -> build/lib/cheroot copying cheroot/_compat.py -> build/lib/cheroot copying cheroot/__main__.py -> build/lib/cheroot copying cheroot/__init__.py -> build/lib/cheroot creating build/lib/cheroot/workers copying cheroot/workers/threadpool.py -> build/lib/cheroot/workers copying cheroot/workers/__init__.py -> build/lib/cheroot/workers creating build/lib/cheroot/test copying cheroot/test/webtest.py -> build/lib/cheroot/test copying cheroot/test/test_ssl.py -> build/lib/cheroot/test copying cheroot/test/test_server.py -> build/lib/cheroot/test copying cheroot/test/test_errors.py -> build/lib/cheroot/test copying cheroot/test/test_dispatch.py -> build/lib/cheroot/test copying cheroot/test/test_core.py -> build/lib/cheroot/test copying cheroot/test/test_conn.py -> build/lib/cheroot/test copying cheroot/test/test__compat.py -> build/lib/cheroot/test copying cheroot/test/helper.py -> build/lib/cheroot/test copying cheroot/test/conftest.py -> build/lib/cheroot/test copying cheroot/test/__init__.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 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 reading manifest file 'cheroot.egg-info/SOURCES.txt' writing manifest file 'cheroot.egg-info/SOURCES.txt' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.cH93lc + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 + cd cheroot-6.5.4 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7 creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/builtin.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl copying build/lib/cheroot/ssl/pyopenssl.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/conftest.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/helper.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test__compat.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test_conn.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test_core.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test_dispatch.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test_errors.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test_server.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/test_ssl.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test copying build/lib/cheroot/test/webtest.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test creating /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/workers copying build/lib/cheroot/workers/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/workers copying build/lib/cheroot/workers/threadpool.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/workers copying build/lib/cheroot/__init__.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/__main__.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/_compat.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/cli.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/errors.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/makefile.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/server.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/testing.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot copying build/lib/cheroot/wsgi.py -> /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl/__init__.py to __init__.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl/builtin.py to builtin.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/ssl/pyopenssl.py to pyopenssl.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/__init__.py to __init__.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/conftest.py to conftest.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/helper.py to helper.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test__compat.py to test__compat.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test_conn.py to test_conn.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test_core.py to test_core.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test_dispatch.py to test_dispatch.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test_errors.py to test_errors.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test_server.py to test_server.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/test_ssl.py to test_ssl.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/test/webtest.py to webtest.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/workers/__init__.py to __init__.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/workers/threadpool.py to threadpool.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/__init__.py to __init__.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/__main__.py to __main__.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/_compat.py to _compat.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/cli.py to cli.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/errors.py to errors.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/makefile.py to makefile.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/server.py to server.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/testing.py to testing.cpython-37.pyc byte-compiling /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot/wsgi.py to wsgi.cpython-37.pyc writing byte-compilation script '/tmp/tmpeib46ar2.py' /usr/bin/python3 /tmp/tmpeib46ar2.py removing /tmp/tmpeib46ar2.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 reading manifest file 'cheroot.egg-info/SOURCES.txt' writing manifest file 'cheroot.egg-info/SOURCES.txt' Copying cheroot.egg-info to /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7/site-packages/cheroot-6.5.4-py3.7.egg-info running install_scripts Installing cheroot script to /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/bin + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 6.5.4-2.fc30 --unique-debug-suffix -6.5.4-2.fc30.x86_64 --unique-debug-src-base python-cheroot-6.5.4-2.fc30.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/cheroot-6.5.4 BUILDSTDERR: find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/lib/python3.7 using /usr/bin/python3.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.wEbnVK + umask 022 + cd /builddir/build/BUILD + cd cheroot-6.5.4 + py.test-3.7 ============================= test session starts ============================== platform linux -- Python 3.7.2, pytest-3.9.3, py-1.7.0, pluggy-0.8.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/cheroot-6.5.4, inifile: pytest.ini plugins: mock-1.10.0 collecting ... collected 105 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 [ 2%] cheroot/test/test__compat.py::test_compat_functions_negative_nonnative[ntob] PASSED [ 3%] cheroot/test/test__compat.py::test_compat_functions_negative_nonnative[ntou] PASSED [ 4%] cheroot/test/test__compat.py::test_ntou_escape PASSED [ 5%] cheroot/test/test__compat.py::test_extract_bytes[qwerty-qwerty] PASSED [ 6%] cheroot/test/test__compat.py::test_extract_bytes[input_argument1-asdfgh] PASSED [ 7%] cheroot/test/test__compat.py::test_extract_bytes_invalid PASSED [ 8%] cheroot/test/test_conn.py::test_HTTP11_persistent_connections PASSED [ 9%] cheroot/test/test_conn.py::test_streaming_11[False] PASSED [ 10%] cheroot/test/test_conn.py::test_streaming_11[True] PASSED [ 11%] cheroot/test/test_conn.py::test_streaming_10[False] PASSED [ 12%] cheroot/test/test_conn.py::test_streaming_10[True] PASSED [ 13%] 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_HTTP11_Timeout[True] PASSED [ 16%] cheroot/test/test_conn.py::test_HTTP11_Timeout[False] PASSED [ 17%] cheroot/test/test_conn.py::test_HTTP11_Timeout_after_request PASSED [ 18%] cheroot/test/test_conn.py::test_HTTP11_pipelining PASSED [ 19%] cheroot/test/test_conn.py::test_100_Continue PASSED [ 20%] cheroot/test/test_conn.py::test_readall_or_close[0] PASSED [ 20%] cheroot/test/test_conn.py::test_readall_or_close[1001] PASSED [ 21%] cheroot/test/test_conn.py::test_No_Message_Body PASSED [ 22%] cheroot/test/test_conn.py::test_Chunked_Encoding xfail [ 23%] cheroot/test/test_conn.py::test_Content_Length_in PASSED [ 24%] cheroot/test/test_conn.py::test_Content_Length_not_int PASSED [ 25%] 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 [ 26%] cheroot/test/test_conn.py::test_Content_Length_out[/wrong_cl_unbuffered-200-I too] PASSED [ 27%] cheroot/test/test_conn.py::test_598 xfail [ 28%] cheroot/test/test_conn.py::test_No_CRLF[ ] PASSED [ 29%] cheroot/test/test_conn.py::test_No_CRLF[ ] PASSED [ 30%] cheroot/test/test_core.py::test_http_connect_request PASSED [ 31%] cheroot/test/test_core.py::test_normal_request PASSED [ 32%] cheroot/test/test_core.py::test_query_string_request PASSED [ 33%] cheroot/test/test_core.py::test_parse_acceptable_uri[/hello] PASSED [ 34%] cheroot/test/test_core.py::test_parse_acceptable_uri[/query_string?test=True] PASSED [ 35%] 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 [ 36%] cheroot/test/test_core.py::test_parse_uri_unsafe_uri PASSED [ 37%] cheroot/test/test_core.py::test_parse_uri_invalid_uri PASSED [ 38%] cheroot/test/test_core.py::test_parse_no_leading_slash_invalid[hello] PASSED [ 39%] cheroot/test/test_core.py::test_parse_no_leading_slash_invalid[\u043f\u0440\u0438\u0432\u0456\u0442] PASSED [ 40%] cheroot/test/test_core.py::test_parse_uri_absolute_uri PASSED [ 40%] cheroot/test/test_core.py::test_parse_uri_asterisk_uri PASSED [ 41%] cheroot/test/test_core.py::test_parse_uri_fragment_uri PASSED [ 42%] cheroot/test/test_core.py::test_no_content_length PASSED [ 43%] cheroot/test/test_core.py::test_content_length_required PASSED [ 44%] cheroot/test/test_core.py::test_malformed_request_line[GET /-400-Malformed Request-Line] PASSED [ 45%] cheroot/test/test_core.py::test_malformed_request_line[GET / HTTPS/1.1-400-Malformed Request-Line: bad protocol] PASSED [ 46%] cheroot/test/test_core.py::test_malformed_request_line[GET / HTTP/2.15-505-Cannot fulfill request] PASSED [ 47%] cheroot/test/test_core.py::test_malformed_http_method PASSED [ 48%] cheroot/test/test_core.py::test_malformed_header PASSED [ 49%] cheroot/test/test_core.py::test_request_line_split_issue_1220 PASSED [ 50%] cheroot/test/test_core.py::test_garbage_in PASSED [ 51%] cheroot/test/test_core.py::test_send_header_before_closing PASSED [ 52%] cheroot/test/test_dispatch.py::test_dispatch_no_script_name PASSED [ 53%] cheroot/test/test_errors.py::test_plat_specific_errors[err_names0-err_nums0] PASSED [ 54%] cheroot/test/test_errors.py::test_plat_specific_errors[err_names1-err_nums1] PASSED [ 55%] cheroot/test/test_server.py::test_prepare_makes_server_ready PASSED [ 56%] cheroot/test/test_server.py::test_stop_interrupts_serve PASSED [ 57%] cheroot/test/test_server.py::test_bind_addr_inet[0.0.0.0] PASSED [ 58%] cheroot/test/test_server.py::test_bind_addr_inet[::] PASSED [ 59%] cheroot/test/test_server.py::test_bind_addr_unix PASSED [ 60%] cheroot/test/test_server.py::test_bind_addr_unix_abstract SKIPPED [ 60%] cheroot/test/test_server.py::test_peercreds_unix_sock PASSED [ 61%] cheroot/test/test_server.py::test_peercreds_unix_sock_with_lookup PASSED [ 62%] cheroot/test/test_ssl.py::test_ssl_adapters[builtin] PASSED [ 63%] cheroot/test/test_ssl.py::test_ssl_adapters[pyopenssl] PASSED [ 64%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-localhost-builtin] PASSED [ 65%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-localhost-pyopenssl] PASSED [ 66%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-127.0.0.1-builtin] PASSED [ 67%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-127.0.0.1-pyopenssl] PASSED [ 68%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-*.localhost-builtin] PASSED [ 69%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-*.localhost-pyopenssl] PASSED [ 70%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-not_localhost-builtin] PASSED [ 71%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-True-not_localhost-pyopenssl] PASSED [ 72%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-False-localhost-builtin] PASSED [ 73%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_NONE-False-localhost-pyopenssl] PASSED [ 74%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-localhost-builtin] PASSED [ 75%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-localhost-pyopenssl] PASSED [ 76%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-127.0.0.1-builtin] PASSED [ 77%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-127.0.0.1-pyopenssl] PASSED [ 78%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-*.localhost-builtin] PASSED [ 79%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-*.localhost-pyopenssl] PASSED [ 80%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-not_localhost-builtin] PASSED [ 80%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-True-not_localhost-pyopenssl] PASSED [ 81%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-False-localhost-builtin] FAILED [ 82%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_OPTIONAL-False-localhost-pyopenssl] FAILED [ 83%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-localhost-builtin] PASSED [ 84%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-localhost-pyopenssl] PASSED [ 85%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-127.0.0.1-builtin] PASSED [ 86%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-127.0.0.1-pyopenssl] PASSED [ 87%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-*.localhost-builtin] PASSED [ 88%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-*.localhost-pyopenssl] PASSED [ 89%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-not_localhost-builtin] PASSED [ 90%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-True-not_localhost-pyopenssl] PASSED [ 91%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-False-localhost-builtin] FAILED [ 92%] cheroot/test/test_ssl.py::test_tls_client_auth[VerifyMode.CERT_REQUIRED-False-localhost-pyopenssl] FAILED [ 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 [ 96%] cheroot/test/test_ssl.py::test_http_over_https_error[0.0.0.0-pyopenssl] PASSED [ 97%] cheroot/test/test_ssl.py::test_http_over_https_error[::-builtin] PASSED [ 98%] cheroot/test/test_ssl.py::test_http_over_https_error[::-pyopenssl] PASSED [ 99%] cheroot/test/webtest.py::cheroot.test.webtest.strip_netloc PASSED [100%] =================================== FAILURES =================================== ____ test_tls_client_auth[VerifyMode.CERT_OPTIONAL-False-localhost-builtin] ____ mocker = tls_http_server = .start_srv at 0x7fb39c117b88> ca = , adapter_type = 'builtin' is_trusted_cert = False, tls_client_identity = 'localhost' tls_verify_mode = @pytest.mark.parametrize( 'adapter_type', ( 'builtin', 'pyopenssl', ), ) @pytest.mark.parametrize( 'is_trusted_cert,tls_client_identity', ( (True, 'localhost'), (True, '127.0.0.1'), (True, '*.localhost'), (True, 'not_localhost'), (False, 'localhost'), ), ) @pytest.mark.parametrize( 'tls_verify_mode', ( ssl.CERT_NONE, # server shouldn't validate client cert ssl.CERT_OPTIONAL, # same as CERT_REQUIRED in client mode, don't use ssl.CERT_REQUIRED, # server should validate if client cert CA is OK ), ) def test_tls_client_auth( # FIXME: remove twisted logic, separate tests mocker, tls_http_server, ca, adapter_type, is_trusted_cert, tls_client_identity, tls_verify_mode, ): """Verify that client TLS certificate auth works correctly.""" test_cert_rejection = ( tls_verify_mode != ssl.CERT_NONE and not is_trusted_cert ) interface, host, port = _get_conn_data(ANY_INTERFACE_IPV4) cert = ca.issue_server_cert(ntou(interface), ) client_cert_root_ca = ca if is_trusted_cert else trustme.CA() with mocker.mock_module.patch( 'idna.core.ulabel', return_value=ntob(tls_client_identity), ): client_cert = client_cert_root_ca.issue_server_cert( # FIXME: change to issue_cert once new trustme is out ntou(tls_client_identity), ) del client_cert_root_ca with \ ca.cert_pem.tempfile() as ca_temp_path, \ cert.private_key_and_cert_chain_pem.tempfile() as cert_pem, \ client_cert.private_key_and_cert_chain_pem.tempfile() as cl_pem: tls_adapter_cls = get_ssl_adapter_class(name=adapter_type) tls_adapter = tls_adapter_cls( cert_pem, cert_pem, ) if adapter_type == 'pyopenssl': tls_adapter.context = tls_adapter.get_context() tls_adapter.context.set_verify( _stdlib_to_openssl_verify[tls_verify_mode], lambda conn, cert, errno, depth, preverify_ok: preverify_ok, ) else: tls_adapter.context.verify_mode = tls_verify_mode ca.configure_trust(tls_adapter.context) cert.configure_cert(tls_adapter.context) tlshttpserver = tls_http_server.send( ( (interface, port), tls_adapter, ) ) interface, host, port = _get_conn_data(tlshttpserver.bind_addr) make_https_request = functools.partial( requests.get, 'https://' + interface + ':' + str(port) + '/', # Server TLS certificate verification: verify=ca_temp_path, # Client TLS certificate verification: cert=cl_pem, ) if not test_cert_rejection: resp = make_https_request() assert resp.status_code == 200 assert resp.text == 'Hello world!' return with pytest.raises(requests.exceptions.SSLError) as ssl_err: make_https_request() err_text = ssl_err.value.args[0].reason.args[0].args[0] expected_substring = ( 'sslv3 alert bad certificate' if IS_LIBRESSL_BACKEND else 'tlsv1 alert unknown ca' ) if IS_PYPY and six.PY3 and IS_MACOS and adapter_type == 'pyopenssl': expected_substring = 'tlsv1 alert unknown ca' > assert expected_substring in err_text E TypeError: argument of type 'int' is not iterable cheroot/test/test_ssl.py:271: TypeError ___ test_tls_client_auth[VerifyMode.CERT_OPTIONAL-False-localhost-pyopenssl] ___ mocker = tls_http_server = .start_srv at 0x7fb39f98bd68> ca = , adapter_type = 'pyopenssl' is_trusted_cert = False, tls_client_identity = 'localhost' tls_verify_mode = @pytest.mark.parametrize( 'adapter_type', ( 'builtin', 'pyopenssl', ), ) @pytest.mark.parametrize( 'is_trusted_cert,tls_client_identity', ( (True, 'localhost'), (True, '127.0.0.1'), (True, '*.localhost'), (True, 'not_localhost'), (False, 'localhost'), ), ) @pytest.mark.parametrize( 'tls_verify_mode', ( ssl.CERT_NONE, # server shouldn't validate client cert ssl.CERT_OPTIONAL, # same as CERT_REQUIRED in client mode, don't use ssl.CERT_REQUIRED, # server should validate if client cert CA is OK ), ) def test_tls_client_auth( # FIXME: remove twisted logic, separate tests mocker, tls_http_server, ca, adapter_type, is_trusted_cert, tls_client_identity, tls_verify_mode, ): """Verify that client TLS certificate auth works correctly.""" test_cert_rejection = ( tls_verify_mode != ssl.CERT_NONE and not is_trusted_cert ) interface, host, port = _get_conn_data(ANY_INTERFACE_IPV4) cert = ca.issue_server_cert(ntou(interface), ) client_cert_root_ca = ca if is_trusted_cert else trustme.CA() with mocker.mock_module.patch( 'idna.core.ulabel', return_value=ntob(tls_client_identity), ): client_cert = client_cert_root_ca.issue_server_cert( # FIXME: change to issue_cert once new trustme is out ntou(tls_client_identity), ) del client_cert_root_ca with \ ca.cert_pem.tempfile() as ca_temp_path, \ cert.private_key_and_cert_chain_pem.tempfile() as cert_pem, \ client_cert.private_key_and_cert_chain_pem.tempfile() as cl_pem: tls_adapter_cls = get_ssl_adapter_class(name=adapter_type) tls_adapter = tls_adapter_cls( cert_pem, cert_pem, ) if adapter_type == 'pyopenssl': tls_adapter.context = tls_adapter.get_context() tls_adapter.context.set_verify( _stdlib_to_openssl_verify[tls_verify_mode], lambda conn, cert, errno, depth, preverify_ok: preverify_ok, ) else: tls_adapter.context.verify_mode = tls_verify_mode ca.configure_trust(tls_adapter.context) cert.configure_cert(tls_adapter.context) tlshttpserver = tls_http_server.send( ( (interface, port), tls_adapter, ) ) interface, host, port = _get_conn_data(tlshttpserver.bind_addr) make_https_request = functools.partial( requests.get, 'https://' + interface + ':' + str(port) + '/', # Server TLS certificate verification: verify=ca_temp_path, # Client TLS certificate verification: cert=cl_pem, ) if not test_cert_rejection: resp = make_https_request() assert resp.status_code == 200 assert resp.text == 'Hello world!' return with pytest.raises(requests.exceptions.SSLError) as ssl_err: make_https_request() err_text = ssl_err.value.args[0].reason.args[0].args[0] expected_substring = ( 'sslv3 alert bad certificate' if IS_LIBRESSL_BACKEND else 'tlsv1 alert unknown ca' ) if IS_PYPY and six.PY3 and IS_MACOS and adapter_type == 'pyopenssl': expected_substring = 'tlsv1 alert unknown ca' > assert expected_substring in err_text E TypeError: argument of type 'int' is not iterable cheroot/test/test_ssl.py:271: TypeError ____ test_tls_client_auth[VerifyMode.CERT_REQUIRED-False-localhost-builtin] ____ mocker = tls_http_server = .start_srv at 0x7fb39fa1d6d8> ca = , adapter_type = 'builtin' is_trusted_cert = False, tls_client_identity = 'localhost' tls_verify_mode = @pytest.mark.parametrize( 'adapter_type', ( 'builtin', 'pyopenssl', ), ) @pytest.mark.parametrize( 'is_trusted_cert,tls_client_identity', ( (True, 'localhost'), (True, '127.0.0.1'), (True, '*.localhost'), (True, 'not_localhost'), (False, 'localhost'), ), ) @pytest.mark.parametrize( 'tls_verify_mode', ( ssl.CERT_NONE, # server shouldn't validate client cert ssl.CERT_OPTIONAL, # same as CERT_REQUIRED in client mode, don't use ssl.CERT_REQUIRED, # server should validate if client cert CA is OK ), ) def test_tls_client_auth( # FIXME: remove twisted logic, separate tests mocker, tls_http_server, ca, adapter_type, is_trusted_cert, tls_client_identity, tls_verify_mode, ): """Verify that client TLS certificate auth works correctly.""" test_cert_rejection = ( tls_verify_mode != ssl.CERT_NONE and not is_trusted_cert ) interface, host, port = _get_conn_data(ANY_INTERFACE_IPV4) cert = ca.issue_server_cert(ntou(interface), ) client_cert_root_ca = ca if is_trusted_cert else trustme.CA() with mocker.mock_module.patch( 'idna.core.ulabel', return_value=ntob(tls_client_identity), ): client_cert = client_cert_root_ca.issue_server_cert( # FIXME: change to issue_cert once new trustme is out ntou(tls_client_identity), ) del client_cert_root_ca with \ ca.cert_pem.tempfile() as ca_temp_path, \ cert.private_key_and_cert_chain_pem.tempfile() as cert_pem, \ client_cert.private_key_and_cert_chain_pem.tempfile() as cl_pem: tls_adapter_cls = get_ssl_adapter_class(name=adapter_type) tls_adapter = tls_adapter_cls( cert_pem, cert_pem, ) if adapter_type == 'pyopenssl': tls_adapter.context = tls_adapter.get_context() tls_adapter.context.set_verify( _stdlib_to_openssl_verify[tls_verify_mode], lambda conn, cert, errno, depth, preverify_ok: preverify_ok, ) else: tls_adapter.context.verify_mode = tls_verify_mode ca.configure_trust(tls_adapter.context) cert.configure_cert(tls_adapter.context) tlshttpserver = tls_http_server.send( ( (interface, port), tls_adapter, ) ) interface, host, port = _get_conn_data(tlshttpserver.bind_addr) make_https_request = functools.partial( requests.get, 'https://' + interface + ':' + str(port) + '/', # Server TLS certificate verification: verify=ca_temp_path, # Client TLS certificate verification: cert=cl_pem, ) if not test_cert_rejection: resp = make_https_request() assert resp.status_code == 200 assert resp.text == 'Hello world!' return with pytest.raises(requests.exceptions.SSLError) as ssl_err: make_https_request() err_text = ssl_err.value.args[0].reason.args[0].args[0] expected_substring = ( 'sslv3 alert bad certificate' if IS_LIBRESSL_BACKEND else 'tlsv1 alert unknown ca' ) if IS_PYPY and six.PY3 and IS_MACOS and adapter_type == 'pyopenssl': expected_substring = 'tlsv1 alert unknown ca' > assert expected_substring in err_text E TypeError: argument of type 'int' is not iterable cheroot/test/test_ssl.py:271: TypeError ___ test_tls_client_auth[VerifyMode.CERT_REQUIRED-False-localhost-pyopenssl] ___ mocker = tls_http_server = .start_srv at 0x7fb39f77bc78> ca = , adapter_type = 'pyopenssl' is_trusted_cert = False, tls_client_identity = 'localhost' tls_verify_mode = @pytest.mark.parametrize( 'adapter_type', ( 'builtin', 'pyopenssl', ), ) @pytest.mark.parametrize( 'is_trusted_cert,tls_client_identity', ( (True, 'localhost'), (True, '127.0.0.1'), (True, '*.localhost'), (True, 'not_localhost'), (False, 'localhost'), ), ) @pytest.mark.parametrize( 'tls_verify_mode', ( ssl.CERT_NONE, # server shouldn't validate client cert ssl.CERT_OPTIONAL, # same as CERT_REQUIRED in client mode, don't use ssl.CERT_REQUIRED, # server should validate if client cert CA is OK ), ) def test_tls_client_auth( # FIXME: remove twisted logic, separate tests mocker, tls_http_server, ca, adapter_type, is_trusted_cert, tls_client_identity, tls_verify_mode, ): """Verify that client TLS certificate auth works correctly.""" test_cert_rejection = ( tls_verify_mode != ssl.CERT_NONE and not is_trusted_cert ) interface, host, port = _get_conn_data(ANY_INTERFACE_IPV4) cert = ca.issue_server_cert(ntou(interface), ) client_cert_root_ca = ca if is_trusted_cert else trustme.CA() with mocker.mock_module.patch( 'idna.core.ulabel', return_value=ntob(tls_client_identity), ): client_cert = client_cert_root_ca.issue_server_cert( # FIXME: change to issue_cert once new trustme is out ntou(tls_client_identity), ) del client_cert_root_ca with \ ca.cert_pem.tempfile() as ca_temp_path, \ cert.private_key_and_cert_chain_pem.tempfile() as cert_pem, \ client_cert.private_key_and_cert_chain_pem.tempfile() as cl_pem: tls_adapter_cls = get_ssl_adapter_class(name=adapter_type) tls_adapter = tls_adapter_cls( cert_pem, cert_pem, ) if adapter_type == 'pyopenssl': tls_adapter.context = tls_adapter.get_context() tls_adapter.context.set_verify( _stdlib_to_openssl_verify[tls_verify_mode], lambda conn, cert, errno, depth, preverify_ok: preverify_ok, ) else: tls_adapter.context.verify_mode = tls_verify_mode ca.configure_trust(tls_adapter.context) cert.configure_cert(tls_adapter.context) tlshttpserver = tls_http_server.send( ( (interface, port), tls_adapter, ) ) interface, host, port = _get_conn_data(tlshttpserver.bind_addr) make_https_request = functools.partial( requests.get, 'https://' + interface + ':' + str(port) + '/', # Server TLS certificate verification: verify=ca_temp_path, # Client TLS certificate verification: cert=cl_pem, ) if not test_cert_rejection: resp = make_https_request() assert resp.status_code == 200 assert resp.text == 'Hello world!' return with pytest.raises(requests.exceptions.SSLError) as ssl_err: make_https_request() err_text = ssl_err.value.args[0].reason.args[0].args[0] expected_substring = ( 'sslv3 alert bad certificate' if IS_LIBRESSL_BACKEND else 'tlsv1 alert unknown ca' ) if IS_PYPY and six.PY3 and IS_MACOS and adapter_type == 'pyopenssl': expected_substring = 'tlsv1 alert unknown ca' > assert expected_substring in err_text E TypeError: argument of type 'int' is not iterable cheroot/test/test_ssl.py:271: TypeError generated xml file: /builddir/build/BUILD/cheroot-6.5.4/junit-test-results.xml =========================== short test summary info ============================ XFAIL cheroot/test/test_conn.py::test_Chunked_Encoding Server does not correctly read trailers/ending of the previous HTTP request, thus the second request fails as the server tries to parse b'Content-Type: application/json\r\n' as a Request-Line. This results in HTTP status code 400, instead of 413Ref: https://github.com/cherrypy/cheroot/issues/69 XFAIL cheroot/test/test_conn.py::test_598 Sometimes this test fails due to low timeout. Ref: https://github.com/cherrypy/cherrypy/issues/598 SKIP [1] cheroot/test/test_server.py:117: Abstract sockets don't work currently ========== 4 failed, 98 passed, 1 skipped, 2 xfailed in 60.77 seconds ========== Processing files: python3-cheroot-6.5.4-2.fc30.noarch + : + exit 0 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.SDF3n3 + umask 022 + cd /builddir/build/BUILD + cd cheroot-6.5.4 + DOCDIR=/builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/share/doc/python3-cheroot + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/share/doc/python3-cheroot + cp -pr README.rst /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/share/doc/python3-cheroot + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.8U00Sl + umask 022 + cd /builddir/build/BUILD + cd cheroot-6.5.4 + LICENSEDIR=/builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/share/licenses/python3-cheroot + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/share/licenses/python3-cheroot + cp -pr LICENSE.md /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64/usr/share/licenses/python3-cheroot + exit 0 Provides: python3-cheroot = 6.5.4-2.fc30 python3.7dist(cheroot) = 6.5.4 python3dist(cheroot) = 6.5.4 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 python(abi) = 3.7 python3.7dist(more-itertools) >= 2.6 python3.7dist(six) >= 1.11.0 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 Wrote: /builddir/build/RPMS/python3-cheroot-6.5.4-2.fc30.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.a01FXI + umask 022 + cd /builddir/build/BUILD + cd cheroot-6.5.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-cheroot-6.5.4-2.fc30.x86_64 + exit 0 Child return code was: 0