Message859

Author janeaustine50
Recipients
Date 2003-07-19.14:56:16
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2008-02-20 17:17:15adminlinkissue774219 messages
2008-02-20 17:17:15admincreate