Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e95ca8

Browse files
committed
Argh. Typo. :-(
1 parent 6fb3d5e commit 8e95ca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def _testSendAll(self):
323323

324324
def testFromFd(self):
325325
"""Testing fromfd()."""
326-
if not hasattr(socket, fromfd):
326+
if not hasattr(socket, "fromfd"):
327327
return # On Windows, this doesn't exist
328328
fd = self.cli_conn.fileno()
329329
sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)

0 commit comments

Comments
 (0)