Thanks for writing the bug report. This problem should have taken been care of by sni-test-race.patch, which draws from https://gitlab.com/m2crypto/m2crypto/merge_requests/141
Unfortunately, not even bumping the timeout using $M2CRYPTO_TEST_SSL_SLEEP makes this disappear. I'm in contact with upstream, we're working something out. DS On 11/13/2017 10:25 PM, Adrian Bunk wrote: > Source: m2crypto > Version: 0.27.0-3 > Severity: serious > > https://buildd.debian.org/status/fetch.php?pkg=m2crypto&arch=ppc64el&ver=0.27.0-3&stamp=1510582782&raw=0 > > ... > =================================== FAILURES > =================================== > __________ HttpslibSSLClientTestCase.test_HTTPSConnection_SNI_support > __________ > > self = <tests.test_ssl.HttpslibSSLClientTestCase > testMethod=test_HTTPSConnection_SNI_support> > > def test_HTTPSConnection_SNI_support(self): > args = ['s_server', '-servername', srv_host, '-debug', '-www', > '-cert', 'server.pem', '-key', 'server_key.pem', > '-cert2', 'server.pem', '-key2', 'server_key.pem', > '-accept', str(self.srv_port)] > pid = self.start_server(args) > try: > ctx = SSL.Context() > c = httpslib.HTTPSConnection(srv_host, self.srv_port, > ssl_context=ctx) > c.request('GET', '/') > c.close() > finally: > time.sleep(sleepTime) > out, err = self.stop_server(pid) >> self.assertIn('Hostname in TLS extension: "%s"' % srv_host, out) > E AssertionError: 'Hostname in TLS extension: "localhost"' not found in > 'Setting secondary ctx parameters\nUsing default temp DH parameters\nACCEPT\n' > > tests/test_ssl.py:256: AssertionError > =============================== warnings summary > =============================== > tests/test_bn.py::BNTestCase::test_randfname > /<<PKGBUILDDIR>>/tests/test_bn.py:71: DeprecationWarning: Don't use > BN.randfname(), use tempfile methods instead. > r = BN.randfname(8) > > tests/test_pgp.py::PGPTestCase::test_simple > /<<PKGBUILDDIR>>/M2Crypto/PGP/PublicKeyRing.py:22: DeprecationWarning: > Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto > maintainer. > DeprecationWarning) > /<<PKGBUILDDIR>>/M2Crypto/PGP/packet.py:48: DeprecationWarning: Deprecated. > No maintainer for PGP. If you use this, please inform M2Crypto maintainer. > DeprecationWarning) > /<<PKGBUILDDIR>>/M2Crypto/PGP/PublicKey.py:21: DeprecationWarning: > Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto > maintainer. > DeprecationWarning) > /<<PKGBUILDDIR>>/M2Crypto/PGP/RSA.py:23: DeprecationWarning: Deprecated. No > maintainer for PGP. If you use this, please inform M2Crypto maintainer. > warnings.warn('Deprecated. No maintainer for PGP. If you use this, please > inform M2Crypto maintainer.', DeprecationWarning) > > tests/test_rand.py::RandTestCase::test_pseudo_bytes > /<<PKGBUILDDIR>>/M2Crypto/Rand.py:145: DeprecationWarning: The underlying > OpenSSL method has been deprecated. Use Rand.rand_bytes instead. > DeprecationWarning) > > tests/test_ssl.py::MiscSSLClientTestCase::test_tls1_nok > /<<PKGBUILDDIR>>/M2Crypto/SSL/Context.py:64: DeprecationWarning: Function > TLSv1_method has been deprecated. > self.ctx = m2.ssl_ctx_new(proto()) > > tests/test_ssl.py::MiscSSLClientTestCase::test_verify_cb_old > /<<PKGBUILDDIR>>/M2Crypto/SSL/Connection.py:288: DeprecationWarning: Old > style callback, use cb_func(ok, store) instead > return m2.ssl_connect(self.ssl, self._timeout) > > tests/test_ssl.py::TwistedSSLClientTestCase::test_twisted_wrapper > /<<PKGBUILDDIR>>/tests/test_ssl.py:1010: UserWarning: Skipping twisted > wrapper test because twisted not found > 'Skipping twisted wrapper test because twisted not found') > > -- Docs: http://doc.pytest.org/en/latest/warnings.html > ========= 1 failed, 273 passed, 1 skipped, 9 warnings in 82.52 seconds > ========= > E: pybuild pybuild:283: test: plugin custom failed with: exit code=1: > python2.7 -Wd -m pytest -v -rs > dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned > exit code 13 > debian/rules:18: recipe for target 'override_dh_auto_test' failed > make[1]: *** [override_dh_auto_test] Error 25 > > -- 4096R/DF5182C8 (sten...@debian.org) http://www.danielstender.com/