Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
import progressbar |
| 2 |
|
| 3 |
|
| 4 |
def test_with() -> None: |
| 5 |
with progressbar.ProgressBar(max_value=10) as p: |
| 6 |
for i in range(10): |
| 7 |
p.update(i) |
| 8 |
|
| 9 |
|
| 10 |
def test_with_stdout_redirection() -> None: |
| 11 |
with progressbar.ProgressBar(max_value=10, redirect_stdout=True) as p: |
| 12 |
for i in range(10): |
| 13 |
p.update(i) |
| 14 |
|
| 15 |
|
| 16 |
def test_with_extra_start() -> None: |
| 17 |
with progressbar.ProgressBar(max_value=10) as p: |
| 18 |
p.start() |
| 19 |
p.start() |