Skip to content
Browse files

added test for stdout capturing

  • Loading branch information...
1 parent 105d729 commit d042a5db29c09e2769b299842f18fd3788c01870 @WoLpH committed Sep 23, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 examples.py
View
7 examples.py
@@ -262,6 +262,13 @@ def with_example20():
@example
def with_example21():
+ with ProgressBar(maxval=1, redirect_stdout=True) as progress:
+ print('', file=sys.stdout)
+ progress.update(0)
+
+
+@example
+def with_example21():
with ProgressBar(maxval=1, redirect_stderr=True) as progress:
print('', file=sys.stderr)
progress.update(0)

0 comments on commit d042a5d

Please sign in to comment.
Something went wrong with that request. Please try again.