aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Richard Belleville <rbellevi@google.com>2018-11-01 13:29:28 -0700
committerGravatar Richard Belleville <rbellevi@google.com>2018-11-01 13:29:28 -0700
commit18cc5f5dbe7247b46cb2f13ede5f9e5d0f50dfad (patch)
tree29744d3abf8fe2dc9f28beb454e773ae0729d2c0
parentcf624a98e6a3e0f54c1028eb2db4a2f91f86a924 (diff)
Use custom assertions
-rw-r--r--src/python/grpcio_tests/tests/unit/_logging_test.py3
1 files changed, 1 insertions, 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 d1384effde..80b1f1b3c1 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__':