[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

Berker Peksag report at bugs.python.org
Sat May 16 19:10:03 CEST 2015


Berker Peksag added the comment:

Since the patch has been reviewed by several core developers, I think you can go ahead and commit it.

I'm +0 on the 2.7 version of the patch (the isinstance(e, types.ClassType) part looks fine, but I haven't tested it). It's probably not worth to change anything on the 2.7 branch now :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15836>
_______________________________________


More information about the Python-bugs-list mailing list