~bzr-pqm/bzr/bzr.dev

  • Committer: v.ladeuil+lp at free
  • Date: 2006-10-04 09:40:03 UTC
  • mto: (2145.1.1 keepalive)
  • Revision ID: v.ladeuil+lp@free.fr-20061004094003-4a058914ddf1401a
Better design for bogus servers. Both urllib and pycurl pass tests.

* bzrlib/transport/http/_urllib2_wrappers.py:
(ConnectionHandler.create_connection): Raise InvalidURL instead of
urllib2.URLError.
(AbstractHTTPHandler.http_request): New method to override default
urllib2 headers.

* bzrlib/tests/test_http.py:
(TestHttpConnections): Renamed from HttpMixins. Note that this class
should be inherited by a class that also inherit from
TestCaseWithWebserver, this was already the case, but that's now
mentioned in the doc string.
(TestHttpConnections.test_has_on_bogus_host): Moved from
TestHttpConnections_urllib to TestHttpConnections so that pycurl get
tested too.
(TestWithTransport_pycurl): New class to share the pycurl dependency
testing when creating test cases for pycurl.
(TestHttpConnections_urllib, TestHttpConnections_pycurl): Simplified
accordingly.
(TestWallServer, TestWallServer_urllib, TestWallServer_pycurl): Use the
same pattern as TestHttpConnections to share tests between urllib and
pycurl.

* bzrlib/errors.py: 
(ConnectionError): Yes, the 'Connection error' part seems redundant
with the leading ConnectionError in the message, but so far, at least
one test (SSHVendorBadConnection.test_bad_connection_ssh) relies on it
and I don't know if suppressing this redundancy is the best way to
solve the problem.
Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
tools 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 1819.1.6 18 years ago Jan Balster added .perf-history to the ignore file 513 bytes Diff Download File
.rsyncexclude 1185.33.36 18 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 2018.1.12 18 years ago Robert Collins Trivially cleanup BRANCH.TODO 147 bytes Diff Download File
build-api 1185.33.32 18 years ago Martin Pool [merge] fix \t in commit messages 100 bytes Diff Download File
File bzr 2055.1.1 18 years ago John Arbash Meinel Find python2.5 if 2.4 cannot be found 2.7 KB Diff Download File
bzr.ico 1861.2.16 18 years ago Alexander Belchenko new official bzr.ico 7.2 KB Diff Download File
COPYING.txt 1861.2.9 18 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
File generate_docs.py 1861.2.7 18 years ago Alexander Belchenko merge bzr.dev 2.9 KB Diff Download File
HACKING 1996.1.26 18 years ago John Arbash Meinel Update HACKING and docstrings 20.5 KB Diff Download File
INSTALL 1185.16.80 18 years ago Martin Pool Update news and readme - better explanation of de 437 bytes Diff Download File
Makefile 1982.2.1 18 years ago Alexander Belchenko small but important fix for 'make installer' depen 2.7 KB Diff Download File
NEWS 2004.1.14 18 years ago v.ladeuil+lp at free Merge bzr.dev 75.6 KB Diff Download File
NEWS.developers 1185.16.35 18 years ago Martin Pool - stub for revision properties 910 bytes Diff Download File
profile_imports.py 1996.1.22 18 years ago John Arbash Meinel Update --profile-imports to support the new lazy_i 5.1 KB Diff Download File
README 2037.1.1 18 years ago Robert Collins (Robert Collins) bzr 0.11rc1 has branch, bump bzr. 759 bytes Diff Download File
setup.py 1963.2.6 18 years ago Robey Pointer pychecker is on crack; go back to using 'is None'. 6.6 KB Diff Download File
TODO 1185.82.134 18 years ago Aaron Bentley Merge from bzr.dev 15.7 KB Diff Download File