Blame grpc-1.36.4-python-grpcio_tests-fixture-super.patch

ce88e01
diff -Naur grpc-1.36.4-original/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py grpc-1.36.4/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py
ce88e01
--- grpc-1.36.4-original/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py	2021-03-17 15:59:05.000000000 -0400
ce88e01
+++ grpc-1.36.4/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py	2021-03-22 16:39:05.558398948 -0400
ce88e01
@@ -234,9 +234,7 @@
ce88e01
 
ce88e01
     def setUp(self):
ce88e01
         self._thread_pool = thread_pool.RecordingThreadPool(max_workers=None)
ce88e01
-        super(HealthServicerTest,
ce88e01
-              self).start_server(non_blocking=True,
ce88e01
-                                 thread_pool=self._thread_pool)
ce88e01
+        super().start_server(non_blocking=True, thread_pool=self._thread_pool)
ce88e01
 
ce88e01
     def test_check_empty_service(self):
ce88e01
         request = health_pb2.HealthCheckRequest()
ce88e01
@@ -273,8 +271,7 @@
ce88e01
 class HealthServicerBackwardsCompatibleWatchTest(BaseWatchTests.WatchTests):
ce88e01
 
ce88e01
     def setUp(self):
ce88e01
-        super(HealthServicerBackwardsCompatibleWatchTest,
ce88e01
-              self).start_server(non_blocking=False, thread_pool=None)
ce88e01
+        super().start_server(non_blocking=False, thread_pool=None)
ce88e01
 
ce88e01
 
ce88e01
 if __name__ == '__main__':
ce88e01
diff -Naur grpc-1.36.4-original/src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py grpc-1.36.4/src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py
ce88e01
--- grpc-1.36.4-original/src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py	2021-03-17 15:59:05.000000000 -0400
ce88e01
+++ grpc-1.36.4/src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py	2021-03-22 16:39:05.559398954 -0400
ce88e01
@@ -532,7 +532,7 @@
ce88e01
                 request_iterator, context)
ce88e01
 
ce88e01
     def setUp(self):
ce88e01
-        super(SimpleStubsPluginTest, self).setUp()
ce88e01
+        super().setUp()
ce88e01
         self._server = test_common.test_server()
ce88e01
         service_pb2_grpc.add_TestServiceServicer_to_server(
ce88e01
             self.Servicer(), self._server)
ce88e01
@@ -542,7 +542,7 @@
ce88e01
 
ce88e01
     def tearDown(self):
ce88e01
         self._server.stop(None)
ce88e01
-        super(SimpleStubsPluginTest, self).tearDown()
ce88e01
+        super().tearDown()
ce88e01
 
ce88e01
     def testUnaryCall(self):
ce88e01
         request = request_pb2.SimpleRequest(response_size=13)