[~] Refactor
This commit is contained in:
parent
0e826c02b1
commit
d5672eb44f
@ -1695,7 +1695,8 @@ def kernel_27():
|
|||||||
'%d' % (t1[1] - t1[0]),
|
'%d' % (t1[1] - t1[0]),
|
||||||
'%s' % t4,
|
'%s' % t4,
|
||||||
], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
|
], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
|
||||||
pprint.pprint(p.communicate())
|
if False:
|
||||||
|
pprint.pprint(p.communicate())
|
||||||
p.wait()
|
p.wait()
|
||||||
assert p.returncode == 0
|
assert p.returncode == 0
|
||||||
|
|
||||||
@ -1710,6 +1711,7 @@ def kernel_27():
|
|||||||
''' % (t4, t2)
|
''' % (t4, t2)
|
||||||
pprint.pprint([t4, t2, t6])
|
pprint.pprint([t4, t2, t6])
|
||||||
with subprocess.Popen(t6, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
|
with subprocess.Popen(t6, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
|
||||||
pprint.pprint(p.communicate())
|
if False:
|
||||||
|
pprint.pprint(p.communicate())
|
||||||
p.wait()
|
p.wait()
|
||||||
assert p.returncode == 0
|
assert p.returncode == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user