From 18cc5f5dbe7247b46cb2f13ede5f9e5d0f50dfad Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Thu, 1 Nov 2018 13:29:28 -0700 Subject: [PATCH] Use custom assertions --- src/python/grpcio_tests/tests/unit/_logging_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/python/grpcio_tests/tests/unit/_logging_test.py b/src/python/grpcio_tests/tests/unit/_logging_test.py index d1384effde9..80b1f1b3c12 100644 --- a/src/python/grpcio_tests/tests/unit/_logging_test.py +++ b/src/python/grpcio_tests/tests/unit/_logging_test.py @@ -66,8 +66,7 @@ class LoggingTest(unittest.TestCase): intended_stream = six.StringIO() logging.basicConfig(stream=intended_stream) self.assertEqual(1, len(logging.getLogger().handlers)) - self.assertTrue( - logging.getLogger().handlers[0].stream is intended_stream) + self.assertIs(logging.getLogger().handlers[0].stream, intended_stream) if __name__ == '__main__':