[Python-modules-team] Bug#973141: python-msrest: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Tue Oct 27 17:11:22 GMT 2020
Source: python-msrest
Version: 0.6.18-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
>
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package python-msrest
> dpkg-buildpackage: info: source version 0.6.18-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Luca Boccassi <bluca at debian.org>
> dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
> debian/rules clean
> dh clean --with python3 --buildsystem=pybuild
> dh_auto_clean -O--buildsystem=pybuild
> I: pybuild base:217: python3.9 setup.py clean
> running clean
> removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.9' does not exist -- can't clean it
> I: pybuild base:217: python3.8 setup.py clean
> running clean
> removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.8' does not exist -- can't clean it
> dh_autoreconf_clean -O--buildsystem=pybuild
> dh_clean -O--buildsystem=pybuild
> dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building python-msrest using existing ./python-msrest_0.6.18.orig.tar.gz
> dpkg-source: info: building python-msrest in python-msrest_0.6.18-1.debian.tar.xz
> dpkg-source: info: building python-msrest in python-msrest_0.6.18-1.dsc
> debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:217: python3.9 setup.py config
> running config
> I: pybuild base:217: python3.8 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3.9 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/configuration.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/serialization.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/service_client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/paging.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/authentication.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/async_client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/http_logger.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> copying msrest/async_paging.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/polling
> copying msrest/polling/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/polling
> copying msrest/polling/poller.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/polling
> copying msrest/polling/async_poller.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/polling
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/universal_http
> copying msrest/universal_http/aiohttp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/universal_http
> copying msrest/universal_http/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/universal_http
> copying msrest/universal_http/async_requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/universal_http
> copying msrest/universal_http/async_abc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/universal_http
> copying msrest/universal_http/requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/universal_http
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> copying msrest/pipeline/universal.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> copying msrest/pipeline/aiohttp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> copying msrest/pipeline/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> copying msrest/pipeline/async_requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> copying msrest/pipeline/async_abc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> copying msrest/pipeline/requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/pipeline
> running egg_info
> creating msrest.egg-info
> writing msrest.egg-info/PKG-INFO
> writing dependency_links to msrest.egg-info/dependency_links.txt
> writing requirements to msrest.egg-info/requires.txt
> writing top-level names to msrest.egg-info/top_level.txt
> writing manifest file 'msrest.egg-info/SOURCES.txt'
> reading manifest file 'msrest.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'msrest.egg-info/SOURCES.txt'
> copying msrest/py.typed -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest
> I: pybuild base:217: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/configuration.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/serialization.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/service_client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/paging.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/authentication.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/async_client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/http_logger.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> copying msrest/async_paging.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/polling
> copying msrest/polling/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/polling
> copying msrest/polling/poller.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/polling
> copying msrest/polling/async_poller.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/polling
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/universal_http
> copying msrest/universal_http/aiohttp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/universal_http
> copying msrest/universal_http/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/universal_http
> copying msrest/universal_http/async_requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/universal_http
> copying msrest/universal_http/async_abc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/universal_http
> copying msrest/universal_http/requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/universal_http
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> copying msrest/pipeline/universal.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> copying msrest/pipeline/aiohttp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> copying msrest/pipeline/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> copying msrest/pipeline/async_requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> copying msrest/pipeline/async_abc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> copying msrest/pipeline/requests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest/pipeline
> running egg_info
> writing msrest.egg-info/PKG-INFO
> writing dependency_links to msrest.egg-info/dependency_links.txt
> writing requirements to msrest.egg-info/requires.txt
> writing top-level names to msrest.egg-info/top_level.txt
> reading manifest file 'msrest.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'msrest.egg-info/SOURCES.txt'
> copying msrest/py.typed -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_msrest/build/msrest
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:284: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build; python3.9 -m pytest --ignore=tests/asynctests/test_universal_http.py --ignore=tests/asynctests/test_pipeline.py
> ============================= test session starts ==============================
> platform linux -- Python 3.9.0+, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
> collected 195 items
>
> tests/test_auth.py ....... [ 3%]
> tests/test_client.py ........... [ 9%]
> tests/test_exceptions.py .. [ 10%]
> tests/test_paging.py ..... [ 12%]
> tests/test_pipeline.py ..... [ 15%]
> tests/test_polling.py .... [ 17%]
> tests/test_requests_universal.py .... [ 19%]
> tests/test_runtime.py F.FFFFFFFFFFFFF [ 27%]
> tests/test_serialization.py ............................................ [ 49%]
> ................................. [ 66%]
> tests/test_universal_pipeline.py ... [ 68%]
> tests/test_xml_serialization.py ........................................ [ 88%]
> ........... [ 94%]
> tests/asynctests/test_async_client.py ss [ 95%]
> tests/asynctests/test_async_paging.py sssss [ 97%]
> tests/asynctests/test_polling.py ssss [100%]
>
> =================================== FAILURES ===================================
> _____________________ TestRuntime.test_credential_headers ______________________
>
> self = <tests.test_runtime.TestRuntime testMethod=test_credential_headers>
>
> @httpretty.activate
> def test_credential_headers(self):
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> body='[{"title": "Test Data"}]',
> content_type="application/json")
>
> token = {
> 'access_token': 'eswfld123kjhn1v5423',
> 'refresh_token': 'asdfkljh23490sdf',
> 'token_type': 'Bearer',
> 'expires_in': '3600',
> }
>
> cfg = Configuration("https://my_service.com")
> cfg.credentials = OAuthTokenAuthentication("client_id", token)
>
> client = ServiceClient(None, cfg)
>
> url = client.format_url("/get_endpoint")
> request = client.get(url, {'check':True})
> > response = client.send(request)
>
> tests/test_runtime.py:83:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a9fc8910>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ________________________ TestRuntime.test_request_proxy ________________________
>
> self = <tests.test_runtime.TestRuntime testMethod=test_request_proxy>
>
> @httpretty.activate
> def test_request_proxy(self):
> # Note that this test requires requests >= 2.8.0 to accept host on proxy
>
> cfg = Configuration("http://my_service.com")
> cfg.proxies.add("http://my_service.com", 'http://localhost:57979')
> cfg.credentials = Authentication()
>
> httpretty.register_uri(httpretty.GET, "http://localhost:57979/get_endpoint?check=True",
> body='"Mocked body"',
> content_type="application/json",
> status=200)
>
> client = ServiceClient(None, cfg)
> url = client.format_url("/get_endpoint")
> request = client.get(url, {'check':True})
> > response = client.send(request)
>
> tests/test_runtime.py:135:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8ec11f0>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> __________________ TestRedirect.test_request_redirect_delete ___________________
>
> self = <tests.test_runtime.TestRedirect testMethod=test_request_redirect_delete>
>
> @httpretty.activate
> def test_request_redirect_delete(self):
>
> url = self.client.format_url("/get_endpoint")
> request = self.client.delete(url, {'check':True})
>
> httpretty.register_uri(httpretty.DELETE, 'https://my_service.com/http/success/200', status=200)
> httpretty.register_uri(httpretty.DELETE, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="", status=307, method='DELETE', location='/http/success/200'),
> ])
>
>
> > response = self.client.send(request)
>
> tests/test_runtime.py:240:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8df04c0>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ____________________ TestRedirect.test_request_redirect_get ____________________
>
> self = <tests.test_runtime.TestRedirect testMethod=test_request_redirect_get>
>
> @httpretty.activate
> def test_request_redirect_get(self):
>
> url = self.client.format_url("/get_endpoint")
> request = self.client.get(url, {'check':True})
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/http/finished",
> responses=[
> httpretty.Response(body="", status=200, method='GET'),
> ])
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/http/redirect3",
> responses=[
> httpretty.Response(body="", status=307, method='GET', location='/http/finished'),
> ])
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/http/redirect2",
> responses=[
> httpretty.Response(body="", status=307, method='GET', location='/http/redirect3'),
> ])
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/http/redirect1",
> responses=[
> httpretty.Response(body="", status=307, method='GET', location='/http/redirect2'),
> ])
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="", status=307, method='GET', location='/http/redirect1'),
> ])
>
> with self.assertRaises(ClientRequestError, msg="Should exceed maximum redirects"):
> > self.client.send(request)
>
> tests/test_runtime.py:306:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRedirect.test_request_redirect_head ____________________
>
> self = <tests.test_runtime.TestRedirect testMethod=test_request_redirect_head>
>
> @httpretty.activate
> def test_request_redirect_head(self):
>
> url = self.client.format_url("/get_endpoint")
> request = self.client.head(url, {'check':True})
>
> httpretty.register_uri(httpretty.HEAD, 'https://my_service.com/http/success/200', status=200)
> httpretty.register_uri(httpretty.HEAD, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="", status=307, method='HEAD', location='/http/success/200'),
> ])
>
>
> > response = self.client.send(request)
>
> tests/test_runtime.py:209:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8dea280>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRedirect.test_request_redirect_post ____________________
>
> self = <tests.test_runtime.TestRedirect testMethod=test_request_redirect_post>
>
> @httpretty.activate
> def test_request_redirect_post(self):
>
> url = self.client.format_url("/get_endpoint")
> request = self.client.post(url, {'check':True})
>
> httpretty.register_uri(httpretty.GET, 'https://my_service.com/http/success/get/200', status=200)
> httpretty.register_uri(httpretty.POST, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="", status=303, method='POST', location='/http/success/get/200'),
> ])
>
>
> > response = self.client.send(request)
>
> tests/test_runtime.py:178:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8f207c0>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ____________________ TestRedirect.test_request_redirect_put ____________________
>
> self = <tests.test_runtime.TestRedirect testMethod=test_request_redirect_put>
>
> @httpretty.activate
> def test_request_redirect_put(self):
>
> url = self.client.format_url("/get_endpoint")
> request = self.client.put(url, {'check':True})
>
> httpretty.register_uri(httpretty.PUT, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="", status=305, method='PUT', location='/http/success/200'),
> ])
>
> > response = self.client.send(request)
>
> tests/test_runtime.py:269:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8db6190>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> _________________ TestRuntimeRetry.test_request_retry_3_times __________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_3_times>
>
> @httpretty.activate
> def test_request_retry_3_times(self):
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body='success response', status=202),
> ])
>
> > response = self.client.send(self.request)
>
> tests/test_runtime.py:355:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8dc2e50>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRuntimeRetry.test_request_retry_404 ____________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_404>
>
> @httpretty.activate
> def test_request_retry_404(self):
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=404),
> httpretty.Response(body='success response', status=202),
> ])
>
> > response = self.client.send(self.request)
>
> tests/test_runtime.py:379:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a9fbcf40>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRuntimeRetry.test_request_retry_408 ____________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_408>
>
> @httpretty.activate
> def test_request_retry_408(self):
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=408),
> httpretty.Response(body='success response', status=202),
> ])
> > response = self.client.send(self.request)
>
> tests/test_runtime.py:342:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8dfcdc0>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRuntimeRetry.test_request_retry_501 ____________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_501>
>
> @httpretty.activate
> def test_request_retry_501(self):
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=501),
> httpretty.Response(body='success response', status=202),
> ])
>
> > response = self.client.send(self.request)
>
> tests/test_runtime.py:390:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a82c5130>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRuntimeRetry.test_request_retry_502 ____________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_502>
>
> @httpretty.activate
> def test_request_retry_502(self):
>
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body='success response', status=202),
> ])
>
>
> > response = self.client.send(self.request)
>
> tests/test_runtime.py:332:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a84305b0>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRuntimeRetry.test_request_retry_505 ____________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_505>
>
> @httpretty.activate
> def test_request_retry_505(self):
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=505),
> httpretty.Response(body='success response', status=202),
> ])
>
> > response = self.client.send(self.request)
>
> tests/test_runtime.py:401:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <httpretty.core.fakesock.socket object at 0x7f67a8dea490>, mode = 'rb'
> bufsize = -1
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> ___________________ TestRuntimeRetry.test_request_retry_max ____________________
>
> self = <tests.test_runtime.TestRuntimeRetry testMethod=test_request_retry_max>
>
> @httpretty.activate
> def test_request_retry_max(self):
> httpretty.register_uri(httpretty.GET, "https://my_service.com/get_endpoint",
> responses=[
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body="retry response", status=502),
> httpretty.Response(body="retry response", status=502),
> ])
>
> with self.assertRaises(ClientRequestError, msg="Max retries reached"):
> > self.client.send(self.request)
>
> tests/test_runtime.py:369:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> msrest/service_client.py:336: in send
> pipeline_response = self.config.pipeline.run(request, **kwargs)
> msrest/pipeline/__init__.py:197: in run
> return first_node.send(pipeline_request, **kwargs) # type: ignore
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:72: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:137: in send
> return self.next.send(request, **kwargs)
> msrest/pipeline/__init__.py:150: in send
> response = self.next.send(request, **kwargs)
> msrest/pipeline/requests.py:193: in send
> self.driver.send(request.http_request, **kwargs)
> msrest/universal_http/requests.py:333: in send
> return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
> msrest/universal_http/requests.py:139: in send
> response = session.request(
> /usr/lib/python3/dist-packages/requests/sessions.py:530: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:643: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:439: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:670: in urlopen
> httplib_response = self._make_request(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:426: in _make_request
> six.raise_from(e, None)
> <string>:3: in raise_from
> ???
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:421: in _make_request
> httplib_response = conn.getresponse()
> /usr/lib/python3.9/http/client.py:1343: in getresponse
> response = self.response_class(self.sock, method=self._method)
> /usr/lib/python3.9/http/client.py:245: in __init__
> self.fp = sock.makefile("rb")
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> def makefile(self, mode='r', bufsize=-1):
> """Returns this fake socket's own tempfile buffer.
>
> If there is an entry associated with the socket, the file
> descriptor gets filled in with the entry data before being
> returned.
> """
> self._mode = mode
> self._bufsize = bufsize
>
> if self._entry:
> t = threading.Thread(
> target=self._entry.fill_filekind, args=(self.fd,)
> )
> t.start()
> if self.timeout == socket._GLOBAL_DEFAULT_TIMEOUT:
> timeout = None
> else:
> timeout = self.timeout
> t.join(timeout)
> > if t.isAlive():
> E AttributeError: 'Thread' object has no attribute 'isAlive'
>
> /usr/lib/python3/dist-packages/httpretty/core.py:438: AttributeError
> =============================== warnings summary ===============================
> /usr/lib/python3/dist-packages/_pytest/mark/structures.py:331
> /usr/lib/python3/dist-packages/_pytest/mark/structures.py:331: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
> warnings.warn(
>
> .pybuild/cpython3_3.9_msrest/build/tests/test_auth.py::TestAuthentication::test_apikey_auth
> .pybuild/cpython3_3.9_msrest/build/tests/test_auth.py::TestAuthentication::test_cs_auth
> .pybuild/cpython3_3.9_msrest/build/tests/test_auth.py::TestAuthentication::test_eventgrid_auth
> .pybuild/cpython3_3.9_msrest/build/tests/test_auth.py::TestAuthentication::test_eventgrid_domain_auth
> /usr/lib/python3.9/unittest/case.py:1134: DeprecationWarning: assertDictContainsSubset is deprecated
> warnings.warn('assertDictContainsSubset is deprecated',
>
> .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_client_request
> .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_deprecated_creds
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_3_times
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_404
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_408
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_501
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_502
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_505
> .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntimeRetry::test_request_retry_max
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build/msrest/service_client.py:259: DeprecationWarning: Creds parameter is deprecated. Set config.credentials instead.
> warnings.warn("Creds parameter is deprecated. Set config.credentials instead.",
>
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_client.py::TestServiceClient::test_client_send
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_client.py::TestServiceClient::test_client_stream_download
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_paging.py::TestPaging::test_basic_paging
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_paging.py::TestPaging::test_advance_paging
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_paging.py::TestPaging::test_get_paging
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_paging.py::TestPaging::test_reset_paging
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_async_paging.py::TestPaging::test_none_value
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_polling.py::test_abc_polling
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_polling.py::test_no_polling
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_polling.py::test_poller
> .pybuild/cpython3_3.9_msrest/build/tests/asynctests/test_polling.py::test_broken_poller
> /usr/lib/python3/dist-packages/_pytest/python.py:170: PytestUnhandledCoroutineWarning: Coroutine functions are not natively supported and have been skipped.
> You need to install a suitable plugin for your async framework, for example:
> - pytest-asyncio
> - pytest-trio
> - pytest-tornasync
> warnings.warn(PytestUnhandledCoroutineWarning(msg.format(pyfuncitem.nodeid)))
>
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> ========================== slowest 10 test durations ===========================
> 1.00s call .pybuild/cpython3_3.9_msrest/build/tests/test_polling.py::test_poller
> 0.03s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_client_send
> 0.02s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_format_url
> 0.02s call .pybuild/cpython3_3.9_msrest/build/tests/test_runtime.py::TestRuntime::test_request_proxy
> 0.01s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_context_manager
> 0.01s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_keep_alive
> 0.01s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_client_formdata_add
> 0.01s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_sdk_context_manager
> 0.01s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_client_request
> 0.01s call .pybuild/cpython3_3.9_msrest/build/tests/test_client.py::TestServiceClient::test_deprecated_creds
> ======== 14 failed, 170 passed, 11 skipped, 25 warnings in 3.41 seconds ========
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_msrest/build; python3.9 -m pytest --ignore=tests/asynctests/test_universal_http.py --ignore=tests/asynctests/test_pipeline.py
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/10/27/python-msrest_0.6.18-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Python-modules-team
mailing list