Revert "Tests: Use IP address instead of hostname with taskd"

Going back to using "localhost". Using the IP address causes GNUTLS
handshake errors in GnuTLS <= 3.2.18

This reverts commit 233d97fbff.
This commit is contained in:
Renato Alves 2015-04-26 18:13:20 +01:00
parent 931afb0674
commit e60ea2e07a
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ class Taskd(object):
TASKD_NOT_LISTENING = 3
def __init__(self, taskd=DEFAULT_TASKD, certpath=None,
address="127.0.0.1"):
address="localhost"):
"""Initialize a Task server that runs in the background and stores data
in a temporary folder

View file

@ -279,7 +279,7 @@ def get_IPs(hostname):
return output
def port_used(addr="127.0.0.1", port=None):
def port_used(addr="localhost", port=None):
"Return True if port is in use, False otherwise"
if port is None:
raise TypeError("Argument 'port' may not be None")
@ -304,7 +304,7 @@ def port_used(addr="127.0.0.1", port=None):
return False
def find_unused_port(addr="127.0.0.1", start=53589, track=True):
def find_unused_port(addr="localhost", start=53589, track=True):
"""Find an unused port starting at `start` port
If track=False the returned port will not be marked as in-use and the code