You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
The following test (for the JPype1 project @
https://github.com/originell/jpype) works on python 2.7 and python 3 but fails
in python 2.6:
with self.assertRaises(JavaException) as cm:
self.jpype.exc.ExceptionTest.throwRuntime()
self.assertIs(cm.exception.javaClass(), java.lang.RuntimeException)
What is the expected output? What do you see instead?
I'm expecting it to work.
Traceback (most recent call last):
File "/home/travis/build/baztian/jpype/test/jpypetest/exc.py", line 31, in
testExceptionThrown
self.assertIs(cm.exception.javaClass(), java.lang.RuntimeException)
AttributeError: 'tuple' object has no attribute 'javaClass'
What version of the product are you using? On what operating system?
0.8.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 12 Feb 2015 at 8:11
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 12 Feb 2015 at 8:11The text was updated successfully, but these errors were encountered: