/brz/remove-bazaar

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

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_urllib.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-08 17:37:09 UTC
  • mfrom: (3928.1.1 bzr.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090108173709-wgrkm02ayt1gf1n1
(vila) Add native ssl support for python-2.6,
        starting with an https test server

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
 
166
166
def get_test_permutations():
167
167
    """Return the permutations to be used in testing."""
168
 
    from bzrlib.tests.http_server import HttpServer_urllib
169
 
    return [(HttpTransport_urllib, HttpServer_urllib),
170
 
            ]
 
168
    from bzrlib import tests
 
169
    from bzrlib.tests import http_server
 
170
    permutations = [(HttpTransport_urllib, http_server.HttpServer_urllib),]
 
171
    if tests.HTTPSServerFeature.available():
 
172
        from bzrlib.tests import https_server
 
173
        permutations.append((HttpTransport_urllib,
 
174
                             https_server.HTTPSServer_urllib))
 
175
    return permutations