mirror of https://github.com/python/cpython
bpo-38815: Accept TLSv3 default in min max test (GH-NNNN) (GH-17437)
Make ssl tests less strict and also accept TLSv3 as the default maximum version. This change unbreaks test_min_max_version on Fedora 32. https://bugs.python.org/issue38815
This commit is contained in:
parent
2fe4c48917
commit
34864d1cff
|
@ -1203,12 +1203,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.assertEqual(
|
||||
ctx.maximum_version, ssl.TLSVersion.MAXIMUM_SUPPORTED
|
||||
self.assertIn(
|
||||
ctx.maximum_version, maximum_range
|
||||
)
|
||||
|
||||
ctx.minimum_version = ssl.TLSVersion.TLSv1_1
|
||||
|
|
Loading…
Reference in New Issue