diff tests/run.py @ 303:f423a8780832

Minor tweaks to how the tests are run.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 27 Mar 2009 03:42:52 +0100
parents f80132c5fea5
children ce676eff002b
line wrap: on
line diff
--- a/tests/run.py
+++ b/tests/run.py
@@ -45,5 +45,10 @@ def suite():
                               ])
 
 if __name__ == '__main__':
-    runner = unittest.TextTestRunner()
+    kwargs = { 'descriptions': 2 }
+    if '-v' in sys.argv:
+        kwargs['descriptions'] = 3
+        kwargs['verbosity'] = 2
+
+    runner = unittest.TextTestRunner(**kwargs)
     runner.run(suite())