changeset 127:829b7f528483

DRY
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 25 May 2011 09:24:48 -0700
parents ea3225facbcf
children 0107f95376b3
files makeitso/python_package/tests/test.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python_package/tests/test.py	Wed May 25 09:10:57 2011 -0700
+++ b/makeitso/python_package/tests/test.py	Wed May 25 09:24:48 2011 -0700
@@ -50,8 +50,7 @@
     options, args = parser.parse_args(args)
 
     # run the tests
-    results = run_tests(report_first=options.report_first,
-                        raise_on_error=options.raise_on_error)
+    results = run_tests(**options.__dict__)
     if sum([i.failed for i in results.values()]):
         sys.exit(1) # error