Skip to content

Commit

Permalink
added test for stdout capturing
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Sep 23, 2013
1 parent 105d729 commit d042a5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ def with_example20():
pass


@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:
Expand Down

0 comments on commit d042a5d

Please sign in to comment.