PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/python/director_thread_runme.py

#
Python | 18 lines | 12 code | 6 blank | 0 comment | 1 complexity | 03dab3b801d28ae7010685f3db0df272 MD5 | raw file
 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 = self.val - 1
 9
10
11d = Derived()
12d.run()
13
14if d.val >= 0:
15    print d.val
16    raise RuntimeError
17
18d.stop()