summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Finney <ben+python@benfinney.id.au>2018-04-23 16:29:34 +1000
committerBen Finney <ben@benfinney.id.au>2018-04-23 19:54:46 +1000
commit950839f390dbdcd285ceae86b7ddeb4ce62a50d4 (patch)
treebcb22e5900814862b380b3a7fe4f10f7fe013695 /tests
parent2441a4d7b3576eb3a1c519713974418638ab82ba (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')
0 files changed, 0 insertions, 0 deletions