test_connection_error
Martin Pool
mbp at sourcefrog.net
Wed Nov 16 02:45:15 GMT 2005
after merging from aaron, I have
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mbp/work/bzr.dev/bzrlib/selftest/testtransport.py", line
459, in test_connection_error
self.assertRaises(ConnectionError, t.get, '.bzr/branch')
File "/usr/lib/python2.4/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/home/mbp/work/bzr.dev/bzrlib/transport/http.py", line 149, in
get
orig_error=e)
NoSuchFile: no such file: Error retrieving http://www.example.com/.bzr/branch: HTTP Error 404: Not Found
This is just because of an exception class mismatch, NoSuchFile vs
ConnectionError. For the moment I'll just generalize the exception; if
someone has a strong opinion say so.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051116/1d63e5fd/attachment.pgp
More information about the bazaar
mailing list