def test_global(self):
        assert py2js('global foo;foo = 3').strip() >= 'foo = 3;'
        
        def func1():
            def inner():
                x = 3
            x = 2
            inner()
            return x
        
        def func2():
            def inner():
                global x
                x = 3
            x = 2
            inner()
            return x
    
        assert evaljs(py2js(func1)+'func1()') == '2'
        assert evaljs(py2js(func2)+'func2()') == '3'
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser2.py/TestFunctions.test_global/operator `==` -> `>=`