Irit Katriel <iritkatr...@gmail.com> added the comment:

Another way to look at it is that your test has two problems. One is that the 
expected exception didn’t happen and the other is that an unexpected exception 
happened. 

The two problems are usually unrelated, and trying to conflate them into one 
error message can be confusing in some cases. When a test has multiple problems 
you get an error for the first one.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43596>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to