This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients belopolsky, benjamin.peterson, berker.peksag, brandon-rhodes, daniel.urban, eric.araujo, ezio.melotti, ncoghlan, pitrou, python-dev, sandro.tosi, serhiy.storchaka
Date 2018-07-09.21:37:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531172222.64.0.56676864532.issue11572@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2018-07-09 21:37:02eric.araujosetrecipients: + eric.araujo, ncoghlan, belopolsky, pitrou, benjamin.peterson, ezio.melotti, daniel.urban, sandro.tosi, brandon-rhodes, python-dev, berker.peksag, serhiy.storchaka
2018-07-09 21:37:02eric.araujosetmessageid: <1531172222.64.0.56676864532.issue11572@psf.upfronthosting.co.za>
2018-07-09 21:37:02eric.araujolinkissue11572 messages
2018-07-09 21:37:02eric.araujocreate