~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Martin Pool
  • Date: 2006-03-16 20:02:36 UTC
  • mto: (1610.1.10 bzr.mbp.integration)
  • mto: This revision was merged to the branch mainline in revision 1614.
  • Revision ID: mbp@sourcefrog.net-20060316200236-36b7bbaafd2cef9a
Raise errors correctly on pycurl connection failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
    def _get_pycurl_maybe(self):
138
138
        try:
139
139
            from bzrlib.transport.http._pycurl import PyCurlTransport
140
 
            self._transport = PyCurlTransport
 
140
            return PyCurlTransport
141
141
        except DependencyNotPresent:
142
142
            raise TestSkipped('pycurl not present')
143
143