]> granicus.if.org Git - python/commitdiff
Argh. Typo. :-(
authorGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 20:55:17 +0000 (20:55 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 20:55:17 +0000 (20:55 +0000)
Lib/test/test_socket.py

index 39d3130c8a0f40d83e22eef2326d6a3a510b2cfc..5a569a1cf74b1d9741da4c566067b74904b139a1 100644 (file)
@@ -323,7 +323,7 @@ class BasicTCPTest(SocketConnectedTest):
 
     def testFromFd(self):
         """Testing fromfd()."""
-        if not hasattr(socket, 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)