def tearDown(self): try: os.kill(int(open(self.pidfile).read().strip()), signal.SIGKILL) os.unlink(self.pidfile) except (OSError, IOError): pass DulwichClientTestBase.tearDown(self) CompatTestCase.tearDown(self)
def tearDown(self): with open(self.pidfile) as f: pid = int(f.read().strip()) if sys.platform == "win32": PROCESS_TERMINATE = 1 handle = ctypes.windll.kernel32.OpenProcess(PROCESS_TERMINATE, False, pid) ctypes.windll.kernel32.TerminateProcess(handle, -1) ctypes.windll.kernel32.CloseHandle(handle) else: try: os.kill(pid, signal.SIGKILL) os.unlink(self.pidfile) except (OSError, IOError): pass DulwichClientTestBase.tearDown(self) CompatTestCase.tearDown(self)
def tearDown(self): with open(self.pidfile) as f: pid = int(f.read().strip()) if sys.platform == 'win32': PROCESS_TERMINATE = 1 handle = ctypes.windll.kernel32.OpenProcess( PROCESS_TERMINATE, False, pid) ctypes.windll.kernel32.TerminateProcess(handle, -1) ctypes.windll.kernel32.CloseHandle(handle) else: try: os.kill(pid, signal.SIGKILL) os.unlink(self.pidfile) except (OSError, IOError): pass DulwichClientTestBase.tearDown(self) CompatTestCase.tearDown(self)
def tearDown(self): DulwichClientTestBase.tearDown(self) CompatTestCase.tearDown(self) self._httpd.shutdown() self._httpd.socket.close()
def tearDown(self): DulwichClientTestBase.tearDown(self) CompatTestCase.tearDown(self)
def tearDown(self): DulwichClientTestBase.tearDown(self) CompatTestCase.tearDown(self) client.get_ssh_vendor = self.real_vendor
def tearDown(self): WebTests.tearDown(self) CompatTestCase.tearDown(self)
def tearDown(self): CompatTestCase.tearDown(self) tear_down_repo(self._repo)
def tearDown(self): ServerTests.tearDown(self) CompatTestCase.tearDown(self)