bpo-44633: Fix parameter substitution of the union type with wrong types. by serhiy-storchaka · Pull Request #27218 · python/cpython

Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/test/test_nntplib.py", line 332, in setUpClass
    cls.server = cls.NNTP_CLASS(cls.NNTP_HOST, **kwargs)
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/nntplib.py", line 1025, in __init__
    super().__init__(host, port, user, password, readermode,
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/nntplib.py", line 334, in __init__
    self.sock = self._create_socket(timeout)
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/nntplib.py", line 1031, in _create_socket
    sock = _encrypt_on(sock, self.ssl_context, self.host)
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/nntplib.py", line 292, in _encrypt_on
    return context.wrap_socket(sock, server_hostname=hostname)
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/ssl.py", line 512, in wrap_socket
    return self.sslsocket_class._create(
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/ssl.py", line 1070, in _create
    self.do_handshake()
  File "/home/buildbot/buildarea/3.10.cstratak-fedora-stable-ppc64le.lto-pgo/build/Lib/ssl.py", line 1341, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)