예제 #1
0
 def test_nullstreams(self):
     stream = StringIO.StringIO()
     null_streams([stream, sys.stdout])
     stream.write('ok')
     sys.stdout.write('ok')
예제 #2
0
파일: external.py 프로젝트: yclybouw/loads
 def silent_output():
     null_streams([sys.stdout, sys.stderr, sys.stdin])
     os.setsid()  # Run the subprocess in a new session.
예제 #3
0
 def silent_output():
     null_streams([sys.stdout, sys.stderr, sys.stdin])
     os.setsid()  # Run the subprocess in a new session.
예제 #4
0
 def test_nullstreams(self):
     stream = StringIO.StringIO()
     null_streams([stream, sys.stdout])
     stream.write('ok')
     sys.stdout.write('ok')