Change test to fail rather than print a message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a4f8ed4fc9
commit
665b70e887
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ b = typename.Bar()
|
||||||
|
|
||||||
x = typename.twoFoo(f)
|
x = typename.twoFoo(f)
|
||||||
if not isinstance(x,types.FloatType):
|
if not isinstance(x,types.FloatType):
|
||||||
print "Wrong return type!"
|
raise RuntimeError,"Wrong return type (FloatType) !"
|
||||||
y = typename.twoBar(b)
|
y = typename.twoBar(b)
|
||||||
if not isinstance(y,types.IntType):
|
if not isinstance(y,types.IntType):
|
||||||
print "Wrong return type!"
|
raise RuntimeError,"Wrong return type (IntType)!"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue