add director+thread case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
30bd3c6834
commit
6d2886e308
3 changed files with 12 additions and 5 deletions
|
|
@ -3,9 +3,13 @@ from director_thread import Foo
|
|||
class Derived(Foo) :
|
||||
def __init__(self):
|
||||
Foo.__init__(self)
|
||||
print "too"
|
||||
|
||||
def do_foo(self):
|
||||
print "at drived class"
|
||||
self.val -= 1
|
||||
|
||||
|
||||
d = Derived()
|
||||
d.run()
|
||||
|
||||
if d.val >= 0:
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue