Mark Dickinson <dicki...@gmail.com> added the comment:

I think I understand where the request comes from: in the case where you've 
changed the exception type that an API is expected to raise, and you've either 
updated the test to check for the new exception type and missed an update in 
the business logic, or vice versa, you'd like the test to tell you that the 
wrong exception type was raised. I've definitely done this myself on more than 
a few occasions.

So this *particular* case is an exception to Irit's observation that "The two 
problems are usually unrelated [...]". But I think it *is* an exception: I 
agree that the rule holds in general, and that the current behaviour shouldn't 
be changed.

I think we've got sufficient agreement from core devs to close here.

----------
nosy: +mark.dickinson
resolution:  -> rejected
stage:  -> resolved
status: open -> closed
type:  -> enhancement

_______________________________________
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