@run_in_both(Person, "['setreadonly', 'setemitter', '_setprop1', '_setprop2']")
def test_try_illegal_stuff(Person):
    # we cannot test delete, because deleting *is* possible
    # on JS
    res = []
    name = Person()
    try:
        name.full_name = 'john doe'
    except AttributeError:
        res.append('setreadonly')
    try:
        name.yell = 3
    except AttributeError:
        res.append('setemitter')
    try:
        name._set_prop(3, 3)  # Property name must be a string
    except __HOLE__:
        res.append('_setprop1')
    try:
        name._set_prop('spam', 3)  # MyObject has not spam property
    except AttributeError:
        res.append('_setprop2')
    return res
dataset/ETHPy150Open zoofIO/flexx/flexx/event/tests/test_both.py/test_try_illegal_stuff