You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The exit status of a killed process should be None
To Reproduce
importwexpectimporttimedeftest_expect_wait_after_termination():
"""Ensure wait on a process terminated by kill -9. based on IsAliveTestCase::test_expect_wait_after_termination()"""p=wexpect.spawn('sleep 3')
assertp.isalive()
p.kill(9)
time.sleep(1)
# when terminated, the exitstatus is None, but p.signalstatus# and p.terminated reflects that the kill -9 nature.exitstat=p.wait()
print('exitstat: {}'.format(exitstat))
assertexitstatisNonetest_expect_wait_after_termination()
Expected behavior
The exit status of a killed process should be None
Environment:
OS Name Microsoft Windows 10 Home
Version 10.0.18362 Build 18362
Python 3.7.5
wexpect v2.3.9
The text was updated successfully, but these errors were encountered:
Describe the bug
The exit status of a killed process should be
None
To Reproduce
Expected behavior
The exit status of a killed process should be
None
Environment:
The text was updated successfully, but these errors were encountered: