def setUpClass(self): # This is really, really bad and really, really stupid. If you are # reading this and Twisted has gained support for handling # SSL.Errors without automatically logging them (causing this test # to fail), please rewrite this test to *not* call ignoreErrors # here, and instead simply not log the exception that testUnTLS # induces: # # OpenSSL.SSL.Error: [('SSL routines', 'SSL3_READ_BYTES', 'ssl handshake failure')] # # This happens because only one side of the connection is speaking # SSL in that test method, the other end is just collecting bytes # and examining them. # # Until it is possible to avoid having this error logged, we have to # rely on the asserts in the tests making sure things are going # alright. log.ignoreErrors(SSL.Error)
def setUpClass(self): log.ignoreErrors(SSL.Error)