Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/f40-build-2267175-54689/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=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-httpretty.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1705708800 Wrote: /builddir/build/SRPMS/python-httpretty-1.1.4-1.fc40.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-httpretty.spec'], chrootPath='/var/lib/mock/f40-build-2267175-54689/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=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-httpretty.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1705708800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KgB3Aj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf httpretty-1.1.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/httpretty-1.1.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd httpretty-1.1.4 + rm -rf /builddir/build/BUILD/httpretty-1.1.4-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/httpretty-1.1.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-httpretty-fakesock_getpeercert_noconnect.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/skip-test_passthrough.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/test_response-no-within.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/test_handle_slashes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i 's/^with-randomly = 1$//' setup.cfg + sed -i 's/^rednose = 1$//' setup.cfg + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.r2U06P + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd httpretty-1.1.4 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/httpretty copying httpretty/__init__.py -> build/lib/httpretty copying httpretty/compat.py -> build/lib/httpretty copying httpretty/http.py -> build/lib/httpretty copying httpretty/utils.py -> build/lib/httpretty copying httpretty/core.py -> build/lib/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/version.py -> build/lib/httpretty + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.WEMi6t + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd httpretty-1.1.4 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch --prefix /usr running install /usr/lib/python3.12/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-httpretty-1.1.4-1.fc40.noarch/usr creating /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib creating /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty copying build/lib/httpretty/version.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/compat.py to compat.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/http.py to http.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/utils.py to utils.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/core.py to core.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/errors.py to errors.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty/version.py to version.cpython-312.pyc writing byte-compilation script '/tmp/tmpi6g2bdur.py' /usr/bin/python3 /tmp/tmpi6g2bdur.py removing /tmp/tmpi6g2bdur.py running install_egg_info running egg_info writing httpretty.egg-info/PKG-INFO writing dependency_links to httpretty.egg-info/dependency_links.txt writing top-level names to httpretty.egg-info/top_level.txt reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'COPYING' writing manifest file 'httpretty.egg-info/SOURCES.txt' Copying httpretty.egg-info to /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12/site-packages/httpretty-1.1.4-py3.12.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 1.1.4-1.fc40 --unique-debug-suffix -1.1.4-1.fc40.noarch --unique-debug-src-base python-httpretty-1.1.4-1.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/httpretty-1.1.4 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j64 Bytecompiling .py files below /builddir/build/BUILDROOT/python-httpretty-1.1.4-1.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.vZvT3i + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd httpretty-1.1.4 + /usr/bin/python3 -m nose -v nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$'] nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module #1 When allow_net_connect = False, a request that otherwise ... 404 GET / (::1) 3.49ms real call to socket.connect() for ('localhost', 43611) ok #2 When allow_net_connect = False, a request that would have ... httpretty.core.socket("example.com:80").real_sendall(123 bytes) to http://example.com/nonsense via GET at 1705741881.162782 ok #3 When allow_net_connect = False, mocked requests still work correctly. ... ok #4 httpretty should bypass a unregistered request by disabling it ... 404 GET / (::1) 5.98ms httpretty.core.socket("localhost:39377").real_sendall(130 bytes) to http://localhost:39377/come-again/ via GET at 1705741882.3624215 real call to socket.connect() for ok #5 httpretty should bypass all requests by disabling it ... 404 GET / (::1) 3.41ms ok #6 httpretty should work even when testing code that also use other TCP-based protocols ... ok #7 HTTPretty should forward_and_trace socket.recv_into ... SKIP: not currently supported #8 HTTPretty should forward_and_trace socket.recvfrom ... SKIP: not currently supported #9 HTTPretty should forward_and_trace socket.recvfrom_into ... SKIP: not currently supported #10 HTTPretty should forward_and_trace socket.send ... SKIP: not currently supported #11 HTTPretty should forward_and_trace socket.sendto ... SKIP: not currently supported #12 test_decorated (tests.functional.test_decorator.ClassDecorator.test_decorated) ... ok #13 test_decorated2 (tests.functional.test_decorator.ClassDecorator.test_decorated2) ... ok #14 test_decorated (tests.functional.test_decorator.ClassDecoratorWithSetUp.test_decorated) ... ok #15 test_decorated2 (tests.functional.test_decorator.ClassDecoratorWithSetUp.test_decorated2) ... ok #16 test_decorated (tests.functional.test_decorator.NonUnitTestTest.test_decorated) ... ok #17 tests.functional.test_decorator.test_decor ... ok #18 HTTPretty should call a callback function to be set as the body with httplib2 ... ok #19 HTTPretty.last_request is a mimetools.Message request from last match ... ok #20 HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok #21 Registering URIs with query string cause them to be ignored ... ok #22 HTTPretty should provide an easy access to the querystring ... ok #23 HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok #24 HTTPretty should allow adding and overwritting headers with httplib2 ... ok #25 HTTPretty should allow forcing headers with httplib2 ... ok #26 HTTPretty should allow registering regexes with httplib2 ... ok #27 HTTPretty should mock a simple GET with httplib2.context.http ... ok #28 HTTPretty should mock basic headers with httplib2 ... ok #29 HTTPretty should support rotating responses with httplib2 ... ok #30 tests.functional.test_passthrough.test_http_passthrough ... SKIP #31 tests.functional.test_passthrough.test_https_passthrough ... SKIP #32 HTTPretty should be able to record calls ... ok #33 HTTPretty should call a callback function more than one requests ... ok #34 HTTPretty should call a callback function and set its return value as the body of the response requests ... ok #35 HTTPretty should call a callback function, use it's return tuple as status code, headers and body requests and respect the content-length header when responding to HEAD ... ok #36 HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok #37 HTTPretty.last_request is a mimetools.Message request from last match ... ok #38 HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok #39 HTTPretty should match the hostname case insensitive ... ok #40 HTTPretty should provide a way to not match regexes that have a different querystring ... ok #41 HTTPretty should ignore querystrings from the registered uri (requests library) ... ok #42 HTTPretty should provide an easy access to the querystring ... ok #43 HTTPretty should match regexes even if they have a different querystring ... ok #44 HTTPretty should reset protocol/port associations ... ok #45 HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok #46 HTTPretty should allow adding and overwritting headers with requests ... ok #47 HTTPretty should allow forcing headers with requests ... ok #48 HTTPretty should allow registering multiple methods for the same uri ... ok #49 HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok #50 HTTPretty should allow registering regexes with requests ... ok #51 HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok #52 HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok #53 HTTPretty should allow registering regexes with streaming responses ... Exception in thread Thread-68 (fill_filekind): Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/sure/__init__.py", line 407, in wrapper value = func(self, *args, **kw) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/sure/__init__.py", line 728, in equal raise error File "/usr/lib/python3.12/site-packages/sure/__init__.py", line 709, in equal comparison = DeepComparison(self.obj, what, epsilon).compare() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/sure/core.py", line 254, in compare raise exp.as_assertion(original_X, original_Y) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/sure/core.py", line 57, in as_assertion raise self.get_assertion(X, Y) AssertionError: given X = b'2\r\nhi\r\n5\r\nthere\r\n' and Y = b'hithere' X is b'2\r\nhi\r\n5\r\nthere\r\n' whereas Y is b'hithere' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/usr/lib64/python3.12/threading.py", line 989, in run self._target(*self._args, **self._kwargs) File "/builddir/build/BUILD/httpretty-1.1.4/httpretty/core.py", line 1097, in fill_filekind status, headers, self.body = self.callable_body(self.request, self.info.full_url(), headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/httpretty-1.1.4/tests/functional/test_requests.py", line 681, in my_callback request.body.should.equal(b'hithere') File "/usr/lib/python3.12/site-packages/sure/__init__.py", line 409, in wrapper raise AssertionError(e) AssertionError: given X = b'2\r\nhi\r\n5\r\nthere\r\n' and Y = b'hithere' X is b'2\r\nhi\r\n5\r\nthere\r\n' whereas Y is b'hithere' ERROR ====================================================================== ERROR: HTTPretty should allow registering regexes with streaming responses ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 462, in _make_request httplib_response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 293, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 467, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3.12/site-packages/urllib3/connectionpool.py", line 462, in _make_request httplib_response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 293, in _read_status raise RemoteDisconnected("Remote end closed connection without" urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/nose/case.py", line 201, in runTest self.test(*self.arg) File "/builddir/build/BUILD/httpretty-1.1.4/httpretty/core.py", line 2075, in wrapper return test(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/httpretty-1.1.4/tests/functional/test_requests.py", line 694, in test_httpretty_should_allow_registering_regexes_with_streaming_responses response = requests.post( ^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/api.py", line 115, in post return request("post", url, data=data, json=json, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/adapters.py", line 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) ---------------------------------------------------------------------- Ran 53 tests in 12.288s FAILED (SKIP=7, errors=1) 64.26 2000 819.35 2000 62.66 2000 50.15 2000 59.94 2000 227.29 2000 273.64 2000 111.64 2000 249.33 2000 102.28 2000 207.07 2000 92.05 2000 93.5 2000 88.35 2000 74.35 2000 error: Bad exit status from /var/tmp/rpm-tmp.vZvT3i (%check) Bad exit status from /var/tmp/rpm-tmp.vZvT3i (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'