Browse Source

[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.
JINMEI Tatuya 12 years ago
parent
commit
f969ebef7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/cmdctl/tests/cmdctl_test.py

+ 1 - 1
src/bin/cmdctl/tests/cmdctl_test.py

@@ -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.