Source: pytds Version: 1.10.0-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20211220 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > dh_auto_build > I: pybuild base:237: /usr/bin/python3.10 setup.py build > ['pytds'] > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/extensions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/login.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/lcid.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/collate.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/smp.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/tds.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/tls.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/tz.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/sspi.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/tds_base.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > copying src/pytds/tds_types.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build/pytds > I: pybuild base:237: /usr/bin/python3 setup.py build > ['pytds'] > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/extensions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/login.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/lcid.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/collate.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/smp.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/tds.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/tls.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/tz.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/sspi.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/tds_base.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > copying src/pytds/tds_types.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build/pytds > PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html # HTML generator > Running Sphinx v4.3.2 > making output directory... done > WARNING: html_static_path entry '_static' does not exist > building [mo]: targets for 0 po files that are out of date > building [html]: targets for 4 source files that are out of date > updating environment: [new config] 4 added, 0 changed, 0 removed > reading sources... [ 25%] extensions > reading sources... [ 50%] index > reading sources... [ 75%] install > reading sources... [100%] pytds > > looking for now-outdated files... none found > pickling environment... done > checking consistency... /<<PKGBUILDDIR>>/docs/install.rst: WARNING: document > isn't included in any toctree > done > preparing documents... done > writing output... [ 25%] extensions > writing output... [ 50%] index > writing output... [ 75%] install > writing output... [100%] pytds > > generating indices... genindex py-modindex done > highlighting module code... [ 33%] pytds > highlighting module code... [ 66%] pytds.login > highlighting module code... [100%] pytds.tz > > writing additional pages... search done > copying static files... done > copying extra files... done > dumping search index in English (code: en)... done > dumping object inventory... done > build succeeded, 2 warnings. > > The HTML pages are in build/html. > make[1]: Leaving directory '/<<PKGBUILDDIR>>' > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build; > python3.10 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 > rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini > collected 285 items > > tests/all_test.py ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ > 18%] > sssssssssssssssssssssssss [ > 27%] > tests/connected_test.py ssssssssssssssssssssssssssssssssssssssssssssssss [ > 44%] > ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ > 69%] > sssssssssssssssssssssssssss [ > 79%] > tests/smp_test.py ................. [ > 85%] > tests/sspi_test.py ssss [ > 86%] > tests/tz_test.py . [ > 87%] > tests/unit_test.py ........................EEEEE.EE..E.. > [100%] > > ==================================== ERRORS > ==================================== > ___________ ERROR at setup of test_with_simple_server_req_encryption > ___________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b3c98fd0> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > _________ ERROR at setup of test_both_server_and_client_encryption_on > __________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b38df850> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > __________ ERROR at setup of test_server_has_enc_on_but_client_is_off > __________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b48bcdc0> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > _________________ ERROR at setup of test_only_login_encrypted > __________________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b3c80b50> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > ____________ ERROR at setup of test_server_encryption_not_supported > ____________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b3a7a740> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > _____________ ERROR at setup of test_server_with_bad_name_in_cert > ______________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b3e10f40> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > _____________________ ERROR at setup of test_cert_with_san > _____________________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b3b0cc10> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > ___________________ ERROR at setup of test_encrypted_socket > ____________________ > > @pytest.fixture(scope='module') > def certificate_key(): > import utils_35 as utils > from cryptography import x509 > address = ('127.0.0.1', 1434) > > test_ca = utils.TestCA() > > tests/unit_test.py:1110: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7f24b3ccf2b0> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: CertificateBuilder.add_extension() got an unexpected > keyword argument 'extension' > > tests/utils_35.py:73: TypeError > =========================== short test summary info > ============================ > ERROR tests/unit_test.py::test_with_simple_server_req_encryption - > TypeError:... > ERROR tests/unit_test.py::test_both_server_and_client_encryption_on - > TypeErr... > ERROR tests/unit_test.py::test_server_has_enc_on_but_client_is_off - > TypeErro... > ERROR tests/unit_test.py::test_only_login_encrypted - TypeError: > CertificateB... > ERROR tests/unit_test.py::test_server_encryption_not_supported - TypeError: > C... > ERROR tests/unit_test.py::test_server_with_bad_name_in_cert - TypeError: > Cert... > ERROR tests/unit_test.py::test_cert_with_san - TypeError: > CertificateBuilder.... > ERROR tests/unit_test.py::test_encrypted_socket - TypeError: > CertificateBuild... > ================== 47 passed, 230 skipped, 8 errors in 1.52s > =================== > E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tds/build; python3.10 -m pytest tests > I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build; > python3.9 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 > rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini > collected 285 items > > tests/all_test.py ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ > 18%] > sssssssssssssssssssssssss [ > 27%] > tests/connected_test.py ssssssssssssssssssssssssssssssssssssssssssssssss [ > 44%] > ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ > 69%] > sssssssssssssssssssssssssss [ > 79%] > tests/smp_test.py ................. [ > 85%] > tests/sspi_test.py ssss [ > 86%] > tests/tz_test.py . [ > 87%] > tests/unit_test.py ........................EEEEE.EE..E.. > [100%] > > ==================================== ERRORS > ==================================== > ___________ ERROR at setup of test_with_simple_server_req_encryption > ___________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22fc69f70> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > _________ ERROR at setup of test_both_server_and_client_encryption_on > __________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22fa2c7c0> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > __________ ERROR at setup of test_server_has_enc_on_but_client_is_off > __________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22f7af580> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > _________________ ERROR at setup of test_only_login_encrypted > __________________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22f7ab070> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > ____________ ERROR at setup of test_server_encryption_not_supported > ____________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22fc45f40> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > _____________ ERROR at setup of test_server_with_bad_name_in_cert > ______________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22f7aa040> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > _____________________ ERROR at setup of test_cert_with_san > _____________________ > > @pytest.fixture > def test_ca(): > if sys.version_info[0:2] < (3, 6): > pytest.skip('only works on Python 3.6 and newer') > import utils_35 as utils > > return utils.TestCA() > > tests/unit_test.py:1131: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22fa10940> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > ___________________ ERROR at setup of test_encrypted_socket > ____________________ > > @pytest.fixture(scope='module') > def certificate_key(): > import utils_35 as utils > from cryptography import x509 > address = ('127.0.0.1', 1434) > > test_ca = utils.TestCA() > > tests/unit_test.py:1110: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > tests/utils_35.py:21: in __init__ > self._root_ca = generate_root_certificate(self._root_key) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > private_key = <cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey object > at 0x7ff22f9f6b50> > > def generate_root_certificate(private_key: rsa.RSAPrivateKey) -> > x509.Certificate: > backend = cryptography.hazmat.backends.default_backend() > subject = x509.Name( > [x509.NameAttribute( > x509.oid.NameOID.COMMON_NAME, 'root' > )] > ) > builder = x509.CertificateBuilder() > > return builder.subject_name(subject).issuer_name(subject) \ > .not_valid_before(datetime.datetime.utcnow()) \ > .not_valid_after(datetime.datetime.utcnow() + > datetime.timedelta(days=1)) \ > .serial_number(1) \ > .public_key(private_key.public_key()) \ > .add_extension(extension=x509.BasicConstraints(ca=True, > path_length=1), critical=True) \ > .add_extension(extension=x509.KeyUsage(digital_signature=False, > content_commitment=False, > key_encipherment=False, > data_encipherment=False, > key_agreement=False, > key_cert_sign=True, > crl_sign=True, > encipher_only=False, > decipher_only=False, > ), critical=True) \ > .sign(private_key=private_key, algorithm=hashes.SHA256(), > backend=backend) > E TypeError: add_extension() got an unexpected keyword argument > 'extension' > > tests/utils_35.py:73: TypeError > =========================== short test summary info > ============================ > ERROR tests/unit_test.py::test_with_simple_server_req_encryption - > TypeError:... > ERROR tests/unit_test.py::test_both_server_and_client_encryption_on - > TypeErr... > ERROR tests/unit_test.py::test_server_has_enc_on_but_client_is_off - > TypeErro... > ERROR tests/unit_test.py::test_only_login_encrypted - TypeError: > add_extensio... > ERROR tests/unit_test.py::test_server_encryption_not_supported - TypeError: > a... > ERROR tests/unit_test.py::test_server_with_bad_name_in_cert - TypeError: > add_... > ERROR tests/unit_test.py::test_cert_with_san - TypeError: add_extension() > got... > ERROR tests/unit_test.py::test_encrypted_socket - TypeError: add_extension() > ... > ================== 47 passed, 230 skipped, 8 errors in 1.55s > =================== > E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_tds/build; python3.9 -m pytest tests > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 > 3.9" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2021/12/20/pytds_1.10.0-1_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please marking it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.