[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

jython



bonjour,

Je cherche mais sans succes jusqu'a présent à utiliser pyUnit sous jython.
Je tourne en Debian sid avec

Jython 2.1 on java1.4.1
python2.3

Le problème est semble t'il avec le module os
Mais je pédale dans la choucroute.
Quelqu'un a t'il une expérience positive de pyUnit sous jython ?

knoppix@box:~/javaTest$ jython testUnit.py
['', '.', '/usr/share/jython/Lib', '.', '/usr/share/jython/Lib']
test1 (__main__.StringTest) ... Traceback (innermost last):
  File "testUnit.py", line 13, in ?
  File "/home/knoppix/javaTest/unittest.py", line 612, in run
  File "/home/knoppix/javaTest/unittest.py", line 345, in __call__
  File "/home/knoppix/javaTest/unittest.py", line 216, in __call__
  File "/home/knoppix/javaTest/unittest.py", line 574, in addFailure
  File "/home/knoppix/javaTest/unittest.py", line 96, in addFailure
  File "/home/knoppix/javaTest/unittest.py", line 112, in _exc_info_to_string
  File "/home/knoppix/javaTest/traceback.py", line 140, in format_exception
  File "/home/knoppix/javaTest/traceback.py", line 75, in format_tb
  File "/home/knoppix/javaTest/traceback.py", line 99, in extract_tb
  File "/home/knoppix/javaTest/linecache.py", line 15, in getline
  File "/home/knoppix/javaTest/linecache.py", line 41, in getlines
  File "/home/knoppix/javaTest/linecache.py", line 70, in updatecache
AttributeError: class 'org.python.modules.os' has no attribute 'error'

-- 
L'erreur est humaine mais un veritable desastre necessite un ordinateur !



Reply to: