Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/epel-8-x86_64-1639459800.785735/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5iemrqca:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5iemrqca:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '94b2379063f94d35a71ade7b67d11336', '-D', '/var/lib/mock/epel-8-x86_64-1639459800.785735/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5iemrqca:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-httpretty-1.1.3-1.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/epel-8-x86_64-1639459800.785735/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5iemrqca:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5iemrqca:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'e26b6ebac19e4d32826e3eb855ad2c01', '-D', '/var/lib/mock/epel-8-x86_64-1639459800.785735/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5iemrqca:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.bASj2u + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf httpretty-1.1.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/httpretty-1.1.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd httpretty-1.1.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/python-httpretty-fakesock_getpeercert_noconnect.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/skip-test_passthrough.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + sed -i 's/^with-randomly = 1$//' setup.cfg + sed -i 's/^rednose = 1$//' setup.cfg + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.LF1Nhv + umask 022 + cd /builddir/build/BUILD + cd httpretty-1.1.3 + 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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3.9 setup.py build '--executable=/usr/bin/python3.9 -s' running build running build_py creating build creating build/lib creating build/lib/httpretty copying httpretty/version.py -> build/lib/httpretty copying httpretty/utils.py -> build/lib/httpretty copying httpretty/http.py -> build/lib/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/core.py -> build/lib/httpretty copying httpretty/compat.py -> build/lib/httpretty copying httpretty/__init__.py -> build/lib/httpretty + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MAeB7w + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 ++ dirname /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 + cd httpretty-1.1.3 + 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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3.9 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr creating /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9 creating /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty copying build/lib/httpretty/version.py -> /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/compat.py to compat.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/core.py to core.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/errors.py to errors.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/http.py to http.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/utils.py to utils.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty/version.py to version.cpython-39.pyc writing byte-compilation script '/tmp/tmpwq3paz1m.py' /usr/bin/python3.9 /tmp/tmpwq3paz1m.py removing /tmp/tmpwq3paz1m.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' writing manifest file 'httpretty.egg-info/SOURCES.txt' Copying httpretty.egg-info to /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9/site-packages/httpretty-1.1.3-py3.9.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/bin/__pycache__ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 1.1.3-1.el8 --unique-debug-suffix -1.1.3-1.el8.x86_64 --unique-debug-src-base python-httpretty-1.1.3-1.el8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/httpretty-1.1.3 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/lib/python3.9 using /usr/bin/python3.9 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/bin/python3.9 + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.2CAjuv + umask 022 + cd /builddir/build/BUILD + cd httpretty-1.1.3 + /usr/bin/python3.9 -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 ... WARNING:tornado.access:404 GET / (::1) 0.79ms real call to socket.connect() for ('localhost', 39783) ok #2 When allow_net_connect = False, a request that would have ... httpretty.core.socket("example.com:80").real_sendall(122 bytes) to http://example.com/nonsense via GET at 1639459935.6601603 ok #3 When allow_net_connect = False, mocked requests still work correctly. ... ok #4 httpretty should bypass a unregistered request by disabling it ... WARNING:tornado.access:404 GET / (::1) 0.81ms httpretty.core.socket("localhost:34309").real_sendall(129 bytes) to http://localhost:34309/come-again/ via GET at 1639459936.7753303 real call to socket.connect() for ok #5 httpretty should bypass all requests by disabling it ... WARNING:tornado.access:404 GET / (::1) 1.30ms 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) ... ok #13 test_decorated2 (tests.functional.test_decorator.ClassDecorator) ... ok #14 test_decorated (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok #15 test_decorated2 (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok #16 test_decorated (tests.functional.test_decorator.NonUnitTestTest) ... 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 ... ok #54 HTTPretty should handle URLs with paths starting with // ... ok #55 HTTPretty should mock a simple GET with requests.get ... ok #56 HTTPretty should mock basic headers with requests ... ok #57 HTTPretty should normalize all url patching ... ok #58 tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok #59 HTTPretty should work with a non-standard port number ... ok #60 HTTPretty should automatically append a slash to given urls ... ok #61 tests.functional.test_requests.test_multiline ... ok #62 tests.functional.test_requests.test_multipart ... ok #63 tests.functional.test_requests.test_octet_stream ... ok #64 HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok #65 HTTPretty should support rotating responses with requests ... ok #66 Mock a streaming HTTP response, like those returned by the Twitter streaming ... ok #67 Querystrings should accept unicode characters ... ok #68 HTTPretty should call a callback function to be set as the body with urllib2 ... ok #69 HTTPretty.last_request is a mimetools.Message request from last match ... ok #70 HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok #71 HTTPretty should mock a simple GET with urllib2.read() ... ok #72 HTTPretty should provide an easy access to the querystring ... ok #73 HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok #74 HTTPretty should allow adding and overwritting headers with urllib2 ... ok #75 HTTPretty should allow forcing headers with urllib2 ... ok #76 HTTPretty should allow registering regexes with urllib2 ... ok #77 HTTPretty should mock a simple GET with urllib2.read() ... ok #78 HTTPretty should mock basic headers with urllib2 ... ok #79 HTTPretty should support adding a list of successive responses with urllib2 ... ok #80 HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok #81 HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok #82 HTTPrettyRequest#parse_querystring should parse unicode data ... ok #83 HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok #84 HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok #85 HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok #86 HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok #87 HTTPrettyRequest should have a forward_and_trace-friendly string representation ... ok #88 FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok #89 fakesock.socket#ssl should take a socket instance and return itself ... ok #90 fakesock.socket#sendall handles paths starting with // well ... ok #91 URIMatcher response querystring ... ok #92 URIMatcher equality check should check querystring ... ok #93 fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok #94 fakesock.socket#close should close the actual socket in case it's not http and __truesock_is_connected__ is True ... ok #95 fakesock.socket#connect should open a real connection if the given port is not a potential http port ... WARNING:httpretty.core:real call to socket.connect() for ('somewhere.com', 42) ok #96 fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok #97 fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok #98 fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... WARNING:httpretty.core:real call to socket.connect() for ('1.2.3.4', 42) ok #99 fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... WARNING:httpretty.core:real call to socket.connect() for ('1.2.3.4', 42) ok #100 fakesock.socket#real_sendall sends data and buffers the response in the file descriptor ... WARNING:httpretty.core:real call to socket.connect() for ('1.2.3.4', 42) ok #101 fakesock.socket#real_sendall should connect before sending data ... WARNING:httpretty.core:real call to socket.connect() for ('foobar.com', 4000) ok #102 fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... WARNING:httpretty.core:real call to socket.connect() for ('foo.com', 80) ok #103 fakesock.socket#sendall should call real_sendall when not ... WARNING:httpretty.core:real call to socket.connect() for ('foo.com', 80) ok #104 fakesock.socket#sendall should call real_sendall when there is no entry ... WARNING:httpretty.core:real call to socket.connect() for ('foo.com', 80) ok #105 fakesock.socket#sendall should create an entry if it's given a valid request line ... WARNING:httpretty.core:real call to socket.connect() for ('foo.com', 80) ok #106 fakesock.socket#sendall should create an entry if it's given a valid request line ... WARNING:httpretty.core:real call to socket.connect() for ('foo.com', 80) ok #107 parse_requestline should parse the CONNECT method appropriately ... ok #108 HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok #109 HTTPretty.last_request is a dummy object by default ... ok #110 HTTPretty supports N status codes ... ok #111 tests.unit.test_httpretty.test_uri_info_full_url ... ok #112 Test that URIInfo.__eq__ method ignores case for ... ok #113 tests.unit.test_httpretty.test_global_boolean_enabled ... ok #114 tests.unit.test_httpretty.test_py3kobject_implements_valid__repr__based_on__str__ ... ok #115 tests.unit.test_httpretty.test_Entry_class_normalizes_headers ... ok #116 tests.unit.test_httpretty.test_Entry_class_counts_multibyte_characters_in_bytes ... ok #117 tests.unit.test_httpretty.test_Entry_class_counts_dynamic ... ok #118 tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking ... ok #119 tests.unit.test_httpretty.test_fake_socket_passes_through_fileno ... ok #120 tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt ... ok #121 tests.unit.test_httpretty.test_fake_socket_passes_through_bind ... ok #122 tests.unit.test_httpretty.test_fake_socket_passes_through_connect_ex ... ok #123 tests.unit.test_httpretty.test_fake_socket_passes_through_listen ... ok #124 tests.unit.test_httpretty.test_fake_socket_passes_through_getpeername ... ok #125 tests.unit.test_httpretty.test_fake_socket_passes_through_getsockname ... ok #126 tests.unit.test_httpretty.test_fake_socket_passes_through_gettimeout ... ok #127 tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown ... ok #128 tests.unit.test_httpretty.test_unix_socket ... WARNING:httpretty.core:real call to socket.connect() for ./not-exist-socket ok #129 A content-type of application/json should parse a valid json body ... ok #130 A content-type of application/json with an invalid json body should return the content unaltered ... ok #131 A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok #132 A non-handled content type request's post body should return the content unaltered ... ok #133 Some versions of python accidentally internally shadowed the SockType ... ok #134 tests.unit.test_httpretty.test_socktype_good_python_version ... ok #135 HTTPretty should allow registering regexes with requests ... ok #136 HTTPretty should allow registering regexes with requests (ssl version) ... ok #137 httpretty.has_request() correctly detects whether or not a request has been made ... ok #138 httpretty.last_request() should return httpretty.core.last_request ... ok #139 httpretty.latest_requests() should return httpretty.core.latest_requests ... ok ---------------------------------------------------------------------- Ran 139 tests in 5.194s OK (SKIP=7) 132.45 2000 13.06 2000 62.44 2000 9.82 2000 9.34 2000 8.29 2000 9.33 2000 184.59 2000 45.04 2000 45.1 2000 21.69 2000 48.28 2000 20.96 2000 24.55 2000 17.69 2000 18.06 2000 18.28 2000 17.38 2000 24.84 2000 61.0 2000 117.9 5000 126.93 2000 12.2 2000 64.18 2000 9.56 2000 9.38 2000 8.7 2000 8.95 2000 182.63 2000 + exit 0 Processing files: python39-httpretty-1.1.3-1.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.A4M6Vw + umask 022 + cd /builddir/build/BUILD + cd httpretty-1.1.3 + DOCDIR=/builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/share/doc/python39-httpretty + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/share/doc/python39-httpretty + cp -pr README.rst /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/share/doc/python39-httpretty + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.3zJ7Rt + umask 022 + cd /builddir/build/BUILD + cd httpretty-1.1.3 + LICENSEDIR=/builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/share/licenses/python39-httpretty + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/share/licenses/python39-httpretty + cp -pr COPYING /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64/usr/share/licenses/python39-httpretty + exit 0 Provides: python3.9dist(httpretty) = 1.1.3 python39-httpretty = 1.1.3-1.el8 python3dist(httpretty) = 1.1.3 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: python(abi) = 3.9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 Wrote: /builddir/build/RPMS/python39-httpretty-1.1.3-1.el8.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.2vrt8t + umask 022 + cd /builddir/build/BUILD + cd httpretty-1.1.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-httpretty-1.1.3-1.el8.x86_64 + exit 0 Child return code was: 0