Use custom assertions

pull/17119/head
Richard Belleville 6 years ago
parent 056a1a8ea4
commit 3c0c4fc1fd
  1. 3
      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__':

Loading…
Cancel
Save