Blame SOURCES/0001-Skip-unit-tests-resolving-domain-names.patch

f7cf9b
From 0212fcf778154db020e2f6dc603b93ad131fb80f Mon Sep 17 00:00:00 2001
f7cf9b
From: Alfredo Moralejo <amoralej@redhat.com>
f7cf9b
Date: Thu, 29 Jul 2021 10:25:02 +0200
f7cf9b
Subject: [PATCH] Skip unit tests resolving domain names
f7cf9b
f7cf9b
As per [1].
f7cf9b
f7cf9b
[1] https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds#Disable_domain_name_resolution
f7cf9b
---
f7cf9b
 pymemcache/test/test_client.py | 3 +++
f7cf9b
 1 file changed, 3 insertions(+)
f7cf9b
f7cf9b
diff --git a/pymemcache/test/test_client.py b/pymemcache/test/test_client.py
f7cf9b
index 8b323de..6094acb 100644
f7cf9b
--- a/pymemcache/test/test_client.py
f7cf9b
+++ b/pymemcache/test/test_client.py
f7cf9b
@@ -1273,6 +1273,7 @@ class TestClientSocketConnect(unittest.TestCase):
f7cf9b
                 socket_module=MockSocketModule(),
f7cf9b
                 socket_keepalive=KeepaliveOpts())
f7cf9b
 
f7cf9b
+    @pytest.mark.skip(reason="Cannot resolve domain names in Koji")
f7cf9b
     def test_socket_connect_closes_on_failure(self):
f7cf9b
         server = ("example.com", 11211)
f7cf9b
 
f7cf9b
@@ -1284,6 +1285,7 @@ class TestClientSocketConnect(unittest.TestCase):
f7cf9b
         assert socket_module.sockets[0].connections == []
f7cf9b
         assert socket_module.sockets[0].closed
f7cf9b
 
f7cf9b
+    @pytest.mark.skip(reason="Cannot resolve domain names in Koji")
f7cf9b
     def test_socket_close(self):
f7cf9b
         server = ("example.com", 11211)
f7cf9b
 
f7cf9b
@@ -1294,6 +1296,7 @@ class TestClientSocketConnect(unittest.TestCase):
f7cf9b
         client.close()
f7cf9b
         assert client.sock is None
f7cf9b
 
f7cf9b
+    @pytest.mark.skip(reason="Cannot resolve domain names in Koji")
f7cf9b
     def test_socket_close_exception(self):
f7cf9b
         server = ("example.com", 11211)
f7cf9b
 
f7cf9b
-- 
f7cf9b
2.26.2
f7cf9b