From: Guido van Rossum Date: Wed, 12 Jun 2002 20:55:17 +0000 (+0000) Subject: Argh. Typo. :-( X-Git-Tag: v2.3c1~5364 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e95ca85aef68e1e7ebedbc6ac66c49ffd21d568;p=thirdparty%2FPython%2Fcpython.git Argh. Typo. :-( --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 39d3130c8a0f..5a569a1cf74b 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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)