Skip to content

Commit 8ec3623

Browse files
committed
Skip trio test for Python < 3.12
It hangs
1 parent f8117d0 commit 8ec3623

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/trio_async/workflow_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import sys
12
import uuid
23

4+
import pytest
35
import trio_asyncio
46
from temporalio.client import Client
57
from temporalio.worker import Worker
@@ -33,7 +35,11 @@ async def inside_trio(client: Client) -> list[str]:
3335
task_queue=task_queue,
3436
)
3537

38+
if sys.version_info[:2] < (3, 12):
39+
pytest.skip("Trio support requires >= 3.12")
40+
3641
result = trio_asyncio.run(inside_trio, client)
42+
3743
assert result == [
3844
"Hello, some-user! (from asyncio)",
3945
"Hello, some-user! (from thread)",

0 commit comments

Comments
 (0)