initial checkin

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-07-24 12:19:34 +02:00
commit 5755d14d84
13 changed files with 124 additions and 0 deletions

14
test/mute-stdio/main.py Normal file
View file

@ -0,0 +1,14 @@
import jwutil
print "This is without muted output"
with jwutil.MuteStdIO():
print "This is with muted output"
with jwutil.MuteStdIO():
print "This will have an error"
print "Second suppressed line of output"
print "Third suppressed line of output"
raise Exception("Something went wrong")
print "Output is unmuted again"