def test_fake_parentheses():
 src = dedent("\n    def x():\n        a = (')'\n    if 1 else 2)\n        def y():\n            pass\n        def z():\n            pass\n    ")
 check_fp(src, 3, 2, 1)

def test_fake_parentheses ( ) : src = dedent ( "\n    def x():\n        a = (')'\n    if 1 else 2)\n        def y():\n            pass\n        def z():\n            pass\n    " ) check_fp ( src , 3 , 2 , 1 )
the fast parser splitting counts parentheses .