Open
Description
I'm building beancount with Nix on a Macbook Air M1, and while running through the tests of httplib2, I get tests/test_other.py::test_connection_close FAILED
. All other tests either pass or are skipped. The error I get is:
=================================== FAILURES ===================================
____________________________ test_connection_close _____________________________
tests/test_other.py:163: in test_connection_close
http.request(uri, "GET") # conn2 req1
c = <httplib2.HTTPConnectionWithTimeout object at 0x107340280>
g = [1, 2]
handler = <function test_connection_close.<locals>.handler at 0x107209430>
http = <httplib2.Http object at 0x107340eb0>
uri = 'http://localhost:51450/'
/nix/store/asvvc5cf87lypq4bnsc7bzlyi8lpdk3x-python3.9-httplib2-0.20.3/lib/python3.9/site-packages/httplib2/__init__.py:1721: in request
(response, content) = self._request(
authority = 'localhost:51450'
body = None
cached_value = None
cachekey = None
cc = {}
conn = <httplib2.HTTPConnectionWithTimeout object at 0x107340280>
conn_key = 'http:localhost:51450'
connection_type = None
defrag_uri = 'http://localhost:51450/'
headers = {'accept-encoding': 'gzip, deflate', 'user-agent': 'Python-httplib2/0.20.3 (gzip)'}
info = <email.message.Message object at 0x107340940>
is_timeout = False
method = 'GET'
redirections = 5
request_uri = '/'
scheme = 'http'
self = <httplib2.Http object at 0x107340eb0>
uri = 'http://localhost:51450/'
/nix/store/asvvc5cf87lypq4bnsc7bzlyi8lpdk3x-python3.9-httplib2-0.20.3/lib/python3.9/site-packages/httplib2/__init__.py:1441: in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
absolute_uri = 'http://localhost:51450/'
auth = None
auths = []
body = None
cachekey = None
conn = <httplib2.HTTPConnectionWithTimeout object at 0x107340280>
headers = {'accept-encoding': 'gzip, deflate', 'user-agent': 'Python-httplib2/0.20.3 (gzip)'}
host = 'localhost:51450'
method = 'GET'
redirections = 5
request_uri = '/'
self = <httplib2.Http object at 0x107340eb0>
/nix/store/asvvc5cf87lypq4bnsc7bzlyi8lpdk3x-python3.9-httplib2-0.20.3/lib/python3.9/site-packages/httplib2/__init__.py:1393: in _conn_request
response = conn.getresponse()
body = None
conn = <httplib2.HTTPConnectionWithTimeout object at 0x107340280>
headers = {'accept-encoding': 'gzip, deflate', 'user-agent': 'Python-httplib2/0.20.3 (gzip)'}
i = 1
method = 'GET'
request_uri = '/'
seen_bad_status_line = False
self = <httplib2.Http object at 0x107340eb0>
/nix/store/llqjaw6wamkksidg7i0l9kjdaggsawjj-python3-3.9.10/lib/python3.9/http/client.py:1377: in getresponse
response.begin()
response = <http.client.HTTPResponse object at 0x107340fd0>
self = <httplib2.HTTPConnectionWithTimeout object at 0x107340280>
/nix/store/llqjaw6wamkksidg7i0l9kjdaggsawjj-python3-3.9.10/lib/python3.9/http/client.py:320: in begin
version, status, reason = self._read_status()
self = <http.client.HTTPResponse object at 0x107340fd0>
/nix/store/llqjaw6wamkksidg7i0l9kjdaggsawjj-python3-3.9.10/lib/python3.9/http/client.py:281: in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
self = <http.client.HTTPResponse object at 0x107340fd0>
/nix/store/llqjaw6wamkksidg7i0l9kjdaggsawjj-python3-3.9.10/lib/python3.9/socket.py:704: in readinto
return self._sock.recv_into(b)
E ConnectionResetError: [Errno 54] Connection reset by peer
b = <memory at 0x107259d00>
self = <socket.SocketIO object at 0x107340760>
As you can see, the version hosted on nixpkgs-unstable is 0.20.3, so I don't know if that is relevant.
Metadata
Metadata
Assignees
Labels
No labels