We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300544d commit 8685e9eCopy full SHA for 8685e9e
tests/conftest.py
@@ -36,9 +36,11 @@ def actor_restart_limit(limit: int) -> Iterator[None]:
36
f"<actor_restart_limit> Changing the restart limit from {original_limit} to {limit}"
37
)
38
_actor.Actor._restart_limit = limit
39
- yield
40
- print(f"<actor_restart_limit> Resetting restart limit to {original_limit}")
41
- _actor.Actor._restart_limit = original_limit
+ try:
+ yield
+ finally:
42
+ print(f"<actor_restart_limit> Resetting restart limit to {original_limit}")
43
+ _actor.Actor._restart_limit = original_limit
44
45
46
@pytest.fixture(scope="session", autouse=True)
0 commit comments