summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2003-05-05 01:44:14 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2003-05-05 01:44:14 +0000
commite4990e5b075107a8a7d05abcbb198439235d5e27 (patch)
treebad9aac07cce7e1b76a0febf5f875cc62aecb304
parentd227ad52f2516463d9a5c5680459052dbb50cbe7 (diff)
downloadpexpect-e4990e5b075107a8a7d05abcbb198439235d5e27.tar.gz
It seems that OpenBSD needs some time to catch up with the state of
a dead process. I added a 1 second sleep. git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@188 656d521f-e311-0410-88e0-e7920216d269
-rwxr-xr-xpexpect/tests/test_isalive.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pexpect/tests/test_isalive.py b/pexpect/tests/test_isalive.py
index 5b7e91b..2210884 100755
--- a/pexpect/tests/test_isalive.py
+++ b/pexpect/tests/test_isalive.py
@@ -8,6 +8,7 @@ class IsAliveTestCase(unittest.TestCase):
def test_expect_isalive1 (self):
p = pexpect.spawn('ls')
p.expect(pexpect.EOF)
+ time.sleep(1) # allow kernel status time to catch up with state.
if p.isalive():
self.fail ('Child process is not dead. It should be.')