Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-0dbacf6884a956a6f9fe008e7a621850e5752a64/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory Building target platforms: noarch Building for target noarch 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 noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-0dbacf6884a956a6f9fe008e7a621850e5752a64/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.w1kCX6 + 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.VAzeUg + 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 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + /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/utils.py -> build/lib/httpretty copying httpretty/core.py -> build/lib/httpretty copying httpretty/http.py -> build/lib/httpretty copying httpretty/compat.py -> build/lib/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/__init__.py -> build/lib/httpretty + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.U51pki + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch ++ dirname /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch + cd HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3 + rm -rf /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch + 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 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/utils.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/core.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/http.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/compat.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/errors.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty copying build/lib/httpretty/__init__.py -> /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/usr/lib/python2.7/site-packages/httpretty byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/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.noarch/usr/lib/python2.7/site-packages/httpretty/core.py to core.pyc byte-compiling /builddir/build/BUILDROOT/python-httpretty-0.8.14-2.20161011git70af1f8.el7.noarch/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.noarch/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.noarch/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.noarch/usr/lib/python2.7/site-packages/httpretty/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpNhoEQ6.py' /usr/bin/python2 -O /tmp/tmpNhoEQ6.py removing /tmp/tmpNhoEQ6.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.noarch/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. 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.noarch/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.lEaRMm + 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 /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'with-coverage' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-erase' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-package' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) /usr/lib/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-inclusive' in config file 'setup.cfg' ignored: excluded by runtime environment warn(msg, RuntimeWarning) tests.functional.test_bypass.test_disallow_net_connect_1 When allow_net_connect = False, a request that otherwise ... ok tests.functional.test_bypass.test_disallow_net_connect_2 When allow_net_connect = False, a request that would have ... ok tests.functional.test_bypass.test_disallow_net_connect_3 When allow_net_connect = False, mocked requests still work correctly. ... ok tests.functional.test_bypass.test_httpretty_bypasses_a_unregistered_request httpretty should bypass a unregistered request by disabling it ... ok tests.functional.test_bypass.test_httpretty_bypasses_when_disabled httpretty should bypass all requests by disabling it ... ok tests.functional.test_bypass.test_using_httpretty_with_other_tcp_protocols httpretty should work even when testing code that also use other TCP-based protocols ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recv HTTPretty should debug socket.recv ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recv_into HTTPretty should debug socket.recv_into ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom HTTPretty should debug socket.recvfrom ... ok tests.functional.test_debug.test_httpretty_debugs_socket_recvfrom_into HTTPretty should debug socket.recvfrom_into ... ok tests.functional.test_debug.test_httpretty_debugs_socket_send HTTPretty should debug socket.send ... ok tests.functional.test_debug.test_httpretty_debugs_socket_sendto HTTPretty should debug socket.sendto ... ok test_decorated (tests.functional.test_decorator.ClassDecorator) ... ok test_decorated2 (tests.functional.test_decorator.ClassDecorator) ... ok test_decorated (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok test_decorated2 (tests.functional.test_decorator.ClassDecoratorWithSetUp) ... ok test_decorated (tests.functional.test_decorator.NonUnitTestTest) ... ok tests.functional.test_decorator.test_decor ... ok tests.functional.test_httplib2.test_callback_response HTTPretty should all a callback function to be set as the body with httplib2 ... FAIL tests.functional.test_httplib2.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_httplib2.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_httplib2.test_httpretty_ignores_querystrings_from_registered_uri Registering URIs with query string cause them to be ignored ... ok tests.functional.test_httplib2.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_adding_and_overwritting_httplib2 HTTPretty should allow adding and overwritting headers with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_forcing_headers_httplib2 HTTPretty should allow forcing headers with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with httplib2 ... ok tests.functional.test_httplib2.test_httpretty_should_mock_a_simple_get_with_httplib2_read HTTPretty should mock a simple GET with httplib2.context.http ... ok tests.functional.test_httplib2.test_httpretty_should_mock_headers_httplib2 HTTPretty should mock basic headers with httplib2 ... ok tests.functional.test_httplib2.test_rotating_responses_with_httplib2 HTTPretty should support rotating responses with httplib2 ... FAIL tests.functional.test_requests.test_recording_calls HTTPretty should be able to record calls ... ok tests.functional.test_requests.test_callback_body_remains_callable_for_any_subsequent_requests HTTPretty should call a callback function more than one requests ... ok tests.functional.test_requests.test_callback_response HTTPretty should call a callback function and set its return value as the body of the response requests ... ok tests.functional.test_requests.test_callback_setting_headers_and_status_response HTTPretty should call a callback function and uses it retur tuple as status code, headers and body requests ... ok tests.functional.test_requests.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_requests.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_requests.test_httpretty_ignores_querystrings_from_registered_uri HTTPretty should ignore querystrings from the registered uri (requests library) ... ok tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_requests.test_httpretty_provides_easy_access_to_querystrings_with_regexes HTTPretty should match regexes even if they have a different querystring ... ok tests.functional.test_requests.test_httpretty_reset_by_switching_protocols_for_same_port HTTPretty should reset protocol/port associations ... ok tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_requests HTTPretty should allow adding and overwritting headers with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_forcing_headers_requests HTTPretty should allow forcing headers with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_multiple_methods_for_the_same_uri HTTPretty should allow registering multiple methods for the same uri ... ok tests.functional.test_requests.test_httpretty_should_allow_multiple_responses_with_multiple_methods HTTPretty should allow multiple responses when binding multiple methods to the same uri ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with requests ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_and_give_a_proper_match_to_the_callback HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_port_and_give_a_proper_match_to_the_callback HTTPretty should allow registering regexes with requests and giva a proper match to the callback ... ok tests.functional.test_requests.test_httpretty_should_allow_registering_regexes_with_streaming_responses HTTPretty should allow registering regexes with streaming responses ... ok tests.functional.test_requests.test_httpretty_should_mock_a_simple_get_with_requests_read HTTPretty should mock a simple GET with requests.get ... ok tests.functional.test_requests.test_httpretty_should_mock_headers_requests HTTPretty should mock basic headers with requests ... ok tests.functional.test_requests.test_httpretty_should_normalize_url_patching HTTPretty should normalize all url patching ... ok tests.functional.test_requests.test_httpretty_should_respect_matcher_priority ... ok tests.functional.test_requests.test_httpretty_should_work_with_non_standard_ports HTTPretty should work with a non-standard port number ... ok tests.functional.test_requests.test_lack_of_trailing_slash HTTPretty should automatically append a slash to given urls ... ok tests.functional.test_requests.test_multiline ... ok tests.functional.test_requests.test_multipart ... ok tests.functional.test_requests.test_octet_stream ... ok tests.functional.test_requests.test_py26_callback_response HTTPretty should call a callback function *once* and set its return value as the body of the response requests ... ok tests.functional.test_requests.test_rotating_responses_with_requests HTTPretty should support rotating responses with requests ... ok tests.functional.test_requests.test_streaming_responses Mock a streaming HTTP response, like those returned by the Twitter streaming ... FAIL tests.functional.test_requests.test_unicode_querystrings Querystrings should accept unicode characters ... ok tests.functional.test_urllib2.test_callback_response HTTPretty should all a callback function to be set as the body with urllib2 ... ok tests.functional.test_urllib2.test_can_inspect_last_request HTTPretty.last_request is a mimetools.Message request from last match ... ok tests.functional.test_urllib2.test_can_inspect_last_request_with_ssl HTTPretty.last_request is recorded even when mocking 'https' (SSL) ... ok tests.functional.test_urllib2.test_httpretty_ignores_querystrings_from_registered_uri HTTPretty should mock a simple GET with urllib2.read() ... ok tests.functional.test_urllib2.test_httpretty_provides_easy_access_to_querystrings HTTPretty should provide an easy access to the querystring ... ok tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2 HTTPretty should allow adding and overwritting headers by keyword args with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_adding_and_overwritting_urllib2 HTTPretty should allow adding and overwritting headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_forcing_headers_urllib2 HTTPretty should allow forcing headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_allow_registering_regexes HTTPretty should allow registering regexes with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_mock_a_simple_get_with_urllib2_read HTTPretty should mock a simple GET with urllib2.read() ... ok tests.functional.test_urllib2.test_httpretty_should_mock_headers_urllib2 HTTPretty should mock basic headers with urllib2 ... ok tests.functional.test_urllib2.test_httpretty_should_support_a_list_of_successive_responses_urllib2 HTTPretty should support adding a list of successive responses with urllib2 ... FAIL tests.pyopenssl.test_mock.test_httpretty_overrides_when_pyopenssl_installed HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed ... ok tests.unit.test_core.test_request_stubs_internals HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... ok tests.unit.test_core.test_request_parse_querystring HTTPrettyRequest#parse_querystring should parse unicode data ... ok tests.unit.test_core.test_request_parse_body_when_it_is_application_json HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_it_is_text_json HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_it_is_urlencoded HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... ok tests.unit.test_core.test_request_parse_body_when_unrecognized HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... ok tests.unit.test_core.test_request_string_representation HTTPrettyRequest should have a debug-friendly string representation ... ok tests.unit.test_core.test_fake_ssl_socket_proxies_its_ow_socket FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... ok tests.unit.test_core.test_fakesock_socket_getpeercert fakesock.socket#getpeercert should return a hardcoded fake certificate ... ok tests.unit.test_core.test_fakesock_socket_ssl fakesock.socket#ssl should take a socket instance and return itself ... ok tests.unit.test_core.test_fakesock_socket_connect_fallback fakesock.socket#connect should open a real connection if the given port is not a potential http port ... ok tests.unit.test_core.test_fakesock_socket_close fakesock.socket#close should close the actual socket in case it's not http and _closed is False ... ok tests.unit.test_core.test_fakesock_socket_makefile fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... ok tests.unit.test_core.test_fakesock_socket_real_sendall fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_continue_eagain_when_http fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_socket_error_when_http fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... ok tests.unit.test_core.test_fakesock_socket_real_sendall_when_http fakesock.socket#real_sendall should connect before sending data ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline fakesock.socket#sendall should create an entry if it's given a valid request line ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_valid_requestline_2 fakesock.socket#sendall should create an entry if it's given a valid request line ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_no_entry fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_entry fakesock.socket#sendall should call real_sendall when there is no entry ... ok tests.unit.test_core.test_fakesock_socket_sendall_with_body_data_with_chunked_entry fakesock.socket#sendall should call real_sendall when not ... ok tests.unit.test_http.test_parse_request_line_connect parse_requestline should parse the CONNECT method appropriately ... ok tests.unit.test_httpretty.test_httpretty_should_raise_proper_exception_on_inconsistent_length HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... ok tests.unit.test_httpretty.test_httpretty_should_raise_on_socket_send_when_uri_registered HTTPretty should raise a RuntimeError when the fakesocket is used in ... ok tests.unit.test_httpretty.test_httpretty_should_not_raise_on_socket_send_when_uri_not_registered HTTPretty should not raise a RuntimeError when the fakesocket is used in ... ok tests.unit.test_httpretty.test_does_not_have_last_request_by_default HTTPretty.last_request is a dummy object by default ... ok tests.unit.test_httpretty.test_status_codes HTTPretty supports N status codes ... ok tests.unit.test_httpretty.test_uri_info_full_url ... ok tests.unit.test_httpretty.test_uri_info_eq_ignores_case Test that URIInfo.__eq__ method ignores case for ... ok tests.unit.test_httpretty.test_global_boolean_enabled ... ok tests.unit.test_httpretty.test_py3kobject_implements_valid__repr__based_on__str__ ... ok tests.unit.test_httpretty.test_Entry_class_normalizes_headers ... ok tests.unit.test_httpretty.test_Entry_class_counts_multibyte_characters_in_bytes ... ok tests.unit.test_httpretty.test_Entry_class_counts_dynamic ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_fileno ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_bind ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_connect_ex ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_listen ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getpeername ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_getsockname ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_gettimeout ... ok tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown ... ok tests.unit.test_httpretty.test_unix_socket ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_json_body A content-type of application/json should parse a valid json body ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_invalid_json_body A content-type of application/json with an invalid json body should return the content unaltered ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_queryparam A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... ok tests.unit.test_httpretty.test_HTTPrettyRequest_arbitrarypost A non-handled content type request's post body should return the content unaltered ... ok tests.unit.test_httpretty.test_socktype_bad_python_version_regression Some versions of python accidentally internally shadowed the SockType ... ok tests.unit.test_httpretty.test_socktype_good_python_version ... ok tests.unit.test_main.test_last_request httpretty.last_request() should return httpretty.core.last_request ... ok tests.unit.test_main.test_has_request httpretty.has_request() correctly detects whether or not a request has been made ... ok ====================================================================== FAIL: tests.functional.test_httplib2.test_callback_response HTTPretty should all a callback function to be set as the body with httplib2 ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/lib/python2.7/site-packages/nose/util.py", line 620, in newfunc return func(*arg, **kw) File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/httpretty/core.py", line 1319, in wrapper return test(*args, **kw) File "/usr/lib/python2.7/site-packages/sure/__init__.py", line 190, in wrap '%s did not run within %s %s' % (func.__name__, word, unit) AssertionError: test_callback_response did not run within two microseconds -------------------- >> begin captured stdout << --------------------- (207117, 200000) --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: tests.functional.test_httplib2.test_rotating_responses_with_httplib2 HTTPretty should support rotating responses with httplib2 ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/lib/python2.7/site-packages/nose/util.py", line 620, in newfunc return func(*arg, **kw) File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/httpretty/core.py", line 1319, in wrapper return test(*args, **kw) File "/usr/lib/python2.7/site-packages/sure/__init__.py", line 190, in wrap '%s did not run within %s %s' % (func.__name__, word, unit) AssertionError: test_rotating_responses_with_httplib2 did not run within two microseconds -------------------- >> begin captured stdout << --------------------- (267304, 200000) --------------------- >> end captured stdout << ---------------------- ====================================================================== FAIL: tests.functional.test_requests.test_streaming_responses Mock a streaming HTTP response, like those returned by the Twitter streaming ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/lib/python2.7/site-packages/nose/util.py", line 620, in newfunc return func(*arg, **kw) File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/httpretty/core.py", line 1319, in wrapper return test(*args, **kw) File "/usr/lib/python2.7/site-packages/sure/__init__.py", line 192, in wrap raise AssertionError(exc.pop(0)) AssertionError: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sure/__init__.py", line 169, in wrap func(start, *args, **kw) File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/tests/functional/test_requests.py", line 342, in test_streaming_responses twitter_body = b''.join(c for c in response.iter_content(chunk_size=1)) File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/tests/functional/test_requests.py", line 342, in twitter_body = b''.join(c for c in response.iter_content(chunk_size=1)) File "/usr/lib/python2.7/site-packages/requests/models.py", line 656, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File "/usr/lib/python2.7/site-packages/urllib3/response.py", line 273, in stream data = self.read(amt=amt, decode_content=decode_content) File "/usr/lib/python2.7/site-packages/urllib3/response.py", line 183, in read content_encoding = self.headers.get('content-encoding', '').lower() File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/tests/functional/test_requests.py", line 294, in handler raise AssertionError(message) AssertionError: Iterating by char is taking forever! -------------------- >> begin captured stdout << --------------------- (133584, 500000) --------------------- >> end captured stdout << ---------------------- -------------------- >> begin captured logging << -------------------- requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): stream.twitter.com requests.packages.urllib3.connectionpool: DEBUG: "POST /1/statuses/filter.json HTTP/1.1" 200 None requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): stream.twitter.com requests.packages.urllib3.connectionpool: DEBUG: "POST /1/statuses/filter.json HTTP/1.1" 200 None requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): stream.twitter.com requests.packages.urllib3.connectionpool: DEBUG: "POST /1/statuses/filter.json HTTP/1.1" 200 None --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: tests.functional.test_urllib2.test_httpretty_should_support_a_list_of_successive_responses_urllib2 HTTPretty should support adding a list of successive responses with urllib2 ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/lib/python2.7/site-packages/nose/util.py", line 620, in newfunc return func(*arg, **kw) File "/builddir/build/BUILD/HTTPretty-70af1f8cf925ef50cb5e72212fb0aa46e1451dc3/httpretty/core.py", line 1319, in wrapper return test(*args, **kw) File "/usr/lib/python2.7/site-packages/sure/__init__.py", line 190, in wrap '%s did not run within %s %s' % (func.__name__, word, unit) AssertionError: test_httpretty_should_support_a_list_of_successive_responses_urllib2 did not run within two microseconds -------------------- >> begin captured stdout << --------------------- (258587, 200000) --------------------- >> end captured stdout << ---------------------- ---------------------------------------------------------------------- Ran 129 tests in 12.305s FAILED (failures=4) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.lEaRMm (%check) Bad exit status from /var/tmp/rpm-tmp.lEaRMm (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-httpretty.spec