#1137433 FTBFS with python3-openssl >= 26.2.0

Package:
src:pytds
Source:
src:pytds
Submitter:
Andrey Rakhmatullin
Date:
2026-06-21 16:03:02 UTC
Severity:
normal
Tags:
#1137433#5
Date:
2026-05-23 19:57:59 UTC
From:
To:
I've rebuilt the package locally with python3-openssl 26.2.0-1~exp1 which is
currently in experimental but I plan to upload it to unstable soon. It failed
one test, tests/unit_test.py::test_cert_with_san, with the following reason:

Traceback (most recent call last):
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/utils.py", line 35, in
exponential_backoff
    return work(try_time)
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/__init__.py", line
353, in attempt
    return _connect(
        login=login,
    ...<11 lines>...
        row_strategy=row_strategy,
    )
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/__init__.py", line
446, in _connect
    route = tds_socket.login()
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/tds_socket.py", line
90, in login
    self._main_session.process_prelogin(self._login)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/tds_session.py", line
1277, in process_prelogin
    self.parse_prelogin(octets=p, login=login)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/tds_session.py", line
1329, in parse_prelogin
    tls.establish_channel(self)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/tls.py", line 208, in
establish_channel
    if not validate_host(cert=conn.get_peer_certificate(), name=bhost):
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/build/reproducible-
path/pytds-1.16.0/.pybuild/cpython3_3.13_tds/build/pytds/tls.py", line 134, in
validate_host
    ext = cert.get_extension(i)
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'X509' object has no attribute 'get_extension'. Did you mean:
'get_version'?

#1137433#10
Date:
2026-06-05 19:09:58 UTC
From:
To:
python3-openssl 26.2.0-1 is in unstable.