PageRenderTime 32ms CodeModel.GetById 29ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1from director_thread import Foo
 2
 3class Derived(Foo) :
 4    def __init__(self):
 5        Foo.__init__(self)
 6
 7    def do_foo(self):
 8        self.val -= 1
 9
10
11d = Derived()
12d.run()
13
14if d.val >= 0:
15    raise RuntimeError