diff makeitso/python_package/tests/test.py @ 124:3eee157f4564

correct syntax
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 19 May 2011 11:15:56 -0700
parents 8db34885ebe4
children 19ffc278e35c
line wrap: on
line diff
--- a/makeitso/python_package/tests/test.py	Thu May 19 10:56:16 2011 -0700
+++ b/makeitso/python_package/tests/test.py	Thu May 19 11:15:56 2011 -0700
@@ -27,11 +27,12 @@
 
     # run the tests
     for test in tests:
-        results[test] = doctest.testfile(test, **doctest_args)
-    except doctest.DocTestFailure, failure:
-        raise
-    except doctest.UnexpectedException, failure:
-        raise failure.exc_info[0], failure.exc_info[1], failure.exc_info[2]
+        try:
+            results[test] = doctest.testfile(test, **doctest_args)
+        except doctest.DocTestFailure, failure:
+            raise
+        except doctest.UnexpectedException, failure:
+            raise failure.exc_info[0], failure.exc_info[1], failure.exc_info[2]
 
     return results