def read_file(self, filename=None, raise_exc=False): """Load a readline history file. The default filename is ~/.history. If ``raise_exc`` is True, IOErrors will be allowed to propagate. """ try: readline.read_history_file(filename) except IOError: if raise_exc: raise
def test_read_history_file_None(self): self.mkfile(self.histfile) readline.read_history_file(None)
def test_read_history_file_noarg(self): self.mkfile(self.histfile) readline.read_history_file()