Skip to content

Commit b52256b

Browse files
committed
Fix pytest error handling
1 parent d509531 commit b52256b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/local/grpc_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def _call(self, args):
9191
or (isinstance(error, GrpcError) and expectFailure)):
9292
return None
9393
raise error
94+
elif expectedError:
95+
raise AssertionError(f"Error {expectedError} expected, none received")
9496
return response
9597

9698
def _getSpec(self, args):

0 commit comments

Comments
 (0)