mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	fromfd exists on Windows now
This commit is contained in:
		
							parent
							
								
									2d444496b3
								
							
						
					
					
						commit
						06a3c8ae82
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -708,8 +708,6 @@ def _testSendAll(self):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def testFromFd(self):
 | 
					    def testFromFd(self):
 | 
				
			||||||
        # Testing fromfd()
 | 
					        # Testing fromfd()
 | 
				
			||||||
        if not hasattr(socket, "fromfd"):
 | 
					 | 
				
			||||||
            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)
 | 
				
			||||||
        msg = sock.recv(1024)
 | 
					        msg = sock.recv(1024)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue