diff options
author | Ben Finney <ben+python@benfinney.id.au> | 2018-04-23 16:29:34 +1000 |
---|---|---|
committer | Ben Finney <ben@benfinney.id.au> | 2018-04-23 19:54:46 +1000 |
commit | 950839f390dbdcd285ceae86b7ddeb4ce62a50d4 (patch) | |
tree | bcb22e5900814862b380b3a7fe4f10f7fe013695 /tests/crypto_test.py | |
parent | 2441a4d7b3576eb3a1c519713974418638ab82ba (diff) |
Raise an exception with a meaningful message.
The `assert` statement is not always executed (it can be optimised
away) so is not a suitable run-time check. Also, an exception allows
for a better error message.
Diffstat (limited to 'tests/crypto_test.py')
0 files changed, 0 insertions, 0 deletions