solve possible seg. faults and directors #1080075
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7ae82d1c51
commit
e67b13b202
7 changed files with 28 additions and 24 deletions
|
|
@ -7,6 +7,7 @@ class MyFoo(Foo):
|
|||
|
||||
class MyFoo2(Foo):
|
||||
def ping(self):
|
||||
return true
|
||||
pass # error: should return a string
|
||||
|
||||
ok = 0
|
||||
|
|
@ -31,10 +32,9 @@ b = launder(a)
|
|||
|
||||
try:
|
||||
b.pong()
|
||||
except TypeError, e:
|
||||
ok = 1
|
||||
except:
|
||||
pass
|
||||
ok = 1
|
||||
|
||||
|
||||
if not ok:
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue