[Pyunit-interest] PyUnit / jython
Brought to you by:
purcell
From: Sebastien B. <Seb...@al...> - 2003-01-22 04:12:52
|
Hello ! I'm just beginning with PyUnit and I'm using it with Jython (2.x). I actually don't know if my pb is specifically linked to the fact that I'm using jython. I can launch the following: %JAVA_HOME%/java %ACTIVATION% -classpath %CP% -Djava.security.policy=%JBOSS_HOME%/client/client.policy -Djava.security.manager -Dpython.home=%JYTHON_HOME% org.python.util.jython %JYTHON_LIB%/unittest.py TestGemClient.GemClientTestCase with success when the TestGemClient.py file is in the current directory where I launch this script, yet when I now have the py test file in another directory I then get the following error: Traceback (innermost last): File "unittest.py", line 712, in ? File "unittest.py", line 663, in __init__ File "unittest.py", line 691, in parseArgs File "unittest.py", line 695, in createTests File "unittest.py", line 458, in loadTestsFromNames File "unittest.py", line 425, in loadTestsFromName ImportError: no module named TestGemClient as if jython could not find my py file, though it is in the CP classpath variable (no doubt on that). thank you for help. seb. ___________________________ just for info I got another pb: using the sys.path.insert(0,'C:\data\jython-2.0\lib') instruction that did not work for me: Traceback (innermost last): (no code object) at line 0 IOError: File not found - unittest.py (The system cannot find the file specified) it was fixed by using a %JYTHON_LIB%/unittest.py path instead of direct unittest.py in the startup script. I'm on WIN2K with latest PyUnit release. |