Argh.  Typo. :-(
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 39d3130..5a569a1 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -323,7 +323,7 @@
 
     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)