Debian Codegraph @

t/test_util.py

raw symbols SCIP
1 from cpuset import util,config
2 import time
3
4 print("invocation with max set - progress bar should appear")
5 p = util.ProgressBar(15)
6 for n in range(18):
7 time.sleep(0.07)
8 p(n)
9
10 print("invocation without max set - nothing should appear")
11 p = util.ProgressBar(0)
12 for n in range(18):
13 time.sleep(0.07)
14 p(n)
15
16 print("invocation with max set and machine readable output set - nothing should appear")
17 config.mread=True
18 p = util.ProgressBar(15)
19 for n in range(18):
20 time.sleep(0.07)
21 p(n)
22