Blame SOURCES/grpc-1.40.0-python-grpcio_tests-make-network-tests-skippable.patch

cd4c38
diff -Naur grpc-1.40.0-original/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py grpc-1.40.0/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py
cd4c38
--- grpc-1.40.0-original/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py	2021-09-03 19:20:52.000000000 -0400
cd4c38
+++ grpc-1.40.0/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py	2021-09-09 10:55:12.919416808 -0400
cd4c38
@@ -14,6 +14,7 @@
cd4c38
 """Tests for an actual dns resolution."""
cd4c38
 
cd4c38
 import logging
cd4c38
+import os
cd4c38
 import unittest
cd4c38
 
cd4c38
 import grpc
cd4c38
@@ -46,6 +47,8 @@
cd4c38
     def tearDown(self):
cd4c38
         self._server.stop(None)
cd4c38
 
cd4c38
+    @unittest.skipIf('FEDORA_NO_NETWORK_TESTS' in os.environ,
cd4c38
+                     'Network tests disabled')
cd4c38
     def test_connect_loopback(self):
cd4c38
         # NOTE(https://github.com/grpc/grpc/issues/18422)
cd4c38
         # In short, Gevent + C-Ares = Segfault. The C-Ares driver is not