Blob Blame History Raw
From 0212fcf778154db020e2f6dc603b93ad131fb80f Mon Sep 17 00:00:00 2001
From: Alfredo Moralejo <amoralej@redhat.com>
Date: Thu, 29 Jul 2021 10:25:02 +0200
Subject: [PATCH] Skip unit tests resolving domain names

As per [1].

[1] https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds#Disable_domain_name_resolution
---
 pymemcache/test/test_client.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pymemcache/test/test_client.py b/pymemcache/test/test_client.py
index 8b323de..6094acb 100644
--- a/pymemcache/test/test_client.py
+++ b/pymemcache/test/test_client.py
@@ -1273,6 +1273,7 @@ class TestClientSocketConnect(unittest.TestCase):
                 socket_module=MockSocketModule(),
                 socket_keepalive=KeepaliveOpts())
 
+    @pytest.mark.skip(reason="Cannot resolve domain names in Koji")
     def test_socket_connect_closes_on_failure(self):
         server = ("example.com", 11211)
 
@@ -1284,6 +1285,7 @@ class TestClientSocketConnect(unittest.TestCase):
         assert socket_module.sockets[0].connections == []
         assert socket_module.sockets[0].closed
 
+    @pytest.mark.skip(reason="Cannot resolve domain names in Koji")
     def test_socket_close(self):
         server = ("example.com", 11211)
 
@@ -1294,6 +1296,7 @@ class TestClientSocketConnect(unittest.TestCase):
         client.close()
         assert client.sock is None
 
+    @pytest.mark.skip(reason="Cannot resolve domain names in Koji")
     def test_socket_close_exception(self):
         server = ("example.com", 11211)
 
-- 
2.26.2