~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2009-01-08 16:57:10 UTC
  • mfrom: (2929.3.27 https)
  • mto: This revision was merged to the branch mainline in revision 3929.
  • Revision ID: v.ladeuil+lp@free.fr-20090108165710-d49d4uuq3emdr749
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