def testRecursive(self):
        
        #non-recursive
        local = TaskLocal()
        
        local.piet = 20
        
        def t():
            try:
                local.piet
                self.fail('expected attr error')
            except __HOLE__:
                pass
        
        Tasklet.join(Tasklet.new(t)())
        
        #recursive
        local = TaskLocal(True)
        
        local.piet = 30
        
        def t():
            self.assertEquals(30, local.piet)
        
        Tasklet.join(Tasklet.new(t)())
dataset/ETHPy150Open concurrence/concurrence/test/testlocal.py/TestTaskLocal.testRecursive