Package Details: python-dnspython-git v2.1.0.r200.ab53090-1

Git Clone URL: https://aur.archlinux.org/python-dnspython-git.git (read-only, click to copy)
Package Base: python-dnspython-git
Description: A DNS toolkit for Python
Upstream URL: http://www.dnspython.org
Licenses: ISC
Conflicts: python-dnspython
Provides: python-dnspython
Submitter: tkrizek
Maintainer: tkrizek
Last Packager: tkrizek
Votes: 3
Popularity: 0.000706
First Submitted: 2020-07-14 11:08 (UTC)
Last Updated: 2021-12-20 13:13 (UTC)

Dependencies (15)

Required by (86)

Sources (1)

Latest Comments

tkrizek commented on 2022-01-04 12:30 (UTC)

The tests work for me, but they require an operational DNS infrastructure. I suppose the workaround would be to disable them.

ZeroDot1 commented on 2022-01-01 11:10 (UTC)

ERROR: testQueryTLS (tests.test_query.QueryTests)

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_query.py", line 137, in testQueryTLS response = dns.query.tls(q, address, timeout=2) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 866, in tls _connect(s, destination, expiration) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 734, in _connect raise OSError(err, os.strerror(err)) OSError: [Errno 113] No route to host

====================================================================== ERROR: testQueryTLSWithSocket (tests.test_query.QueryTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_query.py", line 152, in testQueryTLSWithSocket base_s.connect(ll) OSError: [Errno 113] No route to host

====================================================================== ERROR: testDOHGetRequest (tests.test_async.AsyncTests)


anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 127, in try_connect stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1516, in connect_tcp await get_running_loop().create_connection(StreamProtocol, host, port, File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 507, in _sock_connect sock.connect(address) OSError: [Errno 101] Network is unreachable


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 127, in try_connect stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1516, in connect_tcp await get_running_loop().create_connection(StreamProtocol, host, port, File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 537, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('0.0.0.17', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 97, in connect_tcp stream: anyio.abc.ByteStream = await anyio.connect_tcp( File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 184, in connect_tcp raise OSError('All connection attempts failed') from cause OSError: All connection attempts failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 291, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 248, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request response = await connection.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 67, in handle_async_request stream = await self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 115, in _connect stream = await self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/auto.py", line 23, in connect_tcp return await self._backend.connect_tcp( File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 95, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: All connection attempts failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 441, in testDOHGetRequest self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 188, in async_run return runner(afunc()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete return future.result() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 438, in run r = await dns.asyncquery.https(q, nameserver_url, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 417, in https response = await client.get(url, headers=headers, timeout=timeout, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1736, in get return await self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1513, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1600, in send response = await self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1628, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_single_request response = await transport.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 290, in handle_async_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed

====================================================================== ERROR: testDOHGetRequestHttp1 (tests.test_async.AsyncTests)


anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 127, in try_connect stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1516, in connect_tcp await get_running_loop().create_connection(StreamProtocol, host, port, File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 507, in _sock_connect sock.connect(address) OSError: [Errno 101] Network is unreachable


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 127, in try_connect stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1516, in connect_tcp await get_running_loop().create_connection(StreamProtocol, host, port, File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 537, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('0.0.0.17', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 97, in connect_tcp stream: anyio.abc.ByteStream = await anyio.connect_tcp( File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 184, in connect_tcp raise OSError('All connection attempts failed') from cause OSError: All connection attempts failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 291, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 248, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request response = await connection.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 67, in handle_async_request stream = await self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 115, in _connect stream = await self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/auto.py", line 23, in connect_tcp return await self._backend.connect_tcp( File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 95, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: All connection attempts failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 458, in testDOHGetRequestHttp1 self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 188, in async_run return runner(afunc()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete return future.result() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 453, in run r = await dns.asyncquery.https(q, nameserver_url, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 417, in https response = await client.get(url, headers=headers, timeout=timeout, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1736, in get return await self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1513, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1600, in send response = await self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1628, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_single_request response = await transport.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 290, in handle_async_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed

====================================================================== ERROR: testDOHPostRequest (tests.test_async.AsyncTests)


anyio._backends._asyncio.ExceptionGroup: 2 exceptions were raised in the task group:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 127, in try_connect stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1516, in connect_tcp await get_running_loop().create_connection(StreamProtocol, host, port, File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 507, in _sock_connect sock.connect(address) OSError: [Errno 101] Network is unreachable


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 127, in try_connect stream = await asynclib.connect_tcp(remote_host, remote_port, local_address) File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1516, in connect_tcp await get_running_loop().create_connection(StreamProtocol, host, port, File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 537, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('0.0.0.17', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 97, in connect_tcp stream: anyio.abc.ByteStream = await anyio.connect_tcp( File "/usr/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 184, in connect_tcp raise OSError('All connection attempts failed') from cause OSError: All connection attempts failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 291, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 248, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request response = await connection.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 67, in handle_async_request stream = await self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 115, in _connect stream = await self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/auto.py", line 23, in connect_tcp return await self._backend.connect_tcp( File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 95, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: All connection attempts failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 470, in testDOHPostRequest self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 188, in async_run return runner(afunc()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete return future.result() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 467, in run r = await dns.asyncquery.https(q, nameserver_url, post=True, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 412, in https response = await client.post(url, headers=headers, content=wire, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1827, in post return await self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1513, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1600, in send response = await self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1628, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_single_request response = await transport.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 290, in handle_async_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed

====================================================================== ERROR: testQueryTLS (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 338, in testQueryTLS response = self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 188, in async_run return runner(afunc()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete return future.result() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 337, in run return await dns.asyncquery.tls(q, address, timeout=2) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 344, in tls s = await backend.make_socket(af, socket.SOCK_STREAM, 0, stuple, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/_asyncio_backend.py", line 132, in make_socket (r, w) = await _maybe_wait_for( File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/_asyncio_backend.py", line 50, in _maybe_wait_for return await asyncio.wait_for(awaitable, timeout) File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for return fut.result() File "/usr/lib/python3.10/asyncio/streams.py", line 47, in open_connection transport, _ = await loop.create_connection( File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 537, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('8.8.8.8', 853)

====================================================================== ERROR: testQueryTLSWithSocket (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 364, in testQueryTLSWithSocket response = self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 188, in async_run return runner(afunc()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete return future.result() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 353, in run async with await self.backend.make_socket( File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/_asyncio_backend.py", line 132, in make_socket (r, w) = await _maybe_wait_for( File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/_asyncio_backend.py", line 50, in _maybe_wait_for return await asyncio.wait_for(awaitable, timeout) File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for return fut.result() File "/usr/lib/python3.10/asyncio/streams.py", line 47, in open_connection transport, _ = await loop.create_connection( File "/usr/lib/python3.10/asyncio/base_events.py", line 1055, in create_connection raise exceptions[0] File "/usr/lib/python3.10/asyncio/base_events.py", line 1040, in create_connection sock = await self._connect_sock( File "/usr/lib/python3.10/asyncio/base_events.py", line 954, in _connect_sock await self.sock_connect(sock, address) File "/usr/lib/python3.10/asyncio/selector_events.py", line 502, in sock_connect return await fut File "/usr/lib/python3.10/asyncio/selector_events.py", line 537, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('8.8.8.8', 853)

====================================================================== ERROR: testResolverDOH (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 483, in testResolverDOH self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 188, in async_run return runner(afunc()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete return future.result() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 479, in run answer = await res.resolve('dns.google', 'A', backend=self.backend) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncresolver.py", line 74, in resolve timeout = self._compute_timeout(start, lifetime, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 879, in _compute_timeout raise LifetimeTimeout(timeout=duration, errors=errors) dns.resolver.LifetimeTimeout: The resolution lifetime expired after 5.1402809619903564 seconds: Server https://dns.google/dns-query UDP port 53 answered All connection attempts failed; Server https://dns.google/dns-query UDP port 53 answered All connection attempts failed; Server https://dns.google/dns-query UDP port 53 answered All connection attempts failed; Server https://dns.google/dns-query UDP port 53 answered All connection attempts failed; Server https://dns.google/dns-query UDP port 53 answered All connection attempts failed; Server https://dns.google/dns-query UDP port 53 answered All connection attempts failed

====================================================================== ERROR: testDOHGetRequest (tests.test_async.TrioAsyncTests)


trio.MultiError: OSError(113, 'Error in connect: No route to host'), OSError(101, 'Network is unreachable')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 441, in testDOHGetRequest self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 513, in async_run return trio.run(afunc) File "/usr/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 438, in run r = await dns.asyncquery.https(q, nameserver_url, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 417, in https response = await client.get(url, headers=headers, timeout=timeout, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1736, in get return await self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1513, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1600, in send response = await self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1628, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_single_request response = await transport.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 291, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 248, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request response = await connection.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 67, in handle_async_request stream = await self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 115, in _connect stream = await self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/auto.py", line 23, in connect_tcp return await self._backend.connect_tcp( File "/usr/lib/python3.10/site-packages/httpcore/backends/trio.py", line 109, in connect_tcp stream: trio.abc.Stream = await trio.open_tcp_stream( File "/usr/lib/python3.10/site-packages/trio/_highlevel_open_tcp_stream.py", line 367, in open_tcp_stream raise OSError(msg) from trio.MultiError(oserrors) OSError: all attempts to connect to cloudflare-dns.com:443 failed

====================================================================== ERROR: testDOHGetRequestHttp1 (tests.test_async.TrioAsyncTests)


trio.MultiError: OSError(113, 'Error in connect: No route to host'), OSError(101, 'Network is unreachable')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 458, in testDOHGetRequestHttp1 self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 513, in async_run return trio.run(afunc) File "/usr/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 453, in run r = await dns.asyncquery.https(q, nameserver_url, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 417, in https response = await client.get(url, headers=headers, timeout=timeout, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1736, in get return await self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1513, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1600, in send response = await self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1628, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_single_request response = await transport.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 291, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 248, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request response = await connection.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 67, in handle_async_request stream = await self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 115, in _connect stream = await self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/auto.py", line 23, in connect_tcp return await self._backend.connect_tcp( File "/usr/lib/python3.10/site-packages/httpcore/backends/trio.py", line 109, in connect_tcp stream: trio.abc.Stream = await trio.open_tcp_stream( File "/usr/lib/python3.10/site-packages/trio/_highlevel_open_tcp_stream.py", line 367, in open_tcp_stream raise OSError(msg) from trio.MultiError(oserrors) OSError: all attempts to connect to cloudflare-dns.com:443 failed

====================================================================== ERROR: testDOHPostRequest (tests.test_async.TrioAsyncTests)


trio.MultiError: OSError(113, 'Error in connect: No route to host'), OSError(101, 'Network is unreachable')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 470, in testDOHPostRequest self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 513, in async_run return trio.run(afunc) File "/usr/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 467, in run r = await dns.asyncquery.https(q, nameserver_url, post=True, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 412, in https response = await client.post(url, headers=headers, content=wire, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1827, in post return await self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1513, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1600, in send response = await self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1628, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1665, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1702, in _send_single_request response = await transport.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 291, in handle_async_request resp = await self._pool.handle_async_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 248, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request response = await connection.handle_async_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 67, in handle_async_request stream = await self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 115, in _connect stream = await self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/auto.py", line 23, in connect_tcp return await self._backend.connect_tcp( File "/usr/lib/python3.10/site-packages/httpcore/backends/trio.py", line 109, in connect_tcp stream: trio.abc.Stream = await trio.open_tcp_stream( File "/usr/lib/python3.10/site-packages/trio/_highlevel_open_tcp_stream.py", line 367, in open_tcp_stream raise OSError(msg) from trio.MultiError(oserrors) OSError: all attempts to connect to cloudflare-dns.com:443 failed

====================================================================== ERROR: testQueryTLS (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 338, in testQueryTLS response = self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 513, in async_run return trio.run(afunc) File "/usr/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 337, in run return await dns.asyncquery.tls(q, address, timeout=2) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncquery.py", line 344, in tls s = await backend.make_socket(af, socket.SOCK_STREAM, 0, stuple, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/_trio_backend.py", line 98, in make_socket await s.connect(_lltuple(destination, af)) File "/usr/lib/python3.10/site-packages/trio/_socket.py", line 682, in connect raise OSError(err, "Error in connect: " + os.strerror(err)) OSError: [Errno 113] Error in connect: No route to host

====================================================================== ERROR: testQueryTLSWithSocket (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 364, in testQueryTLSWithSocket response = self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 513, in async_run return trio.run(afunc) File "/usr/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 353, in run async with await self.backend.make_socket( File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/_trio_backend.py", line 98, in make_socket await s.connect(_lltuple(destination, af)) File "/usr/lib/python3.10/site-packages/trio/_socket.py", line 682, in connect raise OSError(err, "Error in connect: " + os.strerror(err)) OSError: [Errno 113] Error in connect: No route to host

====================================================================== ERROR: testResolverDOH (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 483, in testResolverDOH self.async_run(run) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 513, in async_run return trio.run(afunc) File "/usr/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 479, in run answer = await res.resolve('dns.google', 'A', backend=self.backend) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/asyncresolver.py", line 71, in resolve (nameserver, port, tcp, backoff) = resolution.next_nameserver() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 646, in next_nameserver raise NoNameservers(request=self.request, errors=self.errors) dns.resolver.NoNameservers: All nameservers failed to answer the query dns.google. IN A: Server https://dns.google/dns-query UDP port 53 answered all attempts to connect to dns.google:443 failed

====================================================================== ERROR: testResolveTCP (tests.test_resolver.LiveResolverTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 640, in testResolveTCP answer = dns.resolver.resolve('dns.google.', 'A', tcp=True) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1193, in resolve return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1063, in resolve (nameserver, port, tcp, backoff) = resolution.next_nameserver() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 646, in next_nameserver raise NoNameservers(request=self.request, errors=self.errors) dns.resolver.NoNameservers: All nameservers failed to answer the query dns.google. IN A: Server 192.168.0.1 TCP port 53 answered [Errno 111] Connection refused

====================================================================== ERROR: testResolveTCP (tests.test_resolver.PollResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 640, in testResolveTCP answer = dns.resolver.resolve('dns.google.', 'A', tcp=True) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1193, in resolve return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1063, in resolve (nameserver, port, tcp, backoff) = resolution.next_nameserver() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 646, in next_nameserver raise NoNameservers(request=self.request, errors=self.errors) dns.resolver.NoNameservers: All nameservers failed to answer the query dns.google. IN A: Server 192.168.0.1 TCP port 53 answered [Errno 111] Connection refused

====================================================================== ERROR: testResolveTCP (tests.test_resolver.SelectResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 640, in testResolveTCP answer = dns.resolver.resolve('dns.google.', 'A', tcp=True) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1193, in resolve return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1063, in resolve (nameserver, port, tcp, backoff) = resolution.next_nameserver() File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 646, in next_nameserver raise NoNameservers(request=self.request, errors=self.errors) dns.resolver.NoNameservers: All nameservers failed to answer the query dns.google. IN A: Server 192.168.0.1 TCP port 53 answered [Errno 111] Connection refused

====================================================================== ERROR: test_build_url_from_ip (tests.test_doh.DNSOverHTTPSTestCaseHttpx)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 76, in connect_tcp sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 187, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 248, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 232, in handle_request response = connection.handle_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 67, in handle_request stream = self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 115, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 75, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno 113] No route to host

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 195, in test_build_url_from_ip r = dns.query.https(q, nameserver_ip, session=self.session, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 375, in https response = session.get(url, headers=headers, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1025, in get return self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 802, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 889, in send response = self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 186, in handle_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 113] No route to host

====================================================================== ERROR: test_get_request (tests.test_doh.DNSOverHTTPSTestCaseHttpx)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 76, in connect_tcp sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 187, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 248, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 232, in handle_request response = connection.handle_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 67, in handle_request stream = self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 115, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 75, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno 101] Network is unreachable

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 164, in test_get_request r = dns.query.https(q, nameserver_url, session=self.session, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 375, in https response = session.get(url, headers=headers, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1025, in get return self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 802, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 889, in send response = self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 186, in handle_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 101] Network is unreachable

====================================================================== ERROR: test_get_request_http1 (tests.test_doh.DNSOverHTTPSTestCaseHttpx)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 76, in connect_tcp sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 187, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 248, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 232, in handle_request response = connection.handle_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 67, in handle_request stream = self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 115, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 75, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno 101] Network is unreachable

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 174, in test_get_request_http1 r = dns.query.https(q, nameserver_url, session=self.session, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 375, in https response = session.get(url, headers=headers, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1025, in get return self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 802, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 889, in send response = self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 186, in handle_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 101] Network is unreachable

====================================================================== ERROR: test_new_session (tests.test_doh.DNSOverHTTPSTestCaseHttpx)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 76, in connect_tcp sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 187, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 248, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 232, in handle_request response = connection.handle_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 67, in handle_request stream = self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 115, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 75, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno 101] Network is unreachable

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 229, in test_new_session r = dns.query.https(q, nameserver_url, timeout=4) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 366, in https response = session.post(url, headers=headers, content=wire, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1116, in post return self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 802, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 889, in send response = self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 186, in handle_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 101] Network is unreachable

====================================================================== ERROR: test_post_request (tests.test_doh.DNSOverHTTPSTestCaseHttpx)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 76, in connect_tcp sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 187, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 248, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 232, in handle_request response = connection.handle_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 67, in handle_request stream = self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 115, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 75, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno 101] Network is unreachable

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 183, in test_post_request r = dns.query.https(q, nameserver_url, session=self.session, post=True, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 366, in https response = session.post(url, headers=headers, content=wire, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1116, in post return self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 802, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 889, in send response = self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 186, in handle_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 101] Network is unreachable

====================================================================== ERROR: test_resolver (tests.test_doh.DNSOverHTTPSTestCaseHttpx)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 235, in test_resolver answer = res.resolve('dns.google', 'A') File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1066, in resolve timeout = self._compute_timeout(start, lifetime, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 879, in _compute_timeout raise LifetimeTimeout(timeout=duration, errors=errors) dns.resolver.LifetimeTimeout: The resolution lifetime expired after 5.142982721328735 seconds: Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable

====================================================================== ERROR: test_bootstrap_address (tests.test_doh.DNSOverHTTPSTestCaseRequests)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn.connect() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect conn = self._new_conn() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13a965a50>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='185.228.168.168', port=443): Max retries exceeded with url: /doh/family-filter/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13a965a50>: Failed to establish a new connection: [Errno 113] No route to host'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 130, in test_bootstrap_address dns.query.https(q, invalid_tls_url, session=self.session, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 369, in https response = session.post(url, headers=headers, data=wire, File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='185.228.168.168', port=443): Max retries exceeded with url: /doh/family-filter/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13a965a50>: Failed to establish a new connection: [Errno 113] No route to host'))

====================================================================== ERROR: test_build_url_from_ip (tests.test_doh.DNSOverHTTPSTestCaseRequests)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn.connect() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect conn = self._new_conn() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13c091e10>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='8.8.8.8', port=443): Max retries exceeded with url: /dns-query?dns=e1wBAAABAAAAAAAAB2V4YW1wbGUDY29tAAABAAE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13c091e10>: Failed to establish a new connection: [Errno 113] No route to host'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 109, in test_build_url_from_ip r = dns.query.https(q, nameserver_ip, session=self.session, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 379, in https response = session.get(url, headers=headers, File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='8.8.8.8', port=443): Max retries exceeded with url: /dns-query?dns=e1wBAAABAAAAAAAAB2V4YW1wbGUDY29tAAABAAE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13c091e10>: Failed to establish a new connection: [Errno 113] No route to host'))

====================================================================== ERROR: test_get_request (tests.test_doh.DNSOverHTTPSTestCaseRequests)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn.connect() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect conn = self._new_conn() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13c091480>: Failed to establish a new connection: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cloudflare-dns.com', port=443): Max retries exceeded with url: /dns-query?dns=YG8BAAABAAAAAAAAB2V4YW1wbGUDY29tAAABAAE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13c091480>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 90, in test_get_request r = dns.query.https(q, nameserver_url, session=self.session, post=False, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 379, in https response = session.get(url, headers=headers, File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cloudflare-dns.com', port=443): Max retries exceeded with url: /dns-query?dns=YG8BAAABAAAAAAAAB2V4YW1wbGUDY29tAAABAAE (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13c091480>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

====================================================================== ERROR: test_new_session (tests.test_doh.DNSOverHTTPSTestCaseRequests)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 8, in map_exceptions yield File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 76, in connect_tcp sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions yield File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 187, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 248, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 232, in handle_request response = connection.handle_request(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 90, in handle_request raise exc File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 67, in handle_request stream = self._connect(request) File "/usr/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 115, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.10/site-packages/httpcore/backends/sync.py", line 75, in connect_tcp with map_exceptions(exc_map): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno 101] Network is unreachable

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 140, in test_new_session r = dns.query.https(q, nameserver_url, timeout=4) File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 366, in https response = session.post(url, headers=headers, content=wire, File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1116, in post return self.request( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 802, in request return self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 889, in send response = self._send_handling_auth( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 917, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 954, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 990, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 186, in handle_request with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 101] Network is unreachable

====================================================================== ERROR: test_post_request (tests.test_doh.DNSOverHTTPSTestCaseRequests)


Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn.connect() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect conn = self._new_conn() File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13c092aa0>: Failed to establish a new connection: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/lib/python3.10/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cloudflare-dns.com', port=443): Max retries exceeded with url: /dns-query (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13c092aa0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 97, in test_post_request r = dns.query.https(q, nameserver_url, session=self.session, post=True, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/query.py", line 369, in https response = session.post(url, headers=headers, data=wire, File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cloudflare-dns.com', port=443): Max retries exceeded with url: /dns-query (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13c092aa0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

====================================================================== ERROR: test_resolver (tests.test_doh.DNSOverHTTPSTestCaseRequests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_doh.py", line 146, in test_resolver answer = res.resolve('dns.google', 'A') File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 1066, in resolve timeout = self._compute_timeout(start, lifetime, File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/dns/resolver.py", line 879, in _compute_timeout raise LifetimeTimeout(timeout=duration, errors=errors) dns.resolver.LifetimeTimeout: The resolution lifetime expired after 5.135311603546143 seconds: Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable; Server https://dns.google/dns-query UDP port 53 answered [Errno 101] Network is unreachable

====================================================================== FAIL: testQueryUDP (tests.test_query.QueryTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_query.py", line 85, in testQueryUDP self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPFallback (tests.test_query.QueryTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_query.py", line 171, in testQueryUDPFallback self.assertTrue(tcp) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPFallbackWithSocket (tests.test_query.QueryTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_query.py", line 189, in testQueryUDPFallbackWithSocket self.assertTrue(tcp) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPWithSocket (tests.test_query.QueryTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_query.py", line 100, in testQueryUDPWithSocket self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testCanonicalNameDangling (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 224, in testCanonicalNameDangling self.assertEqual(self.async_run(run), cname) AssertionError: <DNS name dangling-cname.dnspython.org.> != <DNS name dangling-target.dnspython.org.>

====================================================================== FAIL: testQueryUDP (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 270, in testQueryUDP self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPFallback (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 380, in testQueryUDPFallback self.assertTrue(tcp) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPWithSocket (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 292, in testQueryUDPWithSocket self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testResolve (tests.test_async.AsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 195, in testResolve self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testCanonicalNameDangling (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 224, in testCanonicalNameDangling self.assertEqual(self.async_run(run), cname) AssertionError: <DNS name dangling-cname.dnspython.org.> != <DNS name dangling-target.dnspython.org.>

====================================================================== FAIL: testQueryUDP (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 270, in testQueryUDP self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPFallback (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 380, in testQueryUDPFallback self.assertTrue(tcp) AssertionError: False is not true

====================================================================== FAIL: testQueryUDPWithSocket (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 292, in testQueryUDPWithSocket self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testResolve (tests.test_async.TrioAsyncTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_async.py", line 195, in testResolve self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testCanonicalNameDangling (tests.test_resolver.LiveResolverTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 701, in testCanonicalNameDangling self.assertEqual(dns.resolver.canonical_name(name), cname) AssertionError: <DNS name dangling-cname.dnspython.org.> != <DNS name dangling-target.dnspython.org.>

====================================================================== FAIL: testResolve (tests.test_resolver.LiveResolverTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 636, in testResolve self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testResolveCacheHit (tests.test_resolver.LiveResolverTests)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 683, in testResolveCacheHit self.assertIn('8.8.8.8', seen) AssertionError: '8.8.8.8' not found in {'0.0.0.17'}

====================================================================== FAIL: testCanonicalNameDangling (tests.test_resolver.PollResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 701, in testCanonicalNameDangling self.assertEqual(dns.resolver.canonical_name(name), cname) AssertionError: <DNS name dangling-cname.dnspython.org.> != <DNS name dangling-target.dnspython.org.>

====================================================================== FAIL: testResolve (tests.test_resolver.PollResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 636, in testResolve self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testResolveCacheHit (tests.test_resolver.PollResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 683, in testResolveCacheHit self.assertIn('8.8.8.8', seen) AssertionError: '8.8.8.8' not found in {'0.0.0.17'}

====================================================================== FAIL: testCanonicalNameDangling (tests.test_resolver.SelectResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 701, in testCanonicalNameDangling self.assertEqual(dns.resolver.canonical_name(name), cname) AssertionError: <DNS name dangling-cname.dnspython.org.> != <DNS name dangling-target.dnspython.org.>

====================================================================== FAIL: testResolve (tests.test_resolver.SelectResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 636, in testResolve self.assertTrue('8.8.8.8' in seen) AssertionError: False is not true

====================================================================== FAIL: testResolveCacheHit (tests.test_resolver.SelectResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver.py", line 683, in testResolveCacheHit self.assertIn('8.8.8.8', seen) AssertionError: '8.8.8.8' not found in {'0.0.0.17'}

====================================================================== FAIL: test_gethostbyaddr (tests.test_resolver_override.OverrideSystemResolverTestCase)


Traceback (most recent call last): File "/home/user/.cache/yay/python-dnspython-git/src/dnspython/tests/test_resolver_override.py", line 168, in test_gethostbyaddr self.assertEqual(a[2], b[2]) AssertionError: Lists differ: ['8.8.8.8'] != []

First list contains 1 additional elements. First extra element 0: '8.8.8.8'

  • ['8.8.8.8']
  • []

Ran 1129 tests in 32.614s

FAILED (failures=24, errors=29) Test failed: <unittest.runner.TextTestResult run=1129 errors=29 failures=24> error: Test failed: <unittest.runner.TextTestResult run=1129 errors=29 failures=24> ==> FEHLER: Ein Fehler geschah in check(). Breche ab...

calexandru2018 commented on 2021-07-06 11:12 (UTC)

Fails for me:

FAILED (failures=5, errors=3) Test failed: <unittest.runner.TextTestResult run=1118 errors=3 failures=5> error: Test failed: <unittest.runner.TextTestResult run=1118 errors=3 failures=5> ==> ERROR: A failure occurred in check(). Aborting...

ERROR: testResolveTCP (tests.test_resolver.LiveResolverTests)

ERROR: testResolveTCP (tests.test_resolver.PollResolverTestCase)

ERROR: testResolveTCP (tests.test_resolver.SelectResolverTestCase)

FAIL: testCanonicalNameCNAME (tests.test_async.CurioAsyncTests)

FAIL: testCanonicalNameCNAME (tests.test_async.TrioAsyncTests)

FAIL: testCanonicalNameCNAME (tests.test_resolver.LiveResolverTests)

FAIL: testCanonicalNameCNAME (tests.test_resolver.PollResolverTestCase)

FAIL: testCanonicalNameCNAME (tests.test_resolver.SelectResolverTestCase)

Jack1221 commented on 2020-08-31 15:01 (UTC)

Please add python-pytest to dependencies.