diff --git a/run_tests.py b/run_tests.py index 1cc50e6..4919c6a 100644 --- a/run_tests.py +++ b/run_tests.py @@ -4,18 +4,18 @@ ## Login : David Rousselie ## Started on Wed Aug 9 21:37:35 2006 David Rousselie ## $Id$ -## +## ## Copyright (C) 2006 David Rousselie ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. -## +## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. -## +## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -44,8 +44,7 @@ if __name__ == '__main__': class MyTestProgram(unittest.TestProgram): def runTests(self): """run tests but do not exit after""" - if self.testRunner is None: - self.testRunner = unittest.TextTestRunner(verbosity=self.verbosity) + self.testRunner = unittest.TextTestRunner(verbosity=self.verbosity) self.testRunner.run(self.test) logger = logging.getLogger() diff --git a/src/jcl/jabber/component.py b/src/jcl/jabber/component.py index aa072d0..d4b6951 100644 --- a/src/jcl/jabber/component.py +++ b/src/jcl/jabber/component.py @@ -448,12 +448,12 @@ class AccountManager(object): elif account_class_name is None: self.__logger.error("account_type and account_class_name are None") return None - self.__logger.debug("Looking for " + account_class_name) + self.__logger.debug("Looking for " + account_class_name + " class") for _account_class in self.account_classes: if _account_class.__name__.lower() == account_class_name.lower(): - self.__logger.debug(account_class_name + " found") + self.__logger.debug(account_class_name + " class found") return _account_class - self.__logger.debug(account_class_name + " not found") + self.__logger.debug(account_class_name + " class not found") return None def generate_registration_form(self, lang_class, _account_class, bare_from_jid): @@ -709,7 +709,7 @@ class JCLComponent(Component, object): signal.signal(signal.SIGTERM, signal.default_int_handler) def disable_signals(self): - """Enable signals""" + """Disable signals""" if self.signals_enabled: self.signals_enabled = False signal.signal(signal.SIGINT, signal.default_int_handler)