-
-
Notifications
You must be signed in to change notification settings - Fork 362
Closed
Description
It looks like #849 failed to automerge because of an intermittent failure in test_subprocess.test_signals
: https://ci.cryptography.io/blue/organizations/jenkins/python-trio%2Ftrio/detail/PR-849/1/pipeline
The traceback is:
_________________________________ test_signals _________________________________
async def test_signals():
async def test_one_signal(send_it, signum):
with move_on_after(1.0) as scope:
async with subprocess.Process(SLEEP(3600)) as proc:
send_it(proc)
assert not scope.cancelled_caught
if posix:
assert proc.returncode == -signum
else:
assert proc.returncode != 0
await test_one_signal(subprocess.Process.kill, SIGKILL)
> await test_one_signal(subprocess.Process.terminate, SIGTERM)
../.venv/lib/python3.5/site-packages/trio/tests/test_subprocess.py:240:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
send_it = <function Process.terminate at 0x102bc6d90>
signum = <Signals.SIGTERM: 15>
async def test_one_signal(send_it, signum):
with move_on_after(1.0) as scope:
async with subprocess.Process(SLEEP(3600)) as proc:
send_it(proc)
assert not scope.cancelled_caught
if posix:
> assert proc.returncode == -signum
E assert -9 == -<Signals.SIGTERM: 15>
E + where -9 = <trio._subprocess.Process object at 0x105d6c908>.returncode
../.venv/lib/python3.5/site-packages/trio/tests/test_subprocess.py:235: AssertionError
CC: @oremanj
Metadata
Metadata
Assignees
Labels
No labels