Description
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the flakybot: quiet
label and
I will stop commenting.
commit: d8aead7
buildURL: Build Status, Sponge
status: failed
Test output
self = webbrowser_mock = instance = mock_fetch_token = , port = 60437@pytest.mark.webtest @mock.patch("google_auth_oauthlib.flow.webbrowser", autospec=True) def test_run_local_server_audience( self, webbrowser_mock, instance, mock_fetch_token, port ): auth_redirect_url = urllib.parse.urljoin( f"http://localhost:{port}", self.REDIRECT_REQUEST_PATH ) with concurrent.futures.ThreadPoolExecutor(max_workers=1) as pool: future = pool.submit( partial( instance.run_local_server, port=port, token_audience=self.AUDIENCE ) ) while not future.done(): try: requests.get(auth_redirect_url) except requests.ConnectionError: # pragma: NO COVER pass
credentials = future.result()
tests/unit/test_flow.py:341:
/usr/local/lib/python3.10/concurrent/futures/_base.py:439: in result
return self.__get_result()
/usr/local/lib/python3.10/concurrent/futures/_base.py:391: in __get_result
raise self._exception
/usr/local/lib/python3.10/concurrent/futures/thread.py:58: in run
result = self.fn(*self.args, **self.kwargs)
google_auth_oauthlib/flow.py:432: in run_local_server
local_server = wsgiref.simple_server.make_server(
/usr/local/lib/python3.10/wsgiref/simple_server.py:154: in make_server
server = server_class((host, port), handler_class)
/usr/local/lib/python3.10/socketserver.py:452: in init
self.server_bind()
/usr/local/lib/python3.10/wsgiref/simple_server.py:50: in server_bind
HTTPServer.server_bind(self)
/usr/local/lib/python3.10/http/server.py:136: in server_bind
socketserver.TCPServer.server_bind(self)
self = <wsgiref.simple_server.WSGIServer object at 0x7fefa85263e0>
def server_bind(self): """Called by constructor to bind the socket. May be overridden. """ if self.allow_reuse_address: self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.socket.bind(self.server_address)
E OSError: [Errno 98] Address already in use
/usr/local/lib/python3.10/socketserver.py:466: OSError