Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2009-06-30 21:20:04 +0400
committerDavid Rousselie <dax@happycoders.org>2009-06-30 21:20:04 +0400
commit24f81d1e902b4290dbbb8aba2448101252e9d955 (patch)
tree200a80542cb827829b2148685a3a885225b30d31 /run_tests.py
parentf1509d66da4cec838621c01b3b553876744d304e (diff)
Make JCL work with Python 2.6
Ignore-this: 4d3c82c41facd7129e198c84f6bea0c8 darcs-hash:20090630172004-86b55-3b406a1d347855ea362ab33ce0872a7e52608cf3.gz
Diffstat (limited to 'run_tests.py')
-rw-r--r--run_tests.py9
1 files changed, 4 insertions, 5 deletions
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 <dax@happycoders.org>
## 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()