'Run the regrtest module appropriately'

def run(self):

    b = build(self.distribution)
    b.initialize_options()
    b.finalize_options()
    extdir = os.path.abspath(b.build_platlib)
    topdir = os.path.dirname(os.path.abspath(__file__))
    localtestdir = os.path.join(topdir, 'test')
    sys.path.insert(0, topdir)
    sys.path.insert(0, localtestdir)
    sys.path.insert(0, extdir)
    import test.test_support
    test.test_support.use_resources = ['network']
    os.chdir(localtestdir)
    the_module = __import__('test_ssl', globals(), locals(), [])
    indirect_test = getattr(the_module, 'test_main', None)
    if (indirect_test is not None):
        indirect_test()
