--- a/mercurial/httpclient/tests/test_proxy_support.py Mon May 16 21:56:26 2011 +0200
+++ b/mercurial/httpclient/tests/test_proxy_support.py Thu May 12 10:48:31 2011 -0500
@@ -97,12 +97,12 @@
'\r\n'
'1234567890'])
con._connect()
- con.sock.data = ['HTTP/1.1 200 OK\r\n',
- 'Server: BogusServer 1.0\r\n',
- 'Content-Length: 10\r\n',
- '\r\n'
- '1234567890'
- ]
+ con.sock.data.extend(['HTTP/1.1 200 OK\r\n',
+ 'Server: BogusServer 1.0\r\n',
+ 'Content-Length: 10\r\n',
+ '\r\n'
+ '1234567890'
+ ])
con.request('GET', '/')
expected_req = ('CONNECT 1.2.3.4:443 HTTP/1.0\r\n'