Debian Codegraph @

tests/test_with.py

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 import progressbar2
2
3
4 def test_with() -> None:
•5 with progressbar2.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 progressbar2.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 progressbar2.ProgressBar(max_value=10) as p:
18 p.start()
19 p.start()