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

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