Proxy tests failing on Sarge/urllib

Aaron Bentley aaron.bentley at utoronto.ca
Thu Dec 21 14:59:18 GMT 2006


-----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_PROXY]----------------------------------------------------------------------
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_proxy]----------------------------------------------------------------------
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