summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-22 14:49:35 (GMT)
committerChristian Heimes <christian@python.org>2016-09-22 14:49:35 (GMT)
commit55b196a1e4015d5ffb748bc23f91052f996f3590 (patch)
tree54101fc7aea5aae285de12d1e2bf69115ed9fbdb /Lib
parent463ef2b3cf4ac4555fca7de1e671d179e63909b4 (diff)
downloadcpython-55b196a1e4015d5ffb748bc23f91052f996f3590.zip
cpython-55b196a1e4015d5ffb748bc23f91052f996f3590.tar.gz
cpython-55b196a1e4015d5ffb748bc23f91052f996f3590.tar.bz2
Make Lib/test/ssltests.py more useful and faster for OpenSSL testing
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/ssltests.py27
1 files changed, 21 insertions, 6 deletions
diff --git a/Lib/test/ssltests.py b/Lib/test/ssltests.py
index 9b0ed22..5073ae1 100644
--- a/Lib/test/ssltests.py
+++ b/Lib/test/ssltests.py
@@ -1,17 +1,32 @@
-# Convenience test module to run all of the SSL-related tests in the
+# Convenience test module to run all of the OpenSSL-related tests in the
# standard library.
+import ssl
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']
+TESTS = [
+ 'test_asyncio', 'test_ensurepip.py', 'test_ftplib', 'test_hashlib',
+ 'test_hmac', 'test_httplib', 'test_imaplib', 'test_nntplib',
+ 'test_poplib', 'test_ssl', 'test_smtplib', 'test_smtpnet',
+ 'test_urllib2_localnet', 'test_venv', 'test_xmlrpc'
+]
def run_regrtests(*extra_args):
- args = [sys.executable, "-m", "test"]
+ print(ssl.OPENSSL_VERSION)
+ args = [
+ sys.executable,
+ '-Werror', '-bb', # turn warnings into exceptions
+ '-m', 'test',
+ ]
if not extra_args:
- args.append("-unetwork")
+ args.extend([
+ '-r', # randomize
+ '-w', # re-run failed tests with -v
+ '-u', 'network', # use network
+ '-u', 'urlfetch', # download test vectors
+ '-j', '0' # use multiple CPUs
+ ])
else:
args.extend(extra_args)
args.extend(TESTS)