[svn r37317] Fixed execnet tests on Windows, for some reason it uses '0.0.0.0' as IP address if '' is given as hostname
--HG-- branch : trunk
This commit is contained in:
		
							parent
							
								
									1e7d516666
								
							
						
					
					
						commit
						039ec87c64
					
				|  | @ -145,7 +145,9 @@ class SocketGateway(InstallableGateway): | |||
|             given gateway.  | ||||
|         """  | ||||
|         if hostport is None:  | ||||
|             host, port = ('', 0)  | ||||
|             # XXX not sure about this one... is this what's intended? it used | ||||
|             # to use '' for the hostname, which breaks Windows... | ||||
|             host, port = ('127.0.0.1', 0)  | ||||
|         else:    | ||||
|             host, port = hostport  | ||||
|         socketserverbootstrap = py.code.Source( | ||||
|  | @ -161,7 +163,9 @@ class SocketGateway(InstallableGateway): | |||
|         channel = gateway.remote_exec(socketserverbootstrap) | ||||
|         hostname, (realhost, realport) = channel.receive()  | ||||
|         if not hostname: | ||||
|             realhost = hostname  | ||||
|             # XXX this is strange... shouldn't it be 'realhost = hostname' or | ||||
|             # something? | ||||
|             hostname = realhost | ||||
|         #gateway._trace("remote_install received"  | ||||
|         #              "port=%r, hostname = %r" %(realport, hostname)) | ||||
|         return py.execnet.SocketGateway(realhost, realport)  | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue