diff options
author | Richard Belleville <rbellevi@google.com> | 2018-11-01 13:29:28 -0700 |
---|---|---|
committer | Richard Belleville <rbellevi@google.com> | 2018-11-01 13:29:28 -0700 |
commit | 18cc5f5dbe7247b46cb2f13ede5f9e5d0f50dfad (patch) | |
tree | 29744d3abf8fe2dc9f28beb454e773ae0729d2c0 /src/python | |
parent | cf624a98e6a3e0f54c1028eb2db4a2f91f86a924 (diff) |
Use custom assertions
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/grpcio_tests/tests/unit/_logging_test.py | 3 |
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__': |