Skip to content

Commit beb7815

Browse files
committed
Add comment about testing temporal
1 parent 990f83a commit beb7815

File tree

1 file changed

+3
-0
lines changed
  • pydantic_ai_slim/pydantic_ai/durable_exec/temporal

1 file changed

+3
-0
lines changed

pydantic_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
]
3838

3939
# We need eagerly import the anyio backends or it will happens inside workflow code and temporal has issues
40+
# Note: It's difficult to add a test that covers this because pytest presumably does these imports itself
41+
# when you have a @pytest.mark.anyio somewhere.
42+
# I suppose we could add a test that runs a python script in a separate process, but I have not done that...
4043
import anyio._backends._asyncio # pyright: ignore[reportUnusedImport]
4144

4245
try:

0 commit comments

Comments
 (0)