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 serhiy.storchaka
Recipients ezio.melotti, magnusc, michael.foord, r.david.murray, rbcollins, rhettinger, serhiy.storchaka, steven.daprano
Date 2015-05-06.14:29:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430922589.98.0.268782451821.issue24134@psf.upfronthosting.co.za>
In-reply-to
Content
Updated patch includes tests for the function is None. There were no tests for assertRaises(), the patch adds them, based on tests for assertWarns().

> Why not sentinel = Object()?

Only for better repr in the case the sentinel is leaked. Other variants are to make it named object, such as a function or a class, as Magnus suggested.
History
Date User Action Args
2015-05-06 14:29:50serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, rbcollins, ezio.melotti, steven.daprano, r.david.murray, michael.foord, magnusc
2015-05-06 14:29:49serhiy.storchakasetmessageid: <1430922589.98.0.268782451821.issue24134@psf.upfronthosting.co.za>
2015-05-06 14:29:49serhiy.storchakalinkissue24134 messages
2015-05-06 14:29:49serhiy.storchakacreate