Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c1322384
Commit
c1322384
authored
Sep 22, 2016
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Lib/test/ssltests.py more useful and faster for OpenSSL testing
parent
f7d2569b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
Lib/test/ssltests.py
Lib/test/ssltests.py
+21
-6
No files found.
Lib/test/ssltests.py
View file @
c1322384
# Convenience test module to run all of the SSL-related tests in the
# Convenience test module to run all of the
Open
SSL-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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment