summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/director_thread_runme.py
blob: 4fcf3bfd104be05f253e5b3971bcdabe13010240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from director_thread import Foo


class Derived(Foo):

    def __init__(self):
        Foo.__init__(self)

    def do_foo(self):
        self.val = self.val - 1


d = Derived()
d.run()

if d.val >= 0:
    print d.val
    raise RuntimeError

d.stop()