diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2003-05-05 01:44:14 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2003-05-05 01:44:14 +0000 |
commit | e4990e5b075107a8a7d05abcbb198439235d5e27 (patch) | |
tree | bad9aac07cce7e1b76a0febf5f875cc62aecb304 | |
parent | d227ad52f2516463d9a5c5680459052dbb50cbe7 (diff) | |
download | pexpect-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-x | pexpect/tests/test_isalive.py | 1 |
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.') |