mirror of
https://github.com/python/cpython.git
synced 2024-12-24 01:05:10 +08:00
8f8ec92de8
requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
23 lines
640 B
Python
23 lines
640 B
Python
# 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:])
|