diff makeitso/python_package/tests/test.py @ 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 829b7f528483
children ebaee69c5ea4
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)