def test_pop(self):
        code = 'a=[1,2,3,4,5];\n'
        assert evalpy(code + 'a.pop(2); a') == '[ 1, 2, 4, 5 ]'
        assert evalpy(code + 'a.pop(0); a') == '[ 2, 3, 4, 5 ]'
        assert evalpy(code + 'a.pop(); a') == '[ 1, 2, 3, 4 ]'
        assert evalpy(code + 'a.pop(-1); a') == '[ 1, 2, 3, 4 ]'
        assert evalpy(code + 'try:\n  a.pop(9);\nexcept Exception as e:\n  e') in 'IndexError'
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestListMethods.test_pop/swapped operands of `in`