mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
python-3.6.zip added from Github
README.cosmo contains the necessary links.
This commit is contained in:
parent
75fc601ff5
commit
0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions
37
third_party/python/Lib/test/ssltests.py
vendored
Normal file
37
third_party/python/Lib/test/ssltests.py
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
# 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_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):
|
||||
print(ssl.OPENSSL_VERSION)
|
||||
args = [
|
||||
sys.executable,
|
||||
'-Werror', '-bb', # turn warnings into exceptions
|
||||
'-m', 'test',
|
||||
]
|
||||
if not extra_args:
|
||||
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)
|
||||
result = subprocess.call(args)
|
||||
sys.exit(result)
|
||||
|
||||
if __name__ == '__main__':
|
||||
run_regrtests(*sys.argv[1:])
|
Loading…
Add table
Add a link
Reference in a new issue