Exemple #1
0
 def test_nullstreams(self):
     stream = StringIO.StringIO()
     null_streams([stream, sys.stdout])
     stream.write('ok')
     sys.stdout.write('ok')
Exemple #2
0
 def silent_output():
     null_streams([sys.stdout, sys.stderr, sys.stdin])
     os.setsid()  # Run the subprocess in a new session.
Exemple #3
0
 def silent_output():
     null_streams([sys.stdout, sys.stderr, sys.stdin])
     os.setsid()  # Run the subprocess in a new session.
Exemple #4
0
 def test_nullstreams(self):
     stream = StringIO.StringIO()
     null_streams([stream, sys.stdout])
     stream.write('ok')
     sys.stdout.write('ok')