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
8bfda3af
Commit
8bfda3af
authored
Jul 21, 2014
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21976: Fix test_ssl to accept LibreSSL version strings.
Thanks to William Orr.
parent
13c40cf5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+10
-6
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+6
-0
No files found.
Lib/test/test_ssl.py
View file @
8bfda3af
...
...
@@ -175,11 +175,11 @@ class BasicSocketTests(unittest.TestCase):
# Some sanity checks follow
# >= 0.9
self
.
assertGreaterEqual
(
n
,
0x900000
)
# <
2
.0
self
.
assertLess
(
n
,
0x
2
0000000
)
# <
3
.0
self
.
assertLess
(
n
,
0x
3
0000000
)
major
,
minor
,
fix
,
patch
,
status
=
t
self
.
assertGreaterEqual
(
major
,
0
)
self
.
assertLess
(
major
,
2
)
self
.
assertLess
(
major
,
3
)
self
.
assertGreaterEqual
(
minor
,
0
)
self
.
assertLess
(
minor
,
256
)
self
.
assertGreaterEqual
(
fix
,
0
)
...
...
@@ -188,9 +188,13 @@ class BasicSocketTests(unittest.TestCase):
self
.
assertLessEqual
(
patch
,
26
)
self
.
assertGreaterEqual
(
status
,
0
)
self
.
assertLessEqual
(
status
,
15
)
# Version string as returned by OpenSSL, the format might change
self
.
assertTrue
(
s
.
startswith
(
"OpenSSL {:d}.{:d}.{:d}"
.
format
(
major
,
minor
,
fix
)),
(
s
,
t
))
# Version string as returned by {Open,Libre}SSL, the format might change
if
"LibreSSL"
in
s
:
self
.
assertTrue
(
s
.
startswith
(
"LibreSSL {:d}.{:d}"
.
format
(
major
,
minor
)),
(
s
,
t
))
else
:
self
.
assertTrue
(
s
.
startswith
(
"OpenSSL {:d}.{:d}.{:d}"
.
format
(
major
,
minor
,
fix
)),
(
s
,
t
))
@
test_support
.
requires_resource
(
'network'
)
def
test_ciphers
(
self
):
...
...
Misc/ACKS
View file @
8bfda3af
...
...
@@ -981,6 +981,7 @@ Piet van Oostrum
Tomas Oppelstrup
Jason Orendorff
Douglas Orr
William Orr
Michele Orrù
Oleg Oshmyan
Denis S. Otkidach
...
...
Misc/NEWS
View file @
8bfda3af
...
...
@@ -37,6 +37,12 @@ Library
- Issue #21323: Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435. Patch by Zach Byrne.
Tests
-----
- Issue #21976: Fix test_ssl to accept LibreSSL version strings. Thanks
to William Orr.
What'
s
New
in
Python
2.7.8
?
===========================
...
...
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