def test_local(self):
        d = local()
        d.a = 1

        r_list = []
        def f():
            try:
                d.a
            except __HOLE__:
                r_list.append(True)

        core.tasklet(f)()
        core.schedule()

        assert r_list == [True]
dataset/ETHPy150Open benoitc/flower/test/test_local.py/Test_Local.test_local