/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

  • Committer: v.ladeuil+lp at free
  • Date: 2006-10-04 14:42:05 UTC
  • mto: (2145.1.1 keepalive)
  • Revision ID: v.ladeuil+lp@free.fr-20061004144205-6a7496410b893ab1
Add tests against erroneous http status lines.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Response.begin): In some subtle cases we MUST not try to read the
response body.
(AbstractHTTPConnection.strict): Do not try to support HTTP/0.9 or we
may fail to detect bad status lines.
(AbstractHTTPHandler.do_open): Translate BasStatusLine into
InvalidHttpResponse and don't retry in that case.

* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport.has): 

* bzrlib/transport/http/__init__.py:
(BadStatusRequestHandler, InvalidStatusRequestHandler): New classes.

* bzrlib/tests/test_http.py:
(TestBadStatusServer.create_transport_server,
TestBadStatusServer_urllib, TestBadStatusServer_pycurl,
TestInvalidStatusServer, TestInvalidStatusServer_urllib,
TestInvalidStatusServer_pycurl): New classes.
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 2024.2.3 19 years ago John Arbash Meinel Move out export tests from test_too_much, refactor 4.8 KB Diff Download File
dir_exporter.py 1852.6.10 19 years ago Robert Collins Merge bzr.dev. 1.5 KB Diff Download File
tar_exporter.py 1852.6.6 19 years ago Robert Collins Finish updating iter_entries change to make all te 1.9 KB Diff Download File
zip_exporter.py 2024.2.8 19 years ago John Arbash Meinel paths are always forward slashed for python zipfil 3.3 KB Diff Download File