diff tests/test.py @ 31:f00fcf6d9f1d

test not modified response
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 05 Mar 2012 13:49:07 -0800
parents 4d1852cfc077
children
line wrap: on
line diff
--- a/tests/test.py	Mon Mar 05 13:40:15 2012 -0800
+++ b/tests/test.py	Mon Mar 05 13:49:07 2012 -0800
@@ -17,9 +17,10 @@
     # doctest arguments
     directory = os.path.dirname(os.path.abspath(__file__))
     extraglobs = {'here': directory}
-    doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error)
+    doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error, )
+    doctest_args['optionflags'] = 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)