diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-05 06:45:36 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-05 06:45:36 (GMT) |
commit | c6d471d6533a24c461e72668398931dc6014fa28 (patch) | |
tree | 5446d94c2c0a5dc3bb50ba6a3c495b101e41095e /Lib/test/ssltests.py | |
parent | 8e7f394282e783ab98353f718812f7fe437492bb (diff) | |
download | cpython-c6d471d6533a24c461e72668398931dc6014fa28.zip cpython-c6d471d6533a24c461e72668398931dc6014fa28.tar.gz cpython-c6d471d6533a24c461e72668398931dc6014fa28.tar.bz2 |
Add a script similar to xmltests.py to run all SSL-related unit tests
Diffstat (limited to 'Lib/test/ssltests.py')
-rwxr-xr-x | Lib/test/ssltests.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Lib/test/ssltests.py b/Lib/test/ssltests.py new file mode 100755 index 0000000..32fe119 --- /dev/null +++ b/Lib/test/ssltests.py @@ -0,0 +1,22 @@ +# 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:]) |