Message859
Jython 2.1 final on win XP.
Jython 2.1 on java1.4.2-beta (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> import sys
>>> sys.path.append('junit.jar')
>>> import junit
>>> junit.framework
<java package junit.framework at 13554088>
>>> junit.framework.TestCase
Traceback (innermost last):
File "<console>", line 1, in ?
AttributeError: java package 'junit.framework' has no
attribute 'TestCase'
>>> from junit.framework import *
>>> junit.framework.TestCase
<jclass junit.framework.TestCase at 22498184>
>>>
As you see the junit.framework.TestCase is not
accessible simply by adding the jar file in the sys.path.
You need to import the specific class in order to access
it. |
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:15 | admin | link | issue774219 messages |
| 2008-02-20 17:17:15 | admin | create | |
|