diff tests/run.py @ 338:47c0110046dc

tests: silence tests when using run.py
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 15 May 2009 17:24:08 +0200
parents 46e69be8e2c8
children 537de0300510
line wrap: on
line diff
--- a/tests/run.py
+++ b/tests/run.py
@@ -54,5 +54,8 @@ if __name__ == '__main__':
         kwargs['descriptions'] = 3
         kwargs['verbosity'] = 2
 
+    # silence output when running outside nose
+    sys.stdout = os.tmpfile()
+
     runner = unittest.TextTestRunner(**kwargs)
     runner.run(suite())