Mock Version: 1.4.11 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/python-httpretty.spec'], timeout=0nspawn_args=['--bind=/tmp/mock-resolv.sNbXQA:/etc/resolv.conf']shell=Falseuid=1001chrootPath='/var/lib/mock/centos-7-i386/root'gid=135user='mockbuild'env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}logger=unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '4e44b23a044545a0ba10cf8f937e4b1c', '-D', '/var/lib/mock/centos-7-i386/root', '--bind=/tmp/mock-resolv.sNbXQA:/etc/resolv.conf', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1= \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/python-httpretty.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system BUILDSTDERR: sh: /usr/bin/python: No such file or directory BUILDSTDERR: sh: /usr/bin/python: No such file or directory Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/python-httpretty-0.8.14-2.20161011git70af1f8.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/python-httpretty.spec'], timeout=0nspawn_args=['--bind=/tmp/mock-resolv.sNbXQA:/etc/resolv.conf']shell=Falseuid=1001chrootPath='/var/lib/mock/centos-7-i386/root'gid=135user='mockbuild'env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}logger=unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c3a254d8110d4758bbc9ecf69e51834a', '-D', '/var/lib/mock/centos-7-i386/root', '--bind=/tmp/mock-resolv.sNbXQA:/etc/resolv.conf', '--setenv=LANG=en_US.UTF-8', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOSTNAME=mock', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=HOME=/builddir', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PS1= \\s-\\v\\$ ', '-u', 'mockbuild', 'bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/python-httpretty.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system BUILDSTDERR: Failed to create directory /var/lib/mock/centos-7-i386/root//sys/fs/selinux: Read-only file system Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fAvgli + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/bin/gzip -dc /builddir/build/SOURCES/HTTPretty-70af1f8.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/pr313.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/314.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/python-httpretty-fakesock_getpeercert_noconnect.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0001-Handle-bugs-in-older-urllib3-versions-in-one-of-the-.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0001-Call-reset-from-setUp-and-tearDown-in-addition-to-en.patch + /usr/bin/patch -p1 -s + sed -i -e 's/==.*//g' development.txt test-requirements.txt requirements.txt + sed -i -e 's/requests\[security\]/requests/g' development.txt + sed -i -e '/^coverage/d' development.txt test-requirements.txt + sed -i -r -e '/^(S|s)phinx/d' development.txt + sed -i -e '/^rednose/d' development.txt + sed -i -e '/^nose-randomly/d' development.txt + sed -i -e '/^flake8/d' development.txt + sed -i -e '/^ipdb/d' development.txt + rm tests/unit/test_passthrough.py + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.v3KEgr + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LANG=en_US.UTF-8 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' 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/errors.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 + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.BIMMpE + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 + LANG=en_US.UTF-8 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty/compat.py to compat.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty/errors.py to errors.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty/http.py to http.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty/utils.py to utils.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty/core.py to core.pyc writing byte-compilation script '/tmp/tmpKuh6We.py' /usr/bin/python2 -O /tmp/tmpKuh6We.py removing /tmp/tmpKuh6We.py running install_egg_info running egg_info creating httpretty.egg-info writing httpretty.egg-info/PKG-INFO writing top-level names to httpretty.egg-info/top_level.txt writing dependency_links to httpretty.egg-info/dependency_links.txt writing manifest file 'httpretty.egg-info/SOURCES.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-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7/site-packages/httpretty-0.8.14-py2.7.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. BUILDSTDERR: find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.AGrPmT + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LANG=en_US.UTF-8 + /usr/bin/python2 setup.py test running test running egg_info writing httpretty.egg-info/PKG-INFO writing top-level names to httpretty.egg-info/top_level.txt writing dependency_links to httpretty.egg-info/dependency_links.txt reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'httpretty.egg-info/SOURCES.txt' running build_ext BUILDSTDERR: /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'with-coverage' in config file 'setup.cfg' ignored: excluded by runtime environment BUILDSTDERR: warn(msg, RuntimeWarning) BUILDSTDERR: /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-erase' in config file 'setup.cfg' ignored: excluded by runtime environment BUILDSTDERR: warn(msg, RuntimeWarning) BUILDSTDERR: /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-package' in config file 'setup.cfg' ignored: excluded by runtime environment BUILDSTDERR: warn(msg, RuntimeWarning) BUILDSTDERR: /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-inclusive' in config file 'setup.cfg' ignored: excluded by runtime environment BUILDSTDERR: warn(msg, RuntimeWarning) BUILDSTDERR: tests.functional.test_bypass.test_disallow_net_connect_1 BUILDSTDERR: When allow_net_connect = False, a request that otherwise ... ok BUILDSTDERR: tests.functional.test_bypass.test_disallow_net_connect_2 BUILDSTDERR: When allow_net_connect = False, a request that would have ... ok BUILDSTDERR: tests.functional.test_bypass.test_disallow_net_connect_3 BUILDSTDERR: When allow_net_connect = False, mocked requests still work correctly. ... ok BUILDSTDERR: tests.functional.test_bypass.test_httpretty_bypasses_a_unregistered_request BUILDSTDERR: httpretty should bypass a unregistered request by disabling it ... ok BUILDSTDERR: tests.functional.test_bypass.test_httpretty_bypasses_when_disabled BUILDSTDERR: httpretty should bypass all requests by disabling it ... ok BUILDSTDERR: tests.functional.test_bypass.test_using_httpretty_with_other_tcp_protocols BUILDSTDERR: httpretty should work even when testing code that also use other TCP-based protocols ... ok BUILDSTDERR: tests.functional.test_debug.test_httpretty_debugs_socket_recv BUILDSTDERR: HTTPretty should debug socket.recv ... ok BUILDSTDERR: tests.functional.test_debug.test_httpretty_debugs_socket_recv_into BUILDSTDERR: HTTPretty should debug socket.recv_into ... ok BUILDSTDERR: tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom BUILDSTDERR: HTTPretty should debug socket.recvfrom ... ok BUILDSTDERR: tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom_into BUILDSTDERR: HTTPretty should debug socket.recvfrom_into ... ok BUILDSTDERR: tests.functional.test_debug.test_httpretty_debugs_socket_send BUILDSTDERR: HTTPretty should debug socket.send ... ok BUILDSTDERR: tests.functional.test_debug.test_httpretty_debugs_socket_sendto BUILDSTDERR: HTTPretty should debug socket.sendto ... ok BUILDSTDERR: test_decorated (tests.functional.test_decorator.ClassDecorator) ... ok BUILDSTDERR: test_decorated2 (tests.functional.test_decorator.ClassDecorator) ... ok BUILDSTDERR: test_decorated (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok BUILDSTDERR: test_decorated2 (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok BUILDSTDERR: test_decorated (tests.functional.test_decorator.NonUnitTestTest) ... ok BUILDSTDERR: tests.functional.test_decorator.test_decor ... ok BUILDSTDERR: tests.functional.test_httplib2.test_callback_response BUILDSTDERR: HTTPretty should all a callback function to be set as the body with httplib2 ... ok BUILDSTDERR: tests.functional.test_httplib2.test_can_inspect_last_request BUILDSTDERR: HTTPretty.last_request is a mimetools.Message request from last match ... ok BUILDSTDERR: tests.functional.test_httplib2.test_can_inspect_last_request_with_ssl BUILDSTDERR: HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_ignores_querystrings_from_registered_uri BUILDSTDERR: Registering URIs with query string cause them to be ignored ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_provides_easy_access_to_querystrings BUILDSTDERR: HTTPretty should provide an easy access to the querystring ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 BUILDSTDERR: HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_httplib2 BUILDSTDERR: HTTPretty should allow adding and overwritting headers with httplib2 ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_should_allow_forcing_headers_httplib2 BUILDSTDERR: HTTPretty should allow forcing headers with httplib2 ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_should_allow_registering_regexes BUILDSTDERR: HTTPretty should allow registering regexes with httplib2 ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_should_mock_a_simple_get_with_httplib2_read BUILDSTDERR: HTTPretty should mock a simple GET with httplib2.context.http ... ok BUILDSTDERR: tests.functional.test_httplib2.test_httpretty_should_mock_headers_httplib2 BUILDSTDERR: HTTPretty should mock basic headers with httplib2 ... ok BUILDSTDERR: tests.functional.test_httplib2.test_rotating_responses_with_httplib2 BUILDSTDERR: HTTPretty should support rotating responses with httplib2 ... ok BUILDSTDERR: tests.functional.test_requests.test_recording_calls BUILDSTDERR: HTTPretty should be able to record calls ... ok BUILDSTDERR: tests.functional.test_requests.test_callback_body_remains_callable_for_any_subsequent_requests BUILDSTDERR: HTTPretty should call a callback function more than one requests ... ok BUILDSTDERR: tests.functional.test_requests.test_callback_response BUILDSTDERR: HTTPretty should call a callback function and set its return value as the body of the response requests ... ok BUILDSTDERR: tests.functional.test_requests.test_callback_setting_headers_and_status_response BUILDSTDERR: HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok BUILDSTDERR: tests.functional.test_requests.test_can_inspect_last_request BUILDSTDERR: HTTPretty.last_request is a mimetools.Message request from last match ... ok BUILDSTDERR: tests.functional.test_requests.test_can_inspect_last_request_with_ssl BUILDSTDERR: HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_ignores_querystrings_from_registered_uri BUILDSTDERR: HTTPretty should ignore querystrings from the registered uri (requests library) ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings BUILDSTDERR: HTTPretty should provide an easy access to the querystring ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings_with_regexes BUILDSTDERR: HTTPretty should match regexes even if they have a different querystring ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_reset_by_switching_protocols_for_same_port BUILDSTDERR: HTTPretty should reset protocol/port associations ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 BUILDSTDERR: HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_requests BUILDSTDERR: HTTPretty should allow adding and overwritting headers with requests ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_forcing_headers_requests BUILDSTDERR: HTTPretty should allow forcing headers with requests ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_multiple_methods_for_the_same_uri BUILDSTDERR: HTTPretty should allow registering multiple methods for the same uri ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_multiple_responses_with_multiple_methods BUILDSTDERR: HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_registering_regexes BUILDSTDERR: HTTPretty should allow registering regexes with requests ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_and_give_a_proper_match_to_the_callback BUILDSTDERR: HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_port_and_give_a_proper_match_to_the_callback BUILDSTDERR: HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_streaming_responses BUILDSTDERR: HTTPretty should allow registering regexes with streaming responses ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_mock_a_simple_get_with_requests_read BUILDSTDERR: HTTPretty should mock a simple GET with requests.get ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_mock_headers_requests BUILDSTDERR: HTTPretty should mock basic headers with requests ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_normalize_url_patching BUILDSTDERR: HTTPretty should normalize all url patching ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok BUILDSTDERR: tests.functional.test_requests.test_httpretty_should_work_with_non_standard_ports BUILDSTDERR: HTTPretty should work with a non-standard port number ... ok BUILDSTDERR: tests.functional.test_requests.test_lack_of_trailing_slash BUILDSTDERR: HTTPretty should automatically append a slash to given urls ... ok BUILDSTDERR: tests.functional.test_requests.test_multiline ... ok BUILDSTDERR: tests.functional.test_requests.test_multipart ... ok BUILDSTDERR: tests.functional.test_requests.test_octet_stream ... ok BUILDSTDERR: tests.functional.test_requests.test_py26_callback_response BUILDSTDERR: HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok BUILDSTDERR: tests.functional.test_requests.test_rotating_responses_with_requests BUILDSTDERR: HTTPretty should support rotating responses with requests ... ok BUILDSTDERR: tests.functional.test_requests.test_streaming_responses BUILDSTDERR: Mock a streaming HTTP response, like those returned by the Twitter streaming ... ok BUILDSTDERR: tests.functional.test_requests.test_unicode_querystrings BUILDSTDERR: Querystrings should accept unicode characters ... ok BUILDSTDERR: tests.functional.test_urllib2.test_callback_response BUILDSTDERR: HTTPretty should all a callback function to be set as the body with urllib2 ... ok BUILDSTDERR: tests.functional.test_urllib2.test_can_inspect_last_request BUILDSTDERR: HTTPretty.last_request is a mimetools.Message request from last match ... ok BUILDSTDERR: tests.functional.test_urllib2.test_can_inspect_last_request_with_ssl BUILDSTDERR: HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_ignores_querystrings_from_registered_uri BUILDSTDERR: HTTPretty should mock a simple GET with urllib2.read() ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_provides_easy_access_to_querystrings BUILDSTDERR: HTTPretty should provide an easy access to the querystring ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 BUILDSTDERR: HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_urllib2 BUILDSTDERR: HTTPretty should allow adding and overwritting headers with urllib2 ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_allow_forcing_headers_urllib2 BUILDSTDERR: HTTPretty should allow forcing headers with urllib2 ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_allow_registering_regexes BUILDSTDERR: HTTPretty should allow registering regexes with urllib2 ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_mock_a_simple_get_with_urllib2_read BUILDSTDERR: HTTPretty should mock a simple GET with urllib2.read() ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_mock_headers_urllib2 BUILDSTDERR: HTTPretty should mock basic headers with urllib2 ... ok BUILDSTDERR: tests.functional.test_urllib2.test_httpretty_should_support_a_list_of_successive_responses_urllib2 BUILDSTDERR: HTTPretty should support adding a list of successive responses with urllib2 ... ok BUILDSTDERR: tests.pyopenssl.test_mock.test_httpretty_overrides_when_pyopenssl_installed BUILDSTDERR: HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok BUILDSTDERR: tests.unit.test_core.test_request_stubs_internals BUILDSTDERR: HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok BUILDSTDERR: tests.unit.test_core.test_request_parse_querystring BUILDSTDERR: HTTPrettyRequest#parse_querystring should parse unicode data ... ok BUILDSTDERR: tests.unit.test_core.test_request_parse_body_when_it_is_application_json BUILDSTDERR: HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok BUILDSTDERR: tests.unit.test_core.test_request_parse_body_when_it_is_text_json BUILDSTDERR: HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok BUILDSTDERR: tests.unit.test_core.test_request_parse_body_when_it_is_urlencoded BUILDSTDERR: HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok BUILDSTDERR: tests.unit.test_core.test_request_parse_body_when_unrecognized BUILDSTDERR: HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok BUILDSTDERR: tests.unit.test_core.test_request_string_representation BUILDSTDERR: HTTPrettyRequest should have a debug-friendly string representation ... ok BUILDSTDERR: tests.unit.test_core.test_fake_ssl_socket_proxies_its_ow_socket BUILDSTDERR: FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_getpeercert BUILDSTDERR: fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_ssl BUILDSTDERR: fakesock.socket#ssl should take a socket instance and return itself ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_connect_fallback BUILDSTDERR: fakesock.socket#connect should open a real connection if the given port is not a potential http port ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_close BUILDSTDERR: fakesock.socket#close should close the actual socket in case it's not http and _closed is False ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_makefile BUILDSTDERR: fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_real_sendall BUILDSTDERR: fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_real_sendall_continue_eagain_when_http BUILDSTDERR: fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_real_sendall_socket_error_when_http BUILDSTDERR: fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_real_sendall_when_http BUILDSTDERR: fakesock.socket#real_sendall should connect before sending data ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline BUILDSTDERR: fakesock.socket#sendall should create an entry if it's given a valid request line ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline_2 BUILDSTDERR: fakesock.socket#sendall should create an entry if it's given a valid request line ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_no_entry BUILDSTDERR: fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_entry BUILDSTDERR: fakesock.socket#sendall should call real_sendall when there is no entry ... ok BUILDSTDERR: tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_chunked_entry BUILDSTDERR: fakesock.socket#sendall should call real_sendall when not ... ok BUILDSTDERR: tests.unit.test_http.test_parse_request_line_connect BUILDSTDERR: parse_requestline should parse the CONNECT method appropriately ... ok BUILDSTDERR: tests.unit.test_httpretty.test_httpretty_should_raise_proper_exception_on_inconsistent_length BUILDSTDERR: HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok BUILDSTDERR: tests.unit.test_httpretty.test_httpretty_should_raise_on_socket_send_when_uri_registered BUILDSTDERR: HTTPretty should raise a RuntimeError when the fakesocket is used in ... ok BUILDSTDERR: tests.unit.test_httpretty.test_httpretty_should_not_raise_on_socket_send_when_uri_not_registered BUILDSTDERR: HTTPretty should not raise a RuntimeError when the fakesocket is used in ... ok BUILDSTDERR: tests.unit.test_httpretty.test_does_not_have_last_request_by_default BUILDSTDERR: HTTPretty.last_request is a dummy object by default ... ok BUILDSTDERR: tests.unit.test_httpretty.test_status_codes BUILDSTDERR: HTTPretty supports N status codes ... ok BUILDSTDERR: tests.unit.test_httpretty.test_uri_info_full_url ... ok BUILDSTDERR: tests.unit.test_httpretty.test_uri_info_eq_ignores_case BUILDSTDERR: Test that URIInfo.__eq__ method ignores case for ... ok BUILDSTDERR: tests.unit.test_httpretty.test_global_boolean_enabled ... ok BUILDSTDERR: tests.unit.test_httpretty.test_py3kobject_implements_valid__repr__based_on__str__ ... ok BUILDSTDERR: tests.unit.test_httpretty.test_Entry_class_normalizes_headers ... ok BUILDSTDERR: tests.unit.test_httpretty.test_Entry_class_counts_multibyte_characters_in_bytes ... ok BUILDSTDERR: tests.unit.test_httpretty.test_Entry_class_counts_dynamic ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_fileno ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_bind ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_connect_ex ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_listen ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_getpeername ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_getsockname ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_gettimeout ... ok BUILDSTDERR: tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown ... ok BUILDSTDERR: tests.unit.test_httpretty.test_unix_socket ... ok BUILDSTDERR: tests.unit.test_httpretty.test_HTTPrettyRequest_json_body BUILDSTDERR: A content-type of application/json should parse a valid json body ... ok BUILDSTDERR: tests.unit.test_httpretty.test_HTTPrettyRequest_invalid_json_body BUILDSTDERR: A content-type of application/json with an invalid json body should return the content unaltered ... ok BUILDSTDERR: tests.unit.test_httpretty.test_HTTPrettyRequest_queryparam BUILDSTDERR: A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok BUILDSTDERR: tests.unit.test_httpretty.test_HTTPrettyRequest_arbitrarypost BUILDSTDERR: A non-handled content type request's post body should return the content unaltered ... ok BUILDSTDERR: tests.unit.test_httpretty.test_socktype_bad_python_version_regression BUILDSTDERR: Some versions of python accidentally internally shadowed the SockType ... ok BUILDSTDERR: tests.unit.test_httpretty.test_socktype_good_python_version ... ok BUILDSTDERR: tests.unit.test_main.test_last_request BUILDSTDERR: httpretty.last_request() should return httpretty.core.last_request ... ok BUILDSTDERR: tests.unit.test_main.test_has_request BUILDSTDERR: httpretty.has_request() correctly detects whether or not a request has been made ... ok BUILDSTDERR: ---------------------------------------------------------------------- BUILDSTDERR: Ran 129 tests in 5.236s BUILDSTDERR: OK + exit 0 Processing files: python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.BAks4s + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + DOCDIR=/builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/share/doc/python-httpretty-0.8.14 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/share/doc/python-httpretty-0.8.14 + cp -pr README.md /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/share/doc/python-httpretty-0.8.14 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.fIFIN2 + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + LICENSEDIR=/builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/share/licenses/python-httpretty-0.8.14 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/share/licenses/python-httpretty-0.8.14 + cp -pr COPYING /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386/usr/share/licenses/python-httpretty-0.8.14 + exit 0 Provides: python-httpretty = 0.8.14-2.20161011git70af1f8.el7 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) = 2.7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 Wrote: /builddir/build/RPMS/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.C2A4te + umask 022 + cd /builddir/build/BUILD + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.i386 + exit 0 Child return code was: 0