From 00d20bb70a6aaf64154659d7ace5d442a59d8064 Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Tue, 9 Jun 2020 10:56:34 -0700 Subject: [PATCH] Use self.fail --- .../grpcio_tests/tests_py3_only/unit/_simple_stubs_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/grpcio_tests/tests_py3_only/unit/_simple_stubs_test.py b/src/python/grpcio_tests/tests_py3_only/unit/_simple_stubs_test.py index f7a80081fce..dc6a047f641 100644 --- a/src/python/grpcio_tests/tests_py3_only/unit/_simple_stubs_test.py +++ b/src/python/grpcio_tests/tests_py3_only/unit/_simple_stubs_test.py @@ -337,7 +337,7 @@ class SimpleStubsTest(unittest.TestCase): grpc.ChannelConnectivity.CONNECTING): pass else: - raise AssertionError("Encountered unknown state.") + self.fail("Encountered unknown state.") channel.subscribe(_on_connectivity_changed)