

def test_loop_pause_error(self):
    store = NamedTemporaryFile(delete=False)
    store.close()
    os.chmod(store.name, 0)
    kp._setNextKey(kp.SPACE)
    g = Game(scores_file=None, store_file=store.name)
    self.assertIs(None, g.loop())
    os.chmod(store.name, 128)
    remove(g.name)

dataset/ETHPy150Open bfontaine/term2048/tests/test_game.py TestGame.test_loop_pause_error/VarMisuse@86/98 `store`->`g`