[3.7] bpo-38275: Skip ssl tests for disabled versions (GH-16427)#16427
Conversation
test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto policy and run-time settings are recognized and tests for disabled versions are skipped. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38275. (cherry picked from commit df6ac7e) Co-authored-by: Christian Heimes <christian@python.org>
Check presence of SSLContext.minimum_version to make tests pass with old versions of OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot s390x Debian 3.7 has failed when building commit 2c24f2c. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/119/builds/1513 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 398 tests OK. 10 slowest tests:
5 tests failed: 13 tests skipped: 5 re-run tests: Total duration: 11 min 23 sec Click to see traceback logsTraceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 274, in test_history_size
run_pty(script, input=b"last input\r", env=env)
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_openpty.py", line 11, in test
master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 153, in test_auto_history_disabled
output = run_pty(self.auto_history_script.format(False))
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/support/__init__.py", line 623, in wrapper
return func(*args, **kw)
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 1645, in test_bidirectional_pty
master, read_slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_pty.py", line 130, in test_fork
pid, master_fd = pty.fork()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 96, in fork
master_fd, slave_fd = openpty()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 149, in test_auto_history_enabled
output = run_pty(self.auto_history_script.format(True))
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/support/__init__.py", line 623, in wrapper
return func(*args, **kw)
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 1601, in test_write_pty
master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 1503, in test_read_pty_output
master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 226, in test_nonascii
output = run_pty(script, input)
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.7.edelsohn-debian-z/build/Lib/test/test_os.py", line 3273, in test_openpty
master_fd, slave_fd = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
|
Sorry, something went wrong.
test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto policy and run-time settings are recognized and tests for disabled versions are skipped. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38275 (cherry picked from commit df6ac7e)
test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto
policy and run-time settings are recognized and tests for disabled versions
are skipped.
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue38275.
(cherry picked from commit df6ac7e)
Co-authored-by: Christian Heimes christian@python.org
https://bugs.python.org/issue38275