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:
William S Fulton 2011-06-10 22:48:32 +00:00
commit 665b70e887

View file

@ -5,8 +5,8 @@ b = typename.Bar()
x = typename.twoFoo(f)
if not isinstance(x,types.FloatType):
print "Wrong return type!"
raise RuntimeError,"Wrong return type (FloatType) !"
y = typename.twoBar(b)
if not isinstance(y,types.IntType):
print "Wrong return type!"
raise RuntimeError,"Wrong return type (IntType)!"