mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-25 05:40:15 +08:00
This raises ProcessExpired on Linux but not on Windows
This commit is contained in:
parent
6f2008287e
commit
2fd5fc81f5
@ -4,6 +4,7 @@ from unittest.mock import patch
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
import pebble.common.types
|
||||||
|
|
||||||
from comfy.cli_args_types import Configuration
|
from comfy.cli_args_types import Configuration
|
||||||
from comfy.client.embedded_comfy_client import Comfy
|
from comfy.client.embedded_comfy_client import Comfy
|
||||||
@ -156,7 +157,7 @@ async def test_panic_on_exception_with_executor(executor_cls, executor_kwargs):
|
|||||||
async with Comfy(configuration=config, executor=executor) as client:
|
async with Comfy(configuration=config, executor=executor) as client:
|
||||||
# Queue our failing workflow
|
# Queue our failing workflow
|
||||||
await client.queue_prompt(create_failing_workflow())
|
await client.queue_prompt(create_failing_workflow())
|
||||||
except SystemExit:
|
except (SystemExit, pebble.common.types.ProcessExpired):
|
||||||
sys_exit_called = True
|
sys_exit_called = True
|
||||||
except UnrecoverableError:
|
except UnrecoverableError:
|
||||||
# We expect the exception to be raised here
|
# We expect the exception to be raised here
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user