Message242675
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. |
|
Date |
User |
Action |
Args |
2015-05-06 14:29:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, rbcollins, ezio.melotti, steven.daprano, r.david.murray, michael.foord, magnusc |
2015-05-06 14:29:49 | serhiy.storchaka | set | messageid: <1430922589.98.0.268782451821.issue24134@psf.upfronthosting.co.za> |
2015-05-06 14:29:49 | serhiy.storchaka | link | issue24134 messages |
2015-05-06 14:29:49 | serhiy.storchaka | create | |
|