Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
22d0a57a
Commit
22d0a57a
authored
Jan 04, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests
parent
a8bde021
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
57 deletions
+81
-57
src/greentest/3.7/test_ssl.py
src/greentest/3.7/test_ssl.py
+14
-8
src/greentest/3.7/version
src/greentest/3.7/version
+1
-1
src/greentest/3.8/test_ssl.py
src/greentest/3.8/test_ssl.py
+14
-8
src/greentest/3.8/test_subprocess.py
src/greentest/3.8/test_subprocess.py
+51
-39
src/greentest/3.8/version
src/greentest/3.8/version
+1
-1
No files found.
src/greentest/3.7/test_ssl.py
View file @
22d0a57a
...
...
@@ -500,7 +500,7 @@ class BasicSocketTests(unittest.TestCase):
(
'email'
,
'null@python.org
\
x00
user@example.org'
),
(
'URI'
,
'http://null.python.org
\
x00
http://example.org'
),
(
'IP Address'
,
'192.0.2.1'
),
(
'IP Address'
,
'2001:DB8:0:0:0:0:0:1
\
n
'
))
(
'IP Address'
,
'2001:DB8:0:0:0:0:0:1'
))
else
:
# OpenSSL 0.9.7 doesn't support IPv6 addresses in subjectAltName
san
=
((
'DNS'
,
'altnull.python.org
\
x00
example.com'
),
...
...
@@ -527,7 +527,7 @@ class BasicSocketTests(unittest.TestCase):
((
'commonName'
,
'dirname example'
),))),
(
'URI'
,
'https://www.python.org/'
),
(
'IP Address'
,
'127.0.0.1'
),
(
'IP Address'
,
'0:0:0:0:0:0:0:1
\
n
'
),
(
'IP Address'
,
'0:0:0:0:0:0:0:1'
),
(
'Registered ID'
,
'1.2.3.4.5'
)
)
)
...
...
@@ -554,11 +554,11 @@ class BasicSocketTests(unittest.TestCase):
# Some sanity checks follow
# >= 0.9
self
.
assertGreaterEqual
(
n
,
0x900000
)
# <
3
.0
self
.
assertLess
(
n
,
0x
3
0000000
)
# <
4
.0
self
.
assertLess
(
n
,
0x
4
0000000
)
major
,
minor
,
fix
,
patch
,
status
=
t
self
.
assertGreaterEqual
(
major
,
0
)
self
.
assertLess
(
major
,
3
)
self
.
assertGreaterEqual
(
major
,
1
)
self
.
assertLess
(
major
,
4
)
self
.
assertGreaterEqual
(
minor
,
0
)
self
.
assertLess
(
minor
,
256
)
self
.
assertGreaterEqual
(
fix
,
0
)
...
...
@@ -1220,12 +1220,18 @@ class ContextTests(unittest.TestCase):
# RHEL 8 uses TLS 1.2 by default
ssl
.
TLSVersion
.
TLSv1_2
}
maximum_range
=
{
# stock OpenSSL
ssl
.
TLSVersion
.
MAXIMUM_SUPPORTED
,
# Fedora 32 uses TLS 1.3 by default
ssl
.
TLSVersion
.
TLSv1_3
}
self
.
assertIn
(
ctx
.
minimum_version
,
minimum_range
)
self
.
assert
Equal
(
ctx
.
maximum_version
,
ssl
.
TLSVersion
.
MAXIMUM_SUPPORTED
self
.
assert
In
(
ctx
.
maximum_version
,
maximum_range
)
ctx
.
minimum_version
=
ssl
.
TLSVersion
.
TLSv1_1
...
...
src/greentest/3.7/version
View file @
22d0a57a
3.7.
5
3.7.
6
src/greentest/3.8/test_ssl.py
View file @
22d0a57a
...
...
@@ -485,7 +485,7 @@ class BasicSocketTests(unittest.TestCase):
(
'email'
,
'null@python.org
\
x00
user@example.org'
),
(
'URI'
,
'http://null.python.org
\
x00
http://example.org'
),
(
'IP Address'
,
'192.0.2.1'
),
(
'IP Address'
,
'2001:DB8:0:0:0:0:0:1
\
n
'
))
(
'IP Address'
,
'2001:DB8:0:0:0:0:0:1'
))
else
:
# OpenSSL 0.9.7 doesn't support IPv6 addresses in subjectAltName
san
=
((
'DNS'
,
'altnull.python.org
\
x00
example.com'
),
...
...
@@ -512,7 +512,7 @@ class BasicSocketTests(unittest.TestCase):
((
'commonName'
,
'dirname example'
),))),
(
'URI'
,
'https://www.python.org/'
),
(
'IP Address'
,
'127.0.0.1'
),
(
'IP Address'
,
'0:0:0:0:0:0:0:1
\
n
'
),
(
'IP Address'
,
'0:0:0:0:0:0:0:1'
),
(
'Registered ID'
,
'1.2.3.4.5'
)
)
)
...
...
@@ -539,11 +539,11 @@ class BasicSocketTests(unittest.TestCase):
# Some sanity checks follow
# >= 0.9
self
.
assertGreaterEqual
(
n
,
0x900000
)
# <
3
.0
self
.
assertLess
(
n
,
0x
3
0000000
)
# <
4
.0
self
.
assertLess
(
n
,
0x
4
0000000
)
major
,
minor
,
fix
,
patch
,
status
=
t
self
.
assertGreaterEqual
(
major
,
0
)
self
.
assertLess
(
major
,
3
)
self
.
assertGreaterEqual
(
major
,
1
)
self
.
assertLess
(
major
,
4
)
self
.
assertGreaterEqual
(
minor
,
0
)
self
.
assertLess
(
minor
,
256
)
self
.
assertGreaterEqual
(
fix
,
0
)
...
...
@@ -1200,12 +1200,18 @@ class ContextTests(unittest.TestCase):
# RHEL 8 uses TLS 1.2 by default
ssl
.
TLSVersion
.
TLSv1_2
}
maximum_range
=
{
# stock OpenSSL
ssl
.
TLSVersion
.
MAXIMUM_SUPPORTED
,
# Fedora 32 uses TLS 1.3 by default
ssl
.
TLSVersion
.
TLSv1_3
}
self
.
assertIn
(
ctx
.
minimum_version
,
minimum_range
)
self
.
assert
Equal
(
ctx
.
maximum_version
,
ssl
.
TLSVersion
.
MAXIMUM_SUPPORTED
self
.
assert
In
(
ctx
.
maximum_version
,
maximum_range
)
ctx
.
minimum_version
=
ssl
.
TLSVersion
.
TLSv1_1
...
...
src/greentest/3.8/test_subprocess.py
View file @
22d0a57a
This diff is collapsed.
Click to expand it.
src/greentest/3.8/version
View file @
22d0a57a
3.8.
0
3.8.
1
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