Beispiel #1
0
 def tearDown(self):
     for server in self._servers:
         if server.is_running():
             server.terminate()
     CloseStandardStreams(self._popen_handle)
     for logfile in self._logfiles:
         RemoveIfExists(logfile)
Beispiel #2
0
def StopServer( ycm ):
  try:
    ycm.OnVimLeave()
    WaitUntilProcessIsTerminated( ycm._server_popen )
    CloseStandardStreams( ycm._server_popen )
  except Exception:
    pass