/tags/rel-1-3-26/SWIG/Examples/test-suite/python/director_thread_runme.py
Python | 15 lines | 10 code | 5 blank | 0 comment | 1 complexity | 9220b22a78ea3061402c4efc59847f3e MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- from director_thread import Foo
- class Derived(Foo) :
- def __init__(self):
- Foo.__init__(self)
- def do_foo(self):
- self.val -= 1
- d = Derived()
- d.run()
- if d.val >= 0:
- raise RuntimeError