예제 #1
0
    def tearDown(self):
        """
        cleans up the reactor after running startService on a
        twisted.application.service
        """
        test_pid_file = get_pid({'settings': TEST_SETTINGS, 'http_port': HTTP_PORT})
        if os.path.exists(test_pid_file):
            os.remove(test_pid_file)

        self.reactor.disconnectAll()
        return self.reactor.removeAll()
예제 #2
0
    def tearDown(self):
        """
        cleans up the reactor after running startService on a
        twisted.application.service
        """
        test_pid_file = get_pid({
            'settings': TEST_SETTINGS,
            'http_port': HTTP_PORT
        })
        if os.path.exists(test_pid_file):
            os.remove(test_pid_file)

        self.reactor.disconnectAll()
        return self.reactor.removeAll()
예제 #3
0
파일: base.py 프로젝트: hendrix/hendrix
 def pid(self):
     "The default location of the pid file for process management"
     return get_pid(self.options)
예제 #4
0
 def pid(self):
     "The default location of the pid file for process management"
     return get_pid(self.options)