the latter is relatively new and doesn't work for all of our supported
python versions. will fix a buildbot report. committing at my discretion.
ssl_sock = self.server._wrap_socket_in_ssl_context(sock1,
BUILD_FILE_PATH + 'cmdctl-keyfile.pem',
BUILD_FILE_PATH + 'cmdctl-certfile.pem')
- self.assertIsInstance(ssl_sock, ssl.SSLSocket)
+ self.assertTrue(isinstance(ssl_sock, ssl.SSLSocket))
# wrap_socket can also raise IOError, which should be caught and
# handled like the other errors.