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 ezio.melotti
Recipients brian.curtin, dino.viehland, ezio.melotti, michael.foord, theller
Date 2010-02-04.20:15:08
SpamBayes Score 0.001754515
Marked as misclassified No
Message-id <1265314509.37.0.639147660186.issue7855@psf.upfronthosting.co.za>
In-reply-to
Content
For your purpose indeed assertTrue() is not appropriate, however assertEqual(x, True) works for several different x, including 1.0 or 1.
Also assertRaises can be used as a context manager on 2.7 too.
History
Date User Action Args
2010-02-04 20:15:09ezio.melottisetrecipients: + ezio.melotti, theller, dino.viehland, michael.foord, brian.curtin
2010-02-04 20:15:09ezio.melottisetmessageid: <1265314509.37.0.639147660186.issue7855@psf.upfronthosting.co.za>
2010-02-04 20:15:08ezio.melottilinkissue7855 messages
2010-02-04 20:15:08ezio.melotticreate