diff options
author | Alan Conway <aconway@apache.org> | 2007-03-21 01:26:37 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-03-21 01:26:37 +0000 |
commit | ae01787ce90ee7cd1303ce7769328cd242e00f6e (patch) | |
tree | 72df2f2f98c1f2cdc117debb2c6e1f9141bf1df7 /python/qpid/testlib.py | |
parent | 26aa43e242082422647240054e16c003a54d0df9 (diff) | |
download | qpid-python-ae01787ce90ee7cd1303ce7769328cd242e00f6e.tar.gz |
* cpp-0-9: svn copy of 0-9 branch cpp, will rename to cpp on next update.
* cpp-0-9/gentools: independent copy of gentools for cpp.
Temporary measure till /java and /gentools are at 0-9
* python/tests_0-9: tests from 0-9 branch.
* python/qpid/testlib.py: Use tests_0-9 with 0-9 spec (default is still 0-8)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520690 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/testlib.py')
-rw-r--r-- | python/qpid/testlib.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/python/qpid/testlib.py b/python/qpid/testlib.py index 05641bce7e..ba2dbe9fc3 100644 --- a/python/qpid/testlib.py +++ b/python/qpid/testlib.py @@ -125,7 +125,7 @@ Options: if self.use08spec(): self.tests=findmodules("tests_0-8") else: - self.tests=findmodules("tests") + self.tests=findmodules("tests_0-9") def testSuite(self): class IgnoringTestSuite(unittest.TestSuite): @@ -142,16 +142,14 @@ Options: self._parseargs(args) runner = unittest.TextTestRunner(descriptions=False, verbosity=self.verbose) - try: - result = runner.run(self.testSuite()) - except: - print "Unhandled error in test:", sys.exc_info() + result = runner.run(self.testSuite()) if (self.ignore): print "=======================================" print "NOTE: the following tests were ignored:" for t in self.ignore: print t print "=======================================" + return result.wasSuccessful() def connect(self, host=None, port=None, spec=None, user=None, password=None, tune_params=None): |