def test_empty_cell():
    def f(): print a
    try:
        f.func_closure[0].cell_contents
    except __HOLE__:
        pass
    else:
        raise TestFailed, "shouldn't be able to read an empty cell"

    a = 12
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_funcattrs.py/test_empty_cell