예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
     self._httpd.shutdown()
     self._httpd.socket.close()
예제 #6
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
예제 #7
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
     client.get_ssh_vendor = self.real_vendor
예제 #8
0
파일: test_web.py 프로젝트: tpn/dulwich
 def tearDown(self):
     WebTests.tearDown(self)
     CompatTestCase.tearDown(self)
예제 #9
0
 def tearDown(self):
     CompatTestCase.tearDown(self)
     tear_down_repo(self._repo)
예제 #10
0
 def tearDown(self):
     ServerTests.tearDown(self)
     CompatTestCase.tearDown(self)