Skip to content

Commit 8818432

Browse files
committed
RTU: registration time enforcement of syncio/asyncio mistakes
1 parent 8b153e1 commit 8818432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/nexus/test_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ class SyncHandlerNoExecutor(_InstantiationCase):
919919
handler = SyncStartHandler
920920
executor = False
921921
exception = RuntimeError
922-
match = "must be an `async def`"
922+
match = "Use nexusrpc.syncio.handler.Handler instead"
923923

924924

925925
class DefaultCancel(_InstantiationCase):
@@ -932,7 +932,7 @@ class SyncCancel(_InstantiationCase):
932932
handler = SyncCancelHandler
933933
executor = False
934934
exception = RuntimeError
935-
match = "cancel method must be an `async def`"
935+
match = "Use nexusrpc.syncio.handler.Handler instead"
936936

937937

938938
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)