Description
When running the progress bar as a context manager, it skips step 1. In the example below it only shows step 0, 2, 3, and 3 is shown before it's completed. Running the code below should make it more obvious, if my explanation is unclear.
This only seems to be an issue when using the context manager.
Code
import time
import progressbar
with progressbar.ProgressBar(redirect_stdout=True) as progress:
for i in progress(range(3)):
time.sleep(1)
Description
When running the progress bar as a context manager, it skips step
1. In the example below it only shows step0,2,3, and3is shown before it's completed. Running the code below should make it more obvious, if my explanation is unclear.This only seems to be an issue when using the context manager.
Code