def test_scope2(self):
        # Avoid regression for bug with lambda and scoping
        
        def func1(self):
            x = 1
        
        def func2(self):
            x = 1
            y = lambda : None
        
        def func3(self):
            x = 1
            def y():
                pass
        
        assert 'var x' in py2js(func1)
        assert 'var x' in py2js(func2)
        assert 'var x' in py2js(func3)
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser2.py/TestFunctions.test_scope2/original