Skip to content

Commit 59faa8c

Browse files
committed
fix: raise assertion error instead of assert False
1 parent 3c5c5a0 commit 59faa8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/keyrings/raw_rsa_keyring_example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@ def encrypt_and_decrypt_with_keyring():
186186
keyring=raw_rsa_keyring_bob
187187
)
188188

189-
assert False, "client.decrypt should throw an error of type CollectionOfErrors!"
189+
raise AssertionError("client.decrypt should throw an error of type CollectionOfErrors!")
190190
except CollectionOfErrors:
191191
pass

0 commit comments

Comments
 (0)