Skip to content

Commit e79ed7e

Browse files
committed
Wait for context manager to close before operating on warnings
1 parent 7c7516d commit e79ed7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/worker/test_workflow.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5672,11 +5672,11 @@ async def _run_workflow_and_get_warning(self) -> bool:
56725672
== "Deliberately failing post-ContinueAsNew run"
56735673
)
56745674

5675-
unfinished_handler_warning_emitted = any(
5676-
issubclass(w.category, self._unfinished_handler_warning_cls)
5677-
for w in warnings
5678-
)
5679-
return unfinished_handler_warning_emitted
5675+
unfinished_handler_warning_emitted = any(
5676+
issubclass(w.category, self._unfinished_handler_warning_cls)
5677+
for w in warnings
5678+
)
5679+
return unfinished_handler_warning_emitted
56805680

56815681
@property
56825682
def _unfinished_handler_warning_cls(self) -> Type:

0 commit comments

Comments
 (0)