

def setUp(self):
    super(GitTest, self).setUp()
    self.__domain = 'github.com'
    try:
        if hasattr(socket, 'setdefaulttimeout'):
            socket.setdefaulttimeout(10)
        socket.gethostbyname(self.__domain)
    except socket.error:
        msg = 'error resolving {0}, possible network issue?'
        self.skipTest(msg.format(self.__domain))

dataset/ETHPy150Open saltstack/salt/tests/integration/states/git.py GitTest.setUp/original