Maybe I should take the test out. The documentation of the localIP function says to call it with remote= some website that it can connect to. Then it works 100%. If you don't want the function to contact another machine though, you can say remote=None, and it will do a version that is not guaranteed to work 100% of the time. So for developing, it was interesting to them to see how it worked. But for the purpose of our automated tests, maybe it is just confusing. I presume that anybody who uses that function with remote=None is expecting it to fail sometimes so they would know. If nobody objects in a few days, I will remove that test.
-winston
On Jan 19, 2005, at 11:00 PM, Mark Phillips wrote:
On Jan 13, 2005, at 8:41 AM, Winston Wolff wrote:_________________________________________
I've just checked in my automated tests. There are 53 tests in MiscUtils, PSP, WebUtils, and TaskKit. I would appreciate it if a few people ran the tests on some other platforms and report any problems to me, before I move on to the more challenging kits.
I just performed a cvs check out to a clean system. Installed Webware as root on MacOS Xserve 10.3.7. I ran the AllTests.py. Here is the result:
agua:/usr/local/Webware root# python AllTests.py
....................................E.................
======================================================================
ERROR: testLocalIP (MiscUtils.Testing.TestFuncs.TestFuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "MiscUtils/Testing/TestFuncs.py", line 58, in testLocalIP
assert localIP(remote=None, useCache=None)==ip, 'See if this works: localIP(remote=None). If this fails, dont worry.'
File "MiscUtils/Funcs.py", line 187, in localIP
addresses = socket.gethostbyname_ex(socket.gethostname())[2]
gaierror: (7, 'No address associated with nodename')
----------------------------------------------------------------------
Ran 54 tests in 16.825s
FAILED (errors=1)
So, per the comment I am not worried. However, I would like to know why this failed.
Mark Phillips
Mophilly & Associates
On the web at http://www.mophilly.com
On the phone at 619 444-9210
winston wolff - (646) 827-2242 - http://www.stratolab.com - learning by creating
