• The ^M characters are since I am using Mac OS X and my editor defaults to Unix file endings. I believe the python interpreter reads this fine, it just appears funny in your editor. Is there a file-ending convention for Webware that I should switch to?
• Regarding the test failure in
FAIL: testLocalIP (MiscUtils.Testing.TestFuncs.TestFuncs)
I looked at the code for localIP(), and there is one assertion that is expected to fail on some machines depending on the network configuration (VPN, NAT, etc). So I added a note explaining that if it fails, don't worry.
• I modified AllTests.py so if it cannot load one test module, it emits an error message and continues with the other.
From this one data point, things seem to be mostly working. There only remains the PSP tests that haven't been run on another computer.
-winston
On Jan 15, 2005, at 2:32 AM, Choe, Cheng-Dae wrote:
_________________________________________The problem is probably with Webware/PSP/Tests/CompileTest.py andYes the CompileTest.py are checkouted.
PSPUtilsTest.py. On my test checkout, these files don't get updated.
I am guessing it's another SourceForge CVS problem. Can you check
these things:
* Did CVS check those two files out on your machine?
But it seems strang to me. when edit with vi
"""^M Automated tests for PSP Kit^M ^M
--------------------------------------------------------------------------------^M
(c)
Copyright by Winston Wolff, 2004 http://www.stratolab.com^M ^M
Permission to use, copy, modify, and distribute this software and it
...
[snip]
it has no newline character. ^^;
so I change ^M char to CRLF and run.CompileTest.py says
$ python PSP/Tests/CompileTest.py
Traceback (most recent call last):
File "PSP/Tests/CompileTest.py", line 26, in ?
from PSP import Context, PSPCompiler
ImportError: No module named PSP
* Comment out those two files in AllTests.py and run again. This willIt' make an error like below
at least run the other tests. Let me know what happens.
[snip]
testWordWrap (MiscUtils.Testing.TestFuncs.TestFuncs) ... ok
testNormalizeIndentation (PSP.Tests.PSPUtilsTest.PSPUtilsTest) ... ok
testSplitLines (PSP.Tests.PSPUtilsTest.PSPUtilsTest) ... ok
======================================================================
FAIL: testLocalIP (MiscUtils.Testing.TestFuncs.TestFuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/whitekid/Webware/MiscUtils/Testing/TestFuncs.py",
line 58, in testLocalIP
assert localIP(remote=None, useCache=None)==ip
AssertionError
----------------------------------------------------------------------
Ran 44 tests in 1.730s
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss
winston wolff - (646) 827-2242 - http://www.stratolab.com - learning by creating