grpc/grpc-1.36.4-python-grpcio_tests-fixture-super.patch
Benjamin A. Beasley ce88e01640 New version 1.37.1
- General:
  * New version 1.37.1
  * Drop patches that were upstreamed since the last packaged release, were
    backported from upstream in the first place, or have otherwise been
    obsoleted by upstream changes.
  * Rebase/update remaining patches as needed
  * Drop Fedora 32 compatibility
- C (core) and C++ (cpp):
  * Switch to CMake build system and add CMake files to -devel package
  * Build with C++17 for compatibility with the abseil-cpp package in Fedora
  * Run the port server during core tests
2021-05-11 08:57:48 -04:00

46 lines
2.2 KiB
Diff

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