Browse Source

Remove unwanted output to stdout during test.

Shane Kerr 14 years ago
parent
commit
62a61edffa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bin/bind10/tests/bind10_test.py.in

+ 3 - 0
src/bin/bind10/tests/bind10_test.py.in

@@ -639,7 +639,10 @@ class TestBrittle(unittest.TestCase):
         self.exit_info = (5, 0)
         bob._get_process_exit_status = self.simulated_exit
 
+        old_stdout = sys.stdout
+        sys.stdout = open("/dev/null", "w")
         bob.reap_children()
+        sys.stdout = old_stdout
         self.assertFalse(bob.runnable)
 
 if __name__ == '__main__':