Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb3d5e commit 8e95ca8Copy full SHA for 8e95ca8
1 file changed
Lib/test/test_socket.py
@@ -323,7 +323,7 @@ def _testSendAll(self):
323
324
def testFromFd(self):
325
"""Testing fromfd()."""
326
- if not hasattr(socket, fromfd):
+ if not hasattr(socket, "fromfd"):
327
return # On Windows, this doesn't exist
328
fd = self.cli_conn.fileno()
329
sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
0 commit comments