summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-06-20 23:52:08 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-06-20 23:52:08 +0000
commita9344e6b3f6931048a4d2680473a3f27d43bada8 (patch)
tree17202b35ea019c9c3a9d92a8425df1ac050de0dd
parentc4f6059dfe85bb4838d64ab3494421c14b86a8f8 (diff)
Don't assume that we can guess the canonical name of localhost
-rwxr-xr-xlib/zephyr_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zephyr_tests.py b/lib/zephyr_tests.py
index b4134ee..82983e9 100755
--- a/lib/zephyr_tests.py
+++ b/lib/zephyr_tests.py
@@ -583,7 +583,7 @@ class ZephyrTestSuite(TestSuite):
assert self._libzephyr.ZExpandRealm("bitsy.mit.edu") == "ATHENA.MIT.EDU"
else:
assert self._libzephyr.ZExpandRealm("") == ""
- assert self._libzephyr.ZExpandRealm("localhost") == "LOCALHOST"
+ assert self._libzephyr.ZExpandRealm("localhost") == socket.getfqdn("localhost").upper()
assert self._libzephyr.ZExpandRealm("bitsy.mit.edu") == "BITSY.MIT.EDU"
def find_buildpath():