Commit f969ebef authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] use assertTrue+isinstance instead of assertIsInstance.

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.
parent 552cbb67
......@@ -533,7 +533,7 @@ class TestSecureHTTPServer(unittest.TestCase):
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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment