mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
gh-107562: make_ssl_certs.py: produce test certificates that expire far in the future by default (GH-107594)
This allows testing Y2038 with system time set to after that, so that actual Y2038 issues can be exposed, and not masked by expired certificate errors. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
This commit is contained in:
parent
21c04e1a97
commit
53930cbe47
3 changed files with 6 additions and 2 deletions
|
@ -383,6 +383,7 @@ class BasicSocketTests(unittest.TestCase):
|
|||
ssl.RAND_add(bytearray(b"this is a random bytearray object"), 75.0)
|
||||
|
||||
def test_parse_cert(self):
|
||||
self.maxDiff = None
|
||||
# note that this uses an 'unofficial' function in _ssl.c,
|
||||
# provided solely for this test, to exercise the certificate
|
||||
# parsing code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue