def test_popitem(self):
        assert evalpy("d={'a': 1, 'b':2}; d.popitem()") == "[ 'a', 1 ]"
        assert 'KeyError' in evalpy("d={}\ntry:\n  d.popitem()\nexcept Exception as e:\n  e")
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestDictMethods.test_popitem/original