Proxy tests failing on Sarge/urllib

Wichmann, Mats D mats.d.wichmann at intel.com
Thu Dec 21 15:02:33 GMT 2006


I had a report from a user that proxy stuff wasn't working in
0.13 but worked in 0.12 and earlier. 

>-----Original Message-----
>From: bazaar-ng-bounces at lists.canonical.com 
>[mailto:bazaar-ng-bounces at lists.canonical.com] On Behalf Of 
>Aaron Bentley
>Sent: Thursday, December 21, 2006 7:59 AM
>To: bazaar-ng
>Subject: Proxy tests failing on Sarge/urllib
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Some of the proxy tests are failing on my Sarge box, which 
>does not have
>pycurl installed.  Python is 2.4.1
>
>It appears they have never passed since they were introduced in r2183.
>
>Here's my selftest output:
>
>$ ./bzr selftest roxy
>       bzr: /home/abentley/bzr/dev/bzr
>    bzrlib: /home/abentley/bzr/dev/bzrlib
>
>ERROR: test_http.TestProxyHttpServer_urllib.test_ALL_PROXY
>    No such file: 'http://localhost:51154/foo'
>
>ERROR: test_http.TestProxyHttpServer_urllib.test_HTTP_PROXY
>    No such file: 'http://localhost:51160/foo'
>
>ERROR: test_http.TestProxyHttpServer_urllib.test_all_proxy
>    No such file: 'http://localhost:51166/foo'
>
>ERROR: test_http.TestProxyHttpServer_urllib.test_http_proxy
>    No such file: 'http://localhost:51172/foo'
>
>[16/16 in 1s, 4 errors, 8 skipped]
>test_http.TestProxyHttpServer_urllib.test_ht
>======================================================================
>ERROR: test_ALL_PROXY 
>(bzrlib.tests.test_http.TestProxyHttpServer_urllib)
>
>vvvv[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_ALL_PROXY]
>GET: [http://localhost:51154/foo]
>
>^^^^[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_ALL_PROXY]
>- 
>----------------------------------------------------------------------
>Traceback (most recent call last):
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 703, in
>test_ALL_PROXY
>    self.proxied_in_env({'ALL_PROXY': self.proxy_url})
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 680, in
>proxied_in_env
>    self.assertEqual(t.get('foo').read(), 'proxied contents of foo\n')
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/__init__.py", line
>226, in get
>    code, response_file = self._get(relpath, None)
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/_urllib.py", line
>135, in _get
>    raise NoSuchFile(abspath)
>NoSuchFile: No such file: 'http://localhost:51154/foo'
>
>======================================================================
>ERROR: test_HTTP_PROXY 
>(bzrlib.tests.test_http.TestProxyHttpServer_urllib)
>
>vvvv[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_HTTP_PROXY]GET:
>[http://localhost:51160/foo]
>
>^^^^[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_HTTP_PRO
>XY]------------------------------------------------------------
>----------
>Traceback (most recent call last):
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 697, in
>test_HTTP_PROXY
>    self.proxied_in_env({'HTTP_PROXY': self.proxy_url})
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 680, in
>proxied_in_env
>    self.assertEqual(t.get('foo').read(), 'proxied contents of foo\n')
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/__init__.py", line
>226, in get
>    code, response_file = self._get(relpath, None)
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/_urllib.py", line
>135, in _get
>    raise NoSuchFile(abspath)
>NoSuchFile: No such file: 'http://localhost:51160/foo'
>
>======================================================================
>ERROR: test_all_proxy 
>(bzrlib.tests.test_http.TestProxyHttpServer_urllib)
>
>vvvv[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_all_proxy]
>GET: [http://localhost:51166/foo]
>
>^^^^[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_all_proxy]
>- 
>----------------------------------------------------------------------
>Traceback (most recent call last):
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 700, in
>test_all_proxy
>    self.proxied_in_env({'all_proxy': self.proxy_url})
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 680, in
>proxied_in_env
>    self.assertEqual(t.get('foo').read(), 'proxied contents of foo\n')
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/__init__.py", line
>226, in get
>    code, response_file = self._get(relpath, None)
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/_urllib.py", line
>135, in _get
>    raise NoSuchFile(abspath)
>NoSuchFile: No such file: 'http://localhost:51166/foo'
>
>======================================================================
>ERROR: test_http_proxy 
>(bzrlib.tests.test_http.TestProxyHttpServer_urllib)
>
>vvvv[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_http_proxy]GET:
>[http://localhost:51172/foo]
>
>^^^^[log from
>bzrlib.tests.test_http.TestProxyHttpServer_urllib.test_http_pro
>xy]------------------------------------------------------------
>----------
>Traceback (most recent call last):
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 694, in
>test_http_proxy
>    self.proxied_in_env({'http_proxy': self.proxy_url})
>  File "/home/abentley/bzr/dev/bzrlib/tests/test_http.py", line 680, in
>proxied_in_env
>    self.assertEqual(t.get('foo').read(), 'proxied contents of foo\n')
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/__init__.py", line
>226, in get
>    code, response_file = self._get(relpath, None)
>  File "/home/abentley/bzr/dev/bzrlib/transport/http/_urllib.py", line
>135, in _get
>    raise NoSuchFile(abspath)
>NoSuchFile: No such file: 'http://localhost:51172/foo'
>
>- 
>----------------------------------------------------------------------
>Ran 16 tests in 1.678s
>
>FAILED (errors=4)
>tests failed
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.1 (GNU/Linux)
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
>iD8DBQFFiqFG0F+nu1YWqI0RAl2qAJ90G9Y1obIct5Ze1nCOI4S0F0jiyQCfai29
>zEWjfosjaKfyhL2KF4W00JU=
>=pq55
>-----END PGP SIGNATURE-----
>




More information about the bazaar mailing list