changeset 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 13998e698d3e
files tests/run.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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())