Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Raw File
Tip revision: 164df4e51a5bf0b3b1694b81edbe38ea4bf1ce13 authored by Larry Hastings on 25 July 2015, 21:22:13 UTC
Version bump for Python 3.5.0b4.
Tip revision: 164df4e
ssltests.py
# Convenience test module to run all of the SSL-related tests in the
# standard library.

import sys
import subprocess

TESTS = ['test_asyncio', 'test_ftplib', 'test_hashlib', 'test_httplib',
         'test_imaplib', 'test_nntplib', 'test_poplib', 'test_smtplib',
         'test_smtpnet', 'test_urllib2_localnet', 'test_venv']

def run_regrtests(*extra_args):
    args = [sys.executable, "-m", "test"]
    if not extra_args:
        args.append("-unetwork")
    else:
        args.extend(extra_args)
    args.extend(TESTS)
    result = subprocess.call(args)
    sys.exit(result)

if __name__ == '__main__':
    run_regrtests(*sys.argv[1:])
back to top