grpc/grpc-1.36.4-python-grpcio_tests-make-network-tests-skippable.patch

21 lines
898 B
Diff
Raw Normal View History

diff -Naur grpc-1.36.4-original/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py grpc-1.36.4/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py
--- grpc-1.36.4-original/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py 2021-03-17 15:59:05.000000000 -0400
+++ grpc-1.36.4/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py 2021-03-22 16:43:35.697100185 -0400
@@ -13,6 +13,7 @@
# limitations under the License.
"""Tests for an actual dns resolution."""
+import os
import unittest
import logging
import six
@@ -45,6 +46,8 @@
def tearDown(self):
self._server.stop(None)
+ @unittest.skipIf('FEDORA_NO_NETWORK_TESTS' in os.environ,
+ 'Network tests disabled')
def test_connect_loopback(self):
# NOTE(https://github.com/grpc/grpc/issues/18422)
# In short, Gevent + C-Ares = Segfault. The C-Ares driver is not