mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Argh. Typo. :-(
This commit is contained in:
parent
6fb3d5ee92
commit
8e95ca85ae
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ class BasicTCPTest(SocketConnectedTest):
|
||||||
|
|
||||||
def testFromFd(self):
|
def testFromFd(self):
|
||||||
"""Testing fromfd()."""
|
"""Testing fromfd()."""
|
||||||
if not hasattr(socket, fromfd):
|
if not hasattr(socket, "fromfd"):
|
||||||
return # On Windows, this doesn't exist
|
return # On Windows, this doesn't exist
|
||||||
fd = self.cli_conn.fileno()
|
fd = self.cli_conn.fileno()
|
||||||
sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue