Closed
Description
Re discussion in #1052, what is the general consensus on testing for exception messages? The way I see it, there are a few ways we can handle this (in order of work required):
- Ignore exception messages
- Test only for exception messages that are explicitly included in the canonical data for the exercise
- When exception messages are not explicitly stated in the canonical data, require that the exercise contributor invent messages for all expected exceptions
Additionally, if we are to test for exception messages at all, we need to have a conventional method of doing so in both Python2 and Python3. assertRaisesRegexp
is replaced by assertRaisesRegex
in Python3, so as mentioned in #1052 there are a few ways of handling this difference.
Metadata
Metadata
Assignees
Labels
No labels