Attempt fix of test/unit/test_lazy_process.py which transiently fails.

This commit is contained in:
John Chilton
2014-11-25 23:02:05 -05:00
parent 2f5f2cc2df
commit 56b3c10ec0
+2 -3
View File
@@ -11,9 +11,8 @@ def test_lazy_process():
lazy_process = LazyProcess(["bash", "-c", "touch %s; sleep 100" % t.name])
assert not os.path.exists(t.name)
lazy_process.start_process()
time.sleep(.02)
while not os.path.exists(t.name):
time.sleep(.01)
assert lazy_process.process.poll() is None
assert os.path.exists(t.name)
lazy_process.shutdown()
time.sleep(.02)
assert lazy_process.process.poll()