Example #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)
Example #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)
Example #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)
Example #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)
Example #5
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
     self._httpd.shutdown()
     self._httpd.socket.close()
Example #6
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
Example #7
0
 def tearDown(self):
     DulwichClientTestBase.tearDown(self)
     CompatTestCase.tearDown(self)
     client.get_ssh_vendor = self.real_vendor
Example #8
0
 def tearDown(self):
     WebTests.tearDown(self)
     CompatTestCase.tearDown(self)
Example #9
0
 def tearDown(self):
     CompatTestCase.tearDown(self)
     tear_down_repo(self._repo)
Example #10
0
 def tearDown(self):
     ServerTests.tearDown(self)
     CompatTestCase.tearDown(self)