Source: m2crypto
Version: 0.37.1-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=m2crypto&arch=amd64&ver=0.37.1-1&stamp=1610432018&raw=0

...
I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build; 
python3.9 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.9.1+, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /<<PKGBUILDDIR>>
collected 374 items

tests/test_aes.py ....                                                   [  1%]
tests/test_asn1.py ........                                              [  3%]
tests/test_authcookie.py ...................                             [  8%]
tests/test_bio.py ...................................                    [ 17%]
tests/test_bio_file.py .......                                           [ 19%]
tests/test_bio_iobuf.py ........                                         [ 21%]
tests/test_bio_membuf.py ..........                                      [ 24%]
tests/test_bio_ssl.py .......                                            [ 26%]
tests/test_bn.py ...                                                     [ 27%]
tests/test_dh.py ......                                                  [ 28%]
tests/test_dsa.py ...........                                            [ 31%]
tests/test_ec_curves.py ..                                               [ 32%]
tests/test_ecdh.py ...                                                   [ 32%]
tests/test_ecdsa.py .......                                              [ 34%]
tests/test_engine.py ......                                              [ 36%]
tests/test_err.py .                                                      [ 36%]
tests/test_evp.py ...................................................... [ 51%]
........                                                                 [ 53%]
tests/test_obj.py ......                                                 [ 54%]
tests/test_rand.py ......                                                [ 56%]
tests/test_rc4.py ..                                                     [ 56%]
tests/test_rsa.py ..........................                             [ 63%]
tests/test_smime.py .....................                                [ 69%]
tests/test_ssl.py ...s..F..F.FFFF..FFFFFFFFFFFFFFF.FFFFF.FFs.........F.. [ 83%]
...                                                                      [ 84%]
tests/test_ssl_offline.py .....                                          [ 86%]
tests/test_threading.py ..                                               [ 86%]
tests/test_timeout.py ...............                                    [ 90%]
tests/test_util.py ........                                              [ 92%]
tests/test_x509.py ...........................                           [100%]

=================================== FAILURES ===================================
__________________ HttpslibSSLSNIClientTestCase.test_IP_call ___________________

self = <tests.test_ssl.HttpslibSSLSNIClientTestCase testMethod=test_IP_call>

    def test_IP_call(self):
        no_exception = True
        runs_counter = 0
        pid = self.start_server(self.args)
    
        for entry in socket.getaddrinfo(self.srv_host, self.srv_port,
                                        socket.AF_INET,
                                        socket.SOCK_STREAM,
                                        socket.IPPROTO_TCP):
            ipfamily, socktype, _, _, sockaddr = entry
            ip = sockaddr[0]
    
            sock = socket.socket(ipfamily, socktype)
            conn = SSL.Connection(self.ctx, sock=sock)
            conn.set_tlsext_host_name(self.srv_host)
            conn.set1_host(self.srv_host)
    
            runs_counter += 1
            try:
                conn.connect((ip, self.srv_port))
            except (SSL.SSLError, socket.error):
                log.exception("Failed to connect to %s:%s", ip, self.srv_port)
                no_exception = False
            finally:
                conn.close()
    
        out, _ = self.stop_server(pid)
>       self.assertEqual(
            out.count('Hostname in TLS extension: "%s"' % self.srv_host),
            runs_counter)
E       AssertionError: 0 != 2

tests/test_ssl.py:306: AssertionError
...
======= 29 failed, 343 passed, 2 skipped, 5 warnings in 77.18s (0:01:17) =======
E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build; python3.9 -m pytest tests
        rm -fr -- /tmp/dh-xdg-rundir-3bUiHX0w
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
returned exit code 13
make: *** [debian/rules:17: build-arch] Error 25

Reply via email to