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

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