Éric Araujo <mer...@netwok.org> added the comment:

I realize now that calling self.fail at 
https://hg.python.org/cpython/rev/74e79b2c114a#l2.20 is a problem: self is an 
instance of the C class, not the TestCase instance.

(The line is unreachable anyway so this doesn’t matter a lot.  In other 
projects I’d use something like `__reduce__ = raiser(AssertionError)` to avoid 
this.)

----------

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

Reply via email to