<86>Apr 21 01:12:28 userdel[24745]: delete user 'rooter' <86>Apr 21 01:12:28 userdel[24745]: removed group 'rooter' owned by 'rooter' <86>Apr 21 01:12:28 userdel[24745]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 21 01:12:28 groupadd[24762]: group added to /etc/group: name=rooter, GID=549 <86>Apr 21 01:12:28 groupadd[24762]: group added to /etc/gshadow: name=rooter <86>Apr 21 01:12:28 groupadd[24762]: new group: name=rooter, GID=549 <86>Apr 21 01:12:28 useradd[24773]: new user: name=rooter, UID=549, GID=549, home=/root, shell=/bin/bash <86>Apr 21 01:12:28 userdel[24792]: delete user 'builder' <86>Apr 21 01:12:28 userdel[24792]: removed group 'builder' owned by 'builder' <86>Apr 21 01:12:28 userdel[24792]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 01:12:28 groupadd[24809]: group added to /etc/group: name=builder, GID=550 <86>Apr 21 01:12:28 groupadd[24809]: group added to /etc/gshadow: name=builder <86>Apr 21 01:12:28 groupadd[24809]: new group: name=builder, GID=550 <86>Apr 21 01:12:28 useradd[24824]: new user: name=builder, UID=550, GID=550, home=/usr/src, shell=/bin/bash <13>Apr 21 01:12:33 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 01:12:33 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 01:12:33 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:12:33 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:12:33 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:33 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 01:12:33 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 01:12:33 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 01:12:33 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 01:12:34 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 01:12:34 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 01:12:34 groupadd[31481]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 01:12:34 groupadd[31481]: group added to /etc/gshadow: name=_keytab <86>Apr 21 01:12:34 groupadd[31481]: new group: name=_keytab, GID=499 <13>Apr 21 01:12:34 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 01:12:34 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:35 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:35 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:35 rpmi: python3-module-six-1.10.0-alt7 1496087616 installed <13>Apr 21 01:12:35 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 01:12:35 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:35 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:12:35 rpmi: python3-module-linecache2-1.0.0-alt1.git20150306.1.1 1457981765 installed <13>Apr 21 01:12:35 rpmi: python3-module-traceback2-1.4.0-alt1.git20150309.1.1 1458137072 installed <13>Apr 21 01:12:35 rpmi: python3-module-unittest2-1.1.0-alt2.hg20150630.1 1458023441 installed <13>Apr 21 01:12:35 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:35 rpmi: python3-module-httplib2-0.9.1-alt1.1 1457971244 installed <13>Apr 21 01:12:35 rpmi: python3-module-mockito-0.5.2-alt1.1 1457990462 installed <13>Apr 21 01:12:35 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:35 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:12:35 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:12:36 rpmi: python3-module-coverage-4.0-alt1.a7.git20150730.1.1 1459584383 installed <13>Apr 21 01:12:36 rpmi: python3-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 21 01:12:36 rpmi: python3-tools-pep8-1.6.2-alt1.1.1 1460077570 installed <13>Apr 21 01:12:36 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-module-mockito-0.5.2-alt1.1 1457990462 installed <13>Apr 21 01:12:36 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 21 01:12:36 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 21 01:12:36 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:36 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:12:36 rpmi: python-module-linecache2-1.0.0-alt1.git20150306.1.1 1457981765 installed <13>Apr 21 01:12:36 rpmi: python-module-traceback2-1.4.0-alt1.git20150309.1.1 1458137072 installed <13>Apr 21 01:12:36 rpmi: python-module-httplib2-0.9.1-alt1.1 1457971244 installed <13>Apr 21 01:12:36 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:12:36 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:12:36 rpmi: python-module-coverage-4.0-alt1.a7.git20150730.1.1 1459584383 installed <13>Apr 21 01:12:36 rpmi: python-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 21 01:12:36 rpmi: python-module-unittest2-1.1.0-alt2.hg20150630.1 1458023441 installed <13>Apr 21 01:12:36 rpmi: python-tools-pep8-1.6.2-alt1.1.1 1460077570 installed Installing python-module-asynchttp-0.0.4-alt1.git20120701.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.44878 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-asynchttp-0.0.4 + echo 'Source #0 (python-module-asynchttp-0.0.4.tar):' Source #0 (python-module-asynchttp-0.0.4.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-asynchttp-0.0.4.tar + cd python-module-asynchttp-0.0.4 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/tests/test_response.py RefactoringTool: Refactored ../python3/tests/test_promise.py RefactoringTool: Refactored ../python3/tests/test_http.py RefactoringTool: Refactored ../python3/test.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/examples/simple.py RefactoringTool: Refactored ../python3/examples/client.py RefactoringTool: Refactored ../python3/examples/callback.py RefactoringTool: Refactored ../python3/asynchttp/__init__.py --- ../python3/tests/test_response.py (original) +++ ../python3/tests/test_response.py (refactored) @@ -2,7 +2,7 @@ # # -from __future__ import absolute_import + from asynchttp import Promise, Response from unittest2 import TestCase @@ -29,9 +29,9 @@ self.assertTrue('status' in response, 'status missing') self.assertEqual(response['status'], 200, 'unexpected status item') self.assertEqual(response.status, 200, 'unexpected status attr') - self.assertEqual(response.keys(), ['status'], 'unexpected keys') - self.assertEqual(response.values(), [200], 'unexpected values') - self.assertEqual(response.items(), [('status', 200)], 'unexpected values') + self.assertEqual(list(response.keys()), ['status'], 'unexpected keys') + self.assertEqual(list(response.values()), [200], 'unexpected values') + self.assertEqual(list(response.items()), [('status', 200)], 'unexpected values') self.assertEqual(len(response), 1, 'unexpected len') self.assertTrue(iter(response), 'iter failed') --- ../python3/tests/test_promise.py (original) +++ ../python3/tests/test_promise.py (refactored) @@ -2,7 +2,7 @@ # # -from __future__ import absolute_import + from asynchttp import Promise from datetime import datetime, timedelta --- ../python3/tests/test_http.py (original) +++ ../python3/tests/test_http.py (refactored) @@ -2,7 +2,7 @@ # # -from __future__ import absolute_import + from asynchttp import Http, _Worker from datetime import datetime, timedelta --- ../python3/test.py (original) +++ ../python3/test.py (refactored) @@ -1,6 +1,6 @@ #!/usr/bin/env python -from __future__ import absolute_import + import nose --- ../python3/examples/simple.py (original) +++ ../python3/examples/simple.py (refactored) @@ -2,7 +2,7 @@ # # -from __future__ import absolute_import + from asynchttp import Http from httplib2 import ServerNotFoundError @@ -32,4 +32,4 @@ try: response.status except ServerNotFoundError: - print "caught the expected exception" + print("caught the expected exception") --- ../python3/examples/client.py (original) +++ ../python3/examples/client.py (refactored) @@ -2,7 +2,7 @@ # # -from __future__ import absolute_import + from asynchttp import Http from pprint import pprint --- ../python3/examples/callback.py (original) +++ ../python3/examples/callback.py (refactored) @@ -2,7 +2,7 @@ # # -from __future__ import absolute_import + from asynchttp import Http from pprint import pprint @@ -37,5 +37,5 @@ try: response.status -except SomeException, e: - print "caught the expected exception, caused by the callback: %s" % e +except SomeException as e: + print("caught the expected exception, caused by the callback: %s" % e) --- ../python3/asynchttp/__init__.py (original) +++ ../python3/asynchttp/__init__.py (refactored) @@ -2,14 +2,14 @@ # # -from __future__ import absolute_import + __version__ = '0.0.4' __date__ = '2011-10-27' __author__ = 'Ross McFarland' __credits__ = '''Ross McFarland''' -from Queue import Queue +from queue import Queue from sys import exc_info from threading import Event, Thread from traceback import extract_stack, format_list @@ -48,7 +48,7 @@ logger.debug('%s.fullfill invoking callback', self) try: self.__callback(self) - except Exception, e: + except Exception as e: logger.exception('%s.fullfill callback threw an exception,' ' %s, original invocation:\n%s', self, e, ''.join(format_list(self.__stack))) @@ -70,8 +70,7 @@ logger.info('%s.wait: raising exception, %s, original invocation:' '\n%s', self, self.caught_exc_info[1], ''.join(format_list(self.__stack))) - raise self.caught_exc_info[0], self.caught_exc_info[1], \ - self.caught_exc_info[2] + raise self.caught_exc_info[0](sRefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/test_response.py RefactoringTool: ../python3/tests/test_promise.py RefactoringTool: ../python3/tests/test_http.py RefactoringTool: ../python3/test.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/examples/simple.py RefactoringTool: ../python3/examples/client.py RefactoringTool: ../python3/examples/callback.py RefactoringTool: ../python3/asynchttp/__init__.py elf.caught_exc_info[1]).with_traceback(self.caught_exc_info[2]) def get_response(self): self.wait() @@ -105,13 +104,13 @@ return self.__promise.get_response().__delitem__(key) def keys(self): - return self.__promise.get_response().keys() + return list(self.__promise.get_response().keys()) def values(self): - return self.__promise.get_response().values() + return list(self.__promise.get_response().values()) def items(self): - return self.__promise.get_response().items() + return list(self.__promise.get_response().items()) def __iter__(self): return self.__promise.get_response().__iter__() @@ -167,7 +166,7 @@ try: response, content = self.__handle.request(*args, **kwargs) promise.fulfill(response, content) - except Exception, e: + except Exception as e: logger.warn('%s.run: request raised exception: %s', self, e) promise.fulfill(None, None, exc_info()) @@ -205,9 +204,9 @@ def __get_client(self): logger.debug('%s.__get_client', self) client = self.Client(*self.__client_args, **self.__client_kwargs) - for method, params in self.__client_methods.items(): + for method, params in list(self.__client_methods.items()): getattr(client, method)(*params[0], **params[1]) - for attribute, value in self.__dict__.items(): + for attribute, value in list(self.__dict__.items()): # don't copy max_workers or any of our 'private' attrs if attribute != 'max_workers' \ and not attribute.startswith('_Http__'): + sed -i 's|coverage|coverage3|' ../python3/coverage.sh + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.54968 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-asynchttp-0.0.4 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/asynchttp copying asynchttp/__init__.py -> build/lib/asynchttp + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-asynchttp-0.0.4 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/asynchttp copying asynchttp/__init__.py -> build/lib/asynchttp + popd ~/RPM/BUILD/python-module-asynchttp-0.0.4 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.88132 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-asynchttp-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-asynchttp-buildroot + cd python-module-asynchttp-0.0.4 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-asynchttp-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-asynchttp-buildroot creating /usr/src/tmp/python-module-asynchttp-buildroot/usr creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp copying build/lib/asynchttp/__init__.py -> /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp byte-compiling /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp/__init__.py to __init__.pyc running install_egg_info running egg_info creating asynchttp.egg-info writing requirements to asynchttp.egg-info/requires.txt writing asynchttp.egg-info/PKG-INFO writing top-level names to asynchttp.egg-info/top_level.txt writing dependency_links to asynchttp.egg-info/dependency_links.txt writing manifest file 'asynchttp.egg-info/SOURCES.txt' reading manifest file 'asynchttp.egg-info/SOURCES.txt' writing manifest file 'asynchttp.egg-info/SOURCES.txt' Copying asynchttp.egg-info to /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp-0.0.4-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-asynchttp-0.0.4 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-asynchttp-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp copying build/lib/asynchttp/__init__.py -> /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp byte-compiling /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp/__init__.py to __init__.cpython-35.pyc running install_egg_info running egg_info creating asynchttp.egg-info writing dependency_links to asynchttp.egg-info/dependency_links.txt writing asynchttp.egg-info/PKG-INFO writing top-level names to asynchttp.egg-info/top_level.txt writing requirements to asynchttp.egg-info/requires.txt writing manifest file 'asynchttp.egg-info/SOURCES.txt' reading manifest file 'asynchttp.egg-info/SOURCES.txt' writing manifest file 'asynchttp.egg-info/SOURCES.txt' Copying asynchttp.egg-info to /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-asynchttp-0.0.4 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-asynchttp-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-asynchttp-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-asynchttp-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-asynchttp-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-asynchttp-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-asynchttp-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp/__init__.pyc compile /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp/__init__.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-asynchttp-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp/__init__.py Bytecompiling python3 modules in /usr/src/tmp/python-module-asynchttp-buildroot using python3 unlink /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.pyc compile /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-asynchttp-buildroot using python3 -O compile /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-asynchttp-buildroot using python3 -OO compile /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/asynchttp/__init__.pyo' => './usr/lib/python2.7/site-packages/asynchttp/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.35377 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-asynchttp-0.0.4 + python setup.py test running test running egg_info deleting asynchttp.egg-info/requires.txt writing asynchttp.egg-info/PKG-INFO writing top-level names to asynchttp.egg-info/top_level.txt writing dependency_links to asynchttp.egg-info/dependency_links.txt reading manifest file 'asynchttp.egg-info/SOURCES.txt' writing manifest file 'asynchttp.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + python test.py ....E........ ====================================================================== ERROR: test_request_errors (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/tests/test_http.py", line 237, in test_request_errors self.assertRaises(BooException, content) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 748, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 190, in handle self.obj_name = callable_obj.__name__ File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/asynchttp/__init__.py", line 144, in __getattr__ return getattr(self.__promise.get_content(), name) File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/asynchttp/__init__.py", line 81, in get_content self.wait() File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/asynchttp/__init__.py", line 168, in run response, content = self.__handle.request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 83, in __call__ return matching_invocation.answer_first() File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 46, in answer_first return self.answers[0].answer() File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 174, in answer return a.answer() File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 181, in answer raise self.exception BooException: hoo! -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: WARNING: .run: request raised exception: hoo! asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .wait asynchttp: DEBUG: .run: done asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "test.py", line 7, in nose.run() File "/usr/lib/python2.7/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python2.7/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python2.7/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python2.7/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python2.7/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 75, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/case.py", line 45, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python2.7/site-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python2.7/site-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "test.py", line 7, in nose.run() File "/usr/lib/python2.7/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python2.7/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python2.7/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python2.7/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python2.7/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 75, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/case.py", line 45, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python2.7/site-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python2.7/site-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 13 tests in 0.712s FAILED (errors=1) + ./coverage.sh ....E........ ====================================================================== ERROR: test_request_errors (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/tests/test_http.py", line 237, in test_request_errors self.assertRaises(BooException, content) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 748, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 190, in handle self.obj_name = callable_obj.__name__ File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/asynchttp/__init__.py", line 144, in __getattr__ return getattr(self.__promise.get_content(), name) File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/asynchttp/__init__.py", line 81, in get_content self.wait() File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/asynchttp/__init__.py", line 168, in run response, content = self.__handle.request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 83, in __call__ return matching_invocation.answer_first() File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 46, in answer_first return self.answers[0].answer() File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 174, in answer return a.answer() File "/usr/lib/python2.7/site-packages/mockito/invocation.py", line 181, in answer raise self.exception BooException: hoo! -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: WARNING: .run: request raised exception: hoo! asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "/usr/bin/coverage", line 9, in load_entry_point('coverage==4.0a7', 'console_scripts', 'coverage')() File "/usr/lib64/python2.7/site-packages/coverage/cmdline.py", line 699, in main status = CoverageScript().command_line(argv) File "/usr/lib64/python2.7/site-packages/coverage/cmdline.py", line 434, in command_line return self.do_run(options, args) File "/usr/lib64/python2.7/site-packages/coverage/cmdline.py", line 576, in do_run self.run_python_file(filename, args) File "/usr/lib64/python2.7/site-packages/coverage/execfile.py", line 153, in run_python_file exec(code, main_mod.__dict__) File "./test.py", line 7, in nose.run() File "/usr/lib/python2.7/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python2.7/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python2.7/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python2.7/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python2.7/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 75, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/case.py", line 45, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python2.7/site-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python2.7/site-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "/usr/bin/coverage", line 9, in load_entry_point('coverage==4.0a7', 'console_scripts', 'coverage')() File "/usr/lib64/python2.7/site-packages/coverage/cmdline.py", line 699, in main status = CoverageScript().command_line(argv) File "/usr/lib64/python2.7/site-packages/coverage/cmdline.py", line 434, in command_line return self.do_run(options, args) File "/usr/lib64/python2.7/site-packages/coverage/cmdline.py", line 576, in do_run self.run_python_file(filename, args) File "/usr/lib64/python2.7/site-packages/coverage/execfile.py", line 153, in run_python_file exec(code, main_mod.__dict__) File "./test.py", line 7, in nose.run() File "/usr/lib/python2.7/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python2.7/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python2.7/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python2.7/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python2.7/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 75, in run test(result) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/site-packages/nose/suite.py", line 222, in run test(orig) File "/usr/lib/python2.7/site-packages/nose/case.py", line 45, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python2.7/site-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python2.7/site-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python-module-asynchttp-0.0.4/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 13 tests in 0.754s FAILED (errors=1) + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-asynchttp-0.0.4 + python3 setup.py test running test running egg_info writing asynchttp.egg-info/PKG-INFO deleting asynchttp.egg-info/requires.txt writing top-level names to asynchttp.egg-info/top_level.txt writing dependency_links to asynchttp.egg-info/dependency_links.txt reading manifest file 'asynchttp.egg-info/SOURCES.txt' writing manifest file 'asynchttp.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + python3 test.py F..FE.F...... ====================================================================== ERROR: test_request_errors (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 237, in test_request_errors self.assertRaises(BooException, content) File "/usr/lib/python3/site-packages/unittest2/case.py", line 748, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python3/site-packages/unittest2/case.py", line 190, in handle self.obj_name = callable_obj.__name__ File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 143, in __getattr__ return getattr(self.__promise.get_content(), name) File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 80, in get_content self.wait() File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 73, in wait raise self.caught_exc_info[0](self.caught_exc_info[1]).with_traceback(self.caught_exc_info[2]) File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 167, in run response, content = self.__handle.request(*args, **kwargs) File "/usr/lib/python3/site-packages/mockito/invocation.py", line 83, in __call__ return matching_invocation.answer_first() File "/usr/lib/python3/site-packages/mockito/invocation.py", line 46, in answer_first return self.answers[0].answer() File "/usr/lib/python3/site-packages/mockito/invocation.py", line 174, in answer return a.answer() File "/usr/lib/python3/site-packages/mockito/invocation.py", line 181, in answer raise self.exception test_http.HttpTest.test_request_errors..BooException: hoo! -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: WARNING: .run: request raised exception: hoo! asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "test.py", line 7, in nose.run() File "/usr/lib/python3/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python3/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python3.5/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python3/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python3/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib64/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/nose/suite.py", line 76, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/case.py", line 46, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python3/site-packages/nose/case.py", line 134, in run self.runTest(result) File "/usr/lib/python3/site-packages/nose/case.py", line 152, in runTest test(result) File "/usr/lib/python3/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "test.py", line 7, in nose.run() File "/usr/lib/python3/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python3/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python3.5/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python3/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python3/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib64/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/nose/suite.py", line 76, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/case.py", line 46, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python3/site-packages/nose/case.py", line 134, in run self.runTest(result) File "/usr/lib/python3/site-packages/nose/case.py", line 152, in runTest test(result) File "/usr/lib/python3/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_basic (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 70, in test_basic self.assertEqual(response, mock_response, 'received expected response') AssertionError: != {} : received expected response -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_request (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 150, in test_request 'received expected response') AssertionError: != {} : received expected response -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={'headers': {'cache-control': 'no-cache'}, 'body': 'this is a body'} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_workers (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 178, in test_workers 'received expected response') AssertionError: != {} : received expected response -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 13 tests in 0.395s FAILED (errors=1, failures=3) + ./coverage.sh F..FE.F...... ====================================================================== ERROR: test_request_errors (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 237, in test_request_errors self.assertRaises(BooException, content) File "/usr/lib/python3/site-packages/unittest2/case.py", line 748, in assertRaises return context.handle('assertRaises', args, kwargs) File "/usr/lib/python3/site-packages/unittest2/case.py", line 190, in handle self.obj_name = callable_obj.__name__ File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 143, in __getattr__ return getattr(self.__promise.get_content(), name) File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 80, in get_content self.wait() File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 73, in wait raise self.caught_exc_info[0](self.caught_exc_info[1]).with_traceback(self.caught_exc_info[2]) File "/usr/src/RPM/BUILD/python3/asynchttp/__init__.py", line 167, in run response, content = self.__handle.request(*args, **kwargs) File "/usr/lib/python3/site-packages/mockito/invocation.py", line 83, in __call__ return matching_invocation.answer_first() File "/usr/lib/python3/site-packages/mockito/invocation.py", line 46, in answer_first return self.answers[0].answer() File "/usr/lib/python3/site-packages/mockito/invocation.py", line 174, in answer return a.answer() File "/usr/lib/python3/site-packages/mockito/invocation.py", line 181, in answer raise self.exception test_http.HttpTest.test_request_errors..BooException: hoo! -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: WARNING: .run: request raised exception: hoo! asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "/usr/bin/coverage3", line 9, in load_entry_point('coverage==4.0a7', 'console_scripts', 'coverage')() File "/usr/lib64/python3/site-packages/coverage/cmdline.py", line 699, in main status = CoverageScript().command_line(argv) File "/usr/lib64/python3/site-packages/coverage/cmdline.py", line 434, in command_line return self.do_run(options, args) File "/usr/lib64/python3/site-packages/coverage/cmdline.py", line 576, in do_run self.run_python_file(filename, args) File "/usr/lib64/python3/site-packages/coverage/execfile.py", line 153, in run_python_file exec(code, main_mod.__dict__) File "./test.py", line 7, in nose.run() File "/usr/lib/python3/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python3/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python3.5/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python3/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python3/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib64/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/nose/suite.py", line 76, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/case.py", line 46, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python3/site-packages/nose/case.py", line 134, in run self.runTest(result) File "/usr/lib/python3/site-packages/nose/case.py", line 152, in runTest test(result) File "/usr/lib/python3/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) asynchttp: DEBUG: .wait asynchttp: INFO: .wait: raising exception, hoo!, original invocation: File "/usr/bin/coverage3", line 9, in load_entry_point('coverage==4.0a7', 'console_scripts', 'coverage')() File "/usr/lib64/python3/site-packages/coverage/cmdline.py", line 699, in main status = CoverageScript().command_line(argv) File "/usr/lib64/python3/site-packages/coverage/cmdline.py", line 434, in command_line return self.do_run(options, args) File "/usr/lib64/python3/site-packages/coverage/cmdline.py", line 576, in do_run self.run_python_file(filename, args) File "/usr/lib64/python3/site-packages/coverage/execfile.py", line 153, in run_python_file exec(code, main_mod.__dict__) File "./test.py", line 7, in nose.run() File "/usr/lib/python3/site-packages/nose/core.py", line 301, in run return TestProgram(*arg, **kw).success File "/usr/lib/python3/site-packages/nose/core.py", line 121, in __init__ **extra_args) File "/usr/lib64/python3.5/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python3/site-packages/nose/core.py", line 207, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python3/site-packages/nose/core.py", line 62, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib64/python3.5/unittest/suite.py", line 84, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/nose/suite.py", line 76, in run test(result) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/suite.py", line 178, in __call__ return self.run(*arg, **kw) File "/usr/lib/python3/site-packages/nose/suite.py", line 223, in run test(orig) File "/usr/lib/python3/site-packages/nose/case.py", line 46, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python3/site-packages/nose/case.py", line 134, in run self.runTest(result) File "/usr/lib/python3/site-packages/nose/case.py", line 152, in runTest test(result) File "/usr/lib/python3/site-packages/unittest2/case.py", line 673, in __call__ return self.run(*args, **kwds) File "/usr/lib/python3/site-packages/unittest2/case.py", line 625, in run testMethod() File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 235, in test_request_errors response, content = h.request(url) --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_basic (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 70, in test_basic self.assertEqual(response, mock_response, 'received expected response') AssertionError: != {} : received expected response -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_request (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 150, in test_request 'received expected response') AssertionError: != {} : received expected response -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={'headers': {'cache-control': 'no-cache'}, 'body': 'this is a body'} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .fullfill asynchttp: DEBUG: .run: done --------------------- >> end captured logging << --------------------- ====================================================================== FAIL: test_workers (test_http.HttpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_http.py", line 178, in test_workers 'received expected response') AssertionError: != {} : received expected response -------------------- >> begin captured logging << -------------------- asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .__get_client asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .run asynchttp: DEBUG: .run: work= asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ asynchttp: DEBUG: .request: args=('http://localhost',), kwargs={} asynchttp: DEBUG: .__init__ --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 13 tests in 0.421s FAILED (errors=1, failures=3) + popd ~/RPM/BUILD/python-module-asynchttp-0.0.4 + exit 0 Processing files: python-module-asynchttp-0.0.4-alt1.git20120701.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.89208 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-asynchttp-0.0.4 + DOCDIR=/usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python-module-asynchttp-0.0.4 + export DOCDIR + rm -rf /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python-module-asynchttp-0.0.4 + /bin/mkdir -p /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python-module-asynchttp-0.0.4 + cp -prL README.rst examples /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python-module-asynchttp-0.0.4 + chmod -R go-w /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python-module-asynchttp-0.0.4 + chmod -R a+rX /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python-module-asynchttp-0.0.4 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.K6W23Q find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KkCCzz find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python.req: /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python2.7/site-packages/asynchttp/__init__.py: skipping sys Provides: python2.7(asynchttp) Requires: python2.7(httplib2), /usr/lib/python2.7/site-packages, python-modules, python2.7(logging) Processing files: python3-module-asynchttp-0.0.4-alt1.git20120701.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.73395 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-asynchttp-0.0.4 + DOCDIR=/usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python3-module-asynchttp-0.0.4 + export DOCDIR + rm -rf /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python3-module-asynchttp-0.0.4 + /bin/mkdir -p /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python3-module-asynchttp-0.0.4 + cp -prL README.rst examples /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python3-module-asynchttp-0.0.4 + chmod -R go-w /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python3-module-asynchttp-0.0.4 + chmod -R a+rX /usr/src/tmp/python-module-asynchttp-buildroot/usr/share/doc/python3-module-asynchttp-0.0.4 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.G6z82l find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.s24UIb find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python3.req: /usr/src/tmp/python-module-asynchttp-buildroot/usr/lib/python3/site-packages/asynchttp/__init__.py: skipping sys Provides: python3(asynchttp), python3.3(asynchttp) Requires: python3(httplib2) < 0, /usr/lib/python3/site-packages, python3(logging) < 0, python3(queue) < 0, python3(threading) < 0, python3(traceback) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python-module-asynchttp-0.0.4-alt1.git20120701.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-asynchttp-0.0.4-alt1.git20120701.1.noarch.rpm 9.16user 1.65system 0:16.19elapsed 66%CPU (0avgtext+0avgdata 27540maxresident)k 0inputs+0outputs (0major+263059minor)pagefaults 0swaps 17.49user 6.41system 0:30.21elapsed 79%CPU (0avgtext+0avgdata 122108maxresident)k 1448inputs+0outputs (0major+515069minor)pagefaults 0swaps --- python3-module-asynchttp-0.0.4-alt1.git20120701.1.noarch.rpm.repo 2016-03-13 20:54:16.000000000 +0000 +++ python3-module-asynchttp-0.0.4-alt1.git20120701.1.noarch.rpm.hasher 2019-04-21 01:12:55.680798100 +0000 @@ -1,10 +1,13 @@ /usr/lib/python3/site-packages/asynchttp 40755 -/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/asynchttp-0.0.4-py3.5.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/asynchttp/__init__.py 100644 /usr/lib/python3/site-packages/asynchttp/__pycache__ 40755 +/usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/asynchttp/__pycache__/__init__.cpython-35.pyc 100644 /usr/share/doc/python3-module-asynchttp-0.0.4 40755 @@ -15,8 +18,8 @@ /usr/share/doc/python3-module-asynchttp-0.0.4/examples/simple.py 100755 -Requires: python3.3(httplib2) +Requires: python3(httplib2) < 0 Requires: /usr/lib/python3/site-packages -Requires: python3.3(logging) -Requires: python3.3(queue) -Requires: python3.3(threading) -Requires: python3.3(traceback) +Requires: python3(logging) < 0 +Requires: python3(queue) < 0 +Requires: python3(threading) < 0 +Requires: python3(traceback) < 0 Requires: rpmlib(PayloadIsLzma)