Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 500922 Details for
Bug 635824
dev-python/requests-toolbelt-0.7.1 : E AssertionError: assert 0 == 5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:requests-toolbelt-0.7.1:20171029-183618.log
dev-python:requests-toolbelt-0.7.1:20171029-183618.log (text/plain), 26.25 KB, created by
Toralf Förster
on 2017-10-29 18:39:29 UTC
(
hide
)
Description:
dev-python:requests-toolbelt-0.7.1:20171029-183618.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2017-10-29 18:39:29 UTC
Size:
26.25 KB
patch
obsolete
> * Package: dev-python/requests-toolbelt-0.7.1 > * Repository: gentoo > * Maintainer: amynka@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking requests-toolbelt-0.7.1.tar.gz to /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work >>>> Source unpacked in /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work >>>> Preparing source in /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1 ... > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python2.7 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt >copying requests_toolbelt/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt >copying requests_toolbelt/sessions.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt >copying requests_toolbelt/exceptions.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt >copying requests_toolbelt/_compat.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt >copying requests_toolbelt/streaming_iterator.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/socket_options.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/host_header_ssl.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/appengine.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/fingerprint.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/source.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/ssl.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/adapters >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/guess.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/handler.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/_digest_auth_compat.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/http_proxy_digest.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/auth >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/downloadutils >copying requests_toolbelt/downloadutils/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/downloadutils >copying requests_toolbelt/downloadutils/tee.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/downloadutils >copying requests_toolbelt/downloadutils/stream.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/downloadutils >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/multipart >copying requests_toolbelt/multipart/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/multipart >copying requests_toolbelt/multipart/decoder.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/multipart >copying requests_toolbelt/multipart/encoder.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/multipart >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/threaded >copying requests_toolbelt/threaded/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/threaded >copying requests_toolbelt/threaded/pool.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/threaded >copying requests_toolbelt/threaded/thread.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/threaded >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/dump.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/user_agent.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/formdata.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/deprecated.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/utils >running egg_info >writing requirements to requests_toolbelt.egg-info/requires.txt >writing requests_toolbelt.egg-info/PKG-INFO >writing top-level names to requests_toolbelt.egg-info/top_level.txt >writing dependency_links to requests_toolbelt.egg-info/dependency_links.txt >reading manifest file 'requests_toolbelt.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >no previously-included directories found matching 'docs/_build' >warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution >warning: no previously-included files matching '__pycache__' found anywhere in distribution >warning: no previously-included files matching '*.so' found anywhere in distribution >warning: no previously-included files matching '*.pyd' found anywhere in distribution >writing manifest file 'requests_toolbelt.egg-info/SOURCES.txt' >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/cookies >copying requests_toolbelt/cookies/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/cookies >copying requests_toolbelt/cookies/forgetful.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python2_7/lib/requests_toolbelt/cookies >warning: build_py: byte-compiling is disabled, skipping. > > * python3_4: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python3.4 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt >copying requests_toolbelt/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt >copying requests_toolbelt/sessions.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt >copying requests_toolbelt/exceptions.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt >copying requests_toolbelt/_compat.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt >copying requests_toolbelt/streaming_iterator.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/socket_options.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/host_header_ssl.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/appengine.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/fingerprint.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/source.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >copying requests_toolbelt/adapters/ssl.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/adapters >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/guess.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/handler.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/_digest_auth_compat.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/auth >copying requests_toolbelt/auth/http_proxy_digest.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/auth >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/downloadutils >copying requests_toolbelt/downloadutils/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/downloadutils >copying requests_toolbelt/downloadutils/tee.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/downloadutils >copying requests_toolbelt/downloadutils/stream.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/downloadutils >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/multipart >copying requests_toolbelt/multipart/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/multipart >copying requests_toolbelt/multipart/decoder.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/multipart >copying requests_toolbelt/multipart/encoder.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/multipart >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/threaded >copying requests_toolbelt/threaded/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/threaded >copying requests_toolbelt/threaded/pool.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/threaded >copying requests_toolbelt/threaded/thread.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/threaded >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/dump.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/user_agent.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/formdata.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/utils >copying requests_toolbelt/utils/deprecated.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/utils >running egg_info >writing top-level names to requests_toolbelt.egg-info/top_level.txt >writing requests_toolbelt.egg-info/PKG-INFO >writing requirements to requests_toolbelt.egg-info/requires.txt >writing dependency_links to requests_toolbelt.egg-info/dependency_links.txt >reading manifest file 'requests_toolbelt.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >no previously-included directories found matching 'docs/_build' >warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution >warning: no previously-included files matching '__pycache__' found anywhere in distribution >warning: no previously-included files matching '*.so' found anywhere in distribution >warning: no previously-included files matching '*.pyd' found anywhere in distribution >writing manifest file 'requests_toolbelt.egg-info/SOURCES.txt' >creating /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/cookies >copying requests_toolbelt/cookies/__init__.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/cookies >copying requests_toolbelt/cookies/forgetful.py -> /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1-python3_4/lib/requests_toolbelt/cookies >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/requests-toolbelt-0.7.1 > * python2_7: running distutils-r1_run_phase python_test >============================= test session starts ============================== >platform linux2 -- Python 2.7.14, pytest-3.2.2, py-1.4.34, pluggy-0.4.0 >rootdir: /var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1, inifile: tox.ini >plugins: xdist-1.20.0, timeout-1.2.0, pep8-1.0.6, mock-1.6.3, forked-0.2, cov-2.5.1, catchlog-1.2.2, hypothesis-3.33.0, betamax-0.8.0, backports.unittest-mock-1.3 >collected 156 items > >tests/test_appengine_adapter.py ... >tests/test_auth.py ..... >tests/test_auth_handler.py ..... >tests/test_downloadutils.py .............. >tests/test_dump.py ................... >tests/test_fingerprintadapter.py . >tests/test_forgetfulcookiejar.py . >tests/test_formdata.py .... >tests/test_host_header_ssl_adapter.py ssss >tests/test_multipart_decoder.py ............. >tests/test_multipart_encoder.py ....................... >tests/test_multipart_monitor.py ........ >tests/test_proxy_digest_auth.py .... >tests/test_sessions.py ... >tests/test_socket_options_adapter.py .... >tests/test_source_adapter.py ... >tests/test_ssladapter.py .. >tests/test_streaming_iterator.py ........ >tests/test_user_agent.py ........ >tests/threaded/test_api.py .... >tests/threaded/test_pool.py .FFFFFFF...... >tests/threaded/test_thread.py ...... > >=================================== FAILURES =================================== >_______________ TestPool.test_from_exceptions_populates_a_queue ________________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_from_exceptions_populates_a_queue> > > def test_from_exceptions_populates_a_queue(self): > """Ensure a Queue is properly populated from exceptions.""" > urls = ["https://httpbin.org/get?n={0}".format(n) for n in range(5)] > Exc = pool.ThreadException > excs = (Exc({'method': 'GET', 'url': url}, None) for url in urls) > > job_queue = mock.MagicMock() > with mock.patch.object(queue, 'Queue', return_value=job_queue): > with mock.patch.object(thread, 'SessionThread'): > pool.Pool.from_exceptions(excs) > >> assert job_queue.put.call_count == 5 >E AssertionError: assert 0 == 5 >E + where 0 = <MagicMock name='mock.put' id='140707285862480'>.call_count >E + where <MagicMock name='mock.put' id='140707285862480'> = <MagicMock id='140707285861840'>.put > >tests/threaded/test_pool.py:69: AssertionError >_______________ TestPool.test_from_urls_constructs_get_requests ________________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_from_urls_constructs_get_requests> > > def test_from_urls_constructs_get_requests(self): > """Ensure a Queue is properly populated from an iterable of urls.""" > urls = ["https://httpbin.org/get?n={0}".format(n) for n in range(5)] > > job_queue = mock.MagicMock() > with mock.patch.object(queue, 'Queue', return_value=job_queue): > with mock.patch.object(thread, 'SessionThread'): > pool.Pool.from_urls(urls) > >> assert job_queue.put.call_count == 5 >E AssertionError: assert 0 == 5 >E + where 0 = <MagicMock name='mock.put' id='140707286628880'>.call_count >E + where <MagicMock name='mock.put' id='140707286628880'> = <MagicMock id='140707286684496'>.put > >tests/threaded/test_pool.py:84: AssertionError >_________ TestPool.test_from_urls_constructs_get_requests_with_kwargs __________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_from_urls_constructs_get_requests_with_kwargs> > > def test_from_urls_constructs_get_requests_with_kwargs(self): > """Ensure a Queue is properly populated from an iterable of urls.""" > def merge(*args): > final = {} > for d in args: > final.update(d) > return final > > urls = ["https://httpbin.org/get?n={0}".format(n) for n in range(5)] > > kwargs = {'stream': True, 'headers': {'Accept': 'application/json'}} > job_queue = mock.MagicMock() > with mock.patch.object(queue, 'Queue', return_value=job_queue): > with mock.patch.object(thread, 'SessionThread'): > pool.Pool.from_urls(urls, kwargs) > >> assert job_queue.put.call_count == 5 >E AssertionError: assert 0 == 5 >E + where 0 = <MagicMock name='mock.put' id='140707277052368'>.call_count >E + where <MagicMock name='mock.put' id='140707277052368'> = <MagicMock id='140707277009872'>.put > >tests/threaded/test_pool.py:106: AssertionError >_________ TestPool.test_get_exception_returns_none_when_queue_is_empty _________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_get_exception_returns_none_when_queue_is_empty> > > def test_get_exception_returns_none_when_queue_is_empty(self): > """Ensure that None is returned when the exception Queue is empty.""" > queues = [] > > def _side_effect(): > q = mock.MagicMock() > q.get_nowait.side_effect = queue.Empty() > queues.append(q) > return q > > with mock.patch.object(queue, 'Queue', side_effect=_side_effect): > with mock.patch.object(thread, 'SessionThread'): > p = pool.Pool(None) > >> assert len(queues) == 2 >E AssertionError: assert 0 == 2 >E + where 0 = len([]) > >tests/threaded/test_pool.py:199: AssertionError >_____________ TestPool.test_get_exception_returns_thread_exception _____________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_get_exception_returns_thread_exception> > > def test_get_exception_returns_thread_exception(self): > """Ensure that a ThreadException is made when there's data.""" > queues = [] > > def _side_effect(): > q = mock.MagicMock() > q.get_nowait.return_value = ({}, None) > queues.append(q) > return q > > with mock.patch.object(queue, 'Queue', side_effect=_side_effect): > with mock.patch.object(thread, 'SessionThread'): > p = pool.Pool(None) > >> assert len(queues) == 2 >E AssertionError: assert 0 == 2 >E + where 0 = len([]) > >tests/threaded/test_pool.py:161: AssertionError >_________ TestPool.test_get_response_returns_none_when_queue_is_empty __________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_get_response_returns_none_when_queue_is_empty> > > def test_get_response_returns_none_when_queue_is_empty(self): > """Ensure that None is returned when the response Queue is empty.""" > queues = [] > > def _side_effect(): > q = mock.MagicMock() > q.get_nowait.side_effect = queue.Empty() > queues.append(q) > return q > > with mock.patch.object(queue, 'Queue', side_effect=_side_effect): > with mock.patch.object(thread, 'SessionThread'): > p = pool.Pool(None) > >> assert len(queues) == 2 >E AssertionError: assert 0 == 2 >E + where 0 = len([]) > >tests/threaded/test_pool.py:180: AssertionError >______________ TestPool.test_get_response_returns_thread_response ______________ > >self = <tests.threaded.test_pool.TestPool testMethod=test_get_response_returns_thread_response> > > def test_get_response_returns_thread_response(self): > """Ensure that a ThreadResponse is made when there's data.""" > queues = [] > > def _side_effect(): > q = mock.MagicMock() > q.get_nowait.return_value = ({}, None) > queues.append(q) > return q > > with mock.patch.object(queue, 'Queue', side_effect=_side_effect): > with mock.patch.object(thread, 'SessionThread'): > p = pool.Pool(None) > >> assert len(queues) == 2 >E AssertionError: assert 0 == 2 >E + where 0 = len([]) > >tests/threaded/test_pool.py:142: AssertionError >=============================== warnings summary =============================== >tests/test_appengine_adapter.py::test_get > /usr/lib64/python2.7/site-packages/urllib3/contrib/appengine.py:115: AppEnginePlatformWarning: urllib3 is using URLFetch on Google App Engine sandbox instead of sockets. To use sockets directly instead of URLFetch see https://urllib3.readthedocs.io/en/latest/reference/urllib3.contrib.html. > AppEnginePlatformWarning) > /usr/lib64/python2.7/site-packages/urllib3/contrib/appengine.py:256: AppEnginePlatformWarning: URLFetch does not support granular timeout settings, reverting to total or default URLFetch timeout. > AppEnginePlatformWarning) > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========= 7 failed, 145 passed, 4 skipped, 2 warnings in 3.14 seconds ========== > * ERROR: dev-python/requests-toolbelt-0.7.1::gentoo failed (test phase): > * Tests fail with python2.7 > * > * Call stack: > * ebuild.sh, line 124: Called src_test > * environment, line 2690: Called distutils-r1_src_test > * environment, line 866: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 312: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2214: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1520: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1518: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 536: Called distutils-r1_run_phase 'python_test' > * environment, line 797: Called python_test > * environment, line 2570: Called die > * The specific snippet of code: > * py.test -v || die "Tests fail with ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/requests-toolbelt-0.7.1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/requests-toolbelt-0.7.1::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:requests-toolbelt-0.7.1:20171029-183618.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/requests-toolbelt-0.7.1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/requests-toolbelt-0.7.1/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1' > * S: '/var/tmp/portage/dev-python/requests-toolbelt-0.7.1/work/requests-toolbelt-0.7.1' > * Failed to kill pid(s) in '/sys/fs/cgroup/portage/dev-python:requests-toolbelt-0.7.1.an5m8760/cgroup.procs': 2904
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 635824
:
500920
| 500922 |
500924
|
500926
|
500928
|
500930
|
500932