Serhiy Storchaka added the comment:

I think there is a little need for this feature. On other hand, its use looks 
complicated, and it will likely complicate the implementation.

If tested types are same, but messages differ, messages can be combined in on 
regex: 'msg1|msg2'.

If tested types differ, but messages are same, this case is already supported.

If tested types and messages differ, you can test with combined regex, and then 
check a context manager object that the message matches the type. But this is 
very rare case.

----------
nosy: +serhiy.storchaka

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

Reply via email to