changeset 145:c07dd14d5842

we always want doctest.ELLIPSIS. why the hell wouldnt we?
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 05 Mar 2012 14:26:54 -0800
parents 18ef2d7c5b93
children ebaee69c5ea4
files makeitso/python_package/tests/test.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python_package/tests/test.py	Wed Feb 29 16:17:40 2012 -0800
+++ b/makeitso/python_package/tests/test.py	Mon Mar 05 14:26:54 2012 -0800
@@ -19,8 +19,9 @@
     directory = os.path.dirname(os.path.abspath(__file__))
     extraglobs = {'here': directory}
     doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error)
+    doctest_args['optionsflags'] = doctest.ELLIPSIS
     if report_first:
-        doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE
+        doctest_args['optionflags'] |= doctest.REPORT_ONLY_FIRST_FAILURE
 
     # gather tests
     tests =  [ test for test in os.listdir(directory)