def _close(self): """Extend EditorWindow._close(), shut down debugger and execution server""" self.close_debugger() if use_subprocess: self.interp.kill_subprocess() sys.stdout = self.save_stdout sys.stderr = self.save_stderr sys.stdin = self.save_stdin self.interp = None self.console = None self.flist.pyshell = None self.history = None EditorWindow._close(self)
def test_init(self): ew = EditorWindow(root=self.root) sb = runscript.ScriptBinding(ew) ew._close()
def _close(self): """Extend base method - clear breaks when module is closed""" self.clear_file_breaks() EditorWindow._close(self)