[Python-checkins] python/dist/src/Lib/test test_socket.py,1.35,1.36

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 13 Jun 2002 09:54:40 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv12055

Modified Files:
	test_socket.py 
Log Message:
Comment out testHostnameRes() -- it depends on a correctly working
DNS, and we can't assume that.


Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** test_socket.py	13 Jun 2002 16:07:03 -0000	1.35
--- test_socket.py	13 Jun 2002 16:54:38 -0000	1.36
***************
*** 208,221 ****
                  pass
  
!     def testHostnameRes(self):
!         """Testing hostname resolution mechanisms."""
!         hostname = socket.gethostname()
!         ip = socket.gethostbyname(hostname)
!         self.assert_(ip.find('.') >= 0, "Error resolving host to ip.")
!         hname, aliases, ipaddrs = socket.gethostbyaddr(ip)
!         all_host_names = [hname] + aliases
!         fqhn = socket.getfqdn()
!         if not fqhn in all_host_names:
!             self.fail("Error testing host resolution mechanisms.")
  
      def testRefCountGetNameInfo(self):
--- 208,221 ----
                  pass
  
! ##    def testHostnameRes(self):
! ##        """Testing hostname resolution mechanisms."""
! ##        hostname = socket.gethostname()
! ##        ip = socket.gethostbyname(hostname)
! ##        self.assert_(ip.find('.') >= 0, "Error resolving host to ip.")
! ##        hname, aliases, ipaddrs = socket.gethostbyaddr(ip)
! ##        all_host_names = [hname] + aliases
! ##        fqhn = socket.getfqdn()
! ##        if not fqhn in all_host_names:
! ##            self.fail("Error testing host resolution mechanisms.")
  
      def testRefCountGetNameInfo(self):