[Python-checkins] python/dist/src/Lib/test test_socket.py,1.27,1.28

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Wed, 12 Jun 2002 13:49:01 -0700


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

Modified Files:
	test_socket.py 
Log Message:
Allow absent fromfd(), for Windows.


Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** test_socket.py	12 Jun 2002 20:46:49 -0000	1.27
--- test_socket.py	12 Jun 2002 20:48:59 -0000	1.28
***************
*** 324,327 ****
--- 324,329 ----
      def testFromFd(self):
          """Testing fromfd()."""
+         if not hasattr(socket, fromfd):
+             return # On Windows, this doesn't exist
          fd = self.cli_conn.fileno()
          sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)