Message242675
| 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. |
|