Serhiy Storchaka added the comment:

Core developers left a couple of notes and the patch itself is outdated. Here 
is updated patch that addresses all comments. It also extends the checking to 
assertRaisesRegex(), assertWarns() and assertWarnsRegex().

There is a risk to break existing incorrect tests if the argument is a tuple. 
They can be passed for now because caught exception or warning is found before 
incorrect value. For example:

    with self.assertRaises((ValueError, None)):
        int('a')

----------
Added file: http://bugs.python.org/file39426/issue15836_2.patch

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

Reply via email to