NiltonVolpato / python-progressbar

Text progress bar library for Python
Other
412 stars 105 forks source link

Don't use `sys.stderr` as a default value #57

Closed infinity0 closed 6 years ago

infinity0 commented 7 years ago

Certan tools like pytest and other things mess with the value of sys.stderr. If we import progressbar before pytest has messed with it, then ProgressBar's default fd value will remain unmessed-with, potentially causing test failures if we're trying to test our progressbar output.