@skipif(sys.version_info > (3,), reason='not Python 2.x')
def test_python2_old_syntax():
    # We do not support tuple function arg; it would complicate things
    with raises(RuntimeError):
        commonast.parse('def foo((a,)=c):pass')
    # Print statement becomes print function
    assert commonast.parse('print(foo)') == commonast.parse('print foo')
    # Exec statement becomes a d function
    assert commonast.parse('exec(foo)') == commonast.parse('exec foo')
    # Backticks becomes repr function
    assert commonast.parse('repr(foo)') == commonast.parse('`foo`')
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_commonast.py/test_python2_old_syntax/original