'A bad URL with a double scheme should raise a DistutilsError.'

def test_bad_url_double_scheme(self):

    index = setuptools.package_index.PackageIndex(hosts=('www.example.com',))
    url = 'http://http://svn.pythonpaste.org/Paste/wphp/trunk'
    try:
        index.open_url(url)
    except distutils.errors.DistutilsError:
        error = sys.exc_info()[1]
        msg = unicode(error)
        assert (('nonnumeric    port' in msg) or ('getaddrinfo    failed' in msg) or ('Name    or    service    not    known' in msg))
        return
    raise RuntimeError('Did    not    raise')
