From: Brian Warner Date: Mon, 16 Apr 2007 22:05:25 +0000 (-0700) Subject: test_iputil: improve error message X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~97 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css?a=commitdiff_plain;h=88a7fdcaab314f627e92acf8a25a94a74718aa31;p=tahoe-lafs%2Ftahoe-lafs.git test_iputil: improve error message --- diff --git a/src/allmydata/test/test_iputil.py b/src/allmydata/test/test_iputil.py index 79f06752..e4e524fa 100644 --- a/src/allmydata/test/test_iputil.py +++ b/src/allmydata/test/test_iputil.py @@ -7,7 +7,8 @@ class ListAddresses(unittest.TestCase): d = iputil.get_local_addresses_async() def _check(addresses): self.failUnless(len(addresses) >= 1) # always have localhost - self.failUnless("127.0.0.1" in addresses) + self.failUnless("127.0.0.1" in addresses, + "didn't see 127.0.0.1 in %s" % (addresses,)) d.addCallbacks(_check) return d