Message159930
Now that I think about this some more, I think I'd structure the 'p' tests as:
for expr in [False, None, True, 1, 0]: # add the rest
self.assertEqual(bool(expr), getargs_p(expr))
Since the salient point is that 'p' returns the same value as bool(), right?
And for the one that raises an exception, you'll have to check that bool and getargs_p both raise the same type of exception. |
|
Date |
User |
Action |
Args |
2012-05-04 12:28:34 | eric.smith | set | recipients:
+ eric.smith, loewis, mark.dickinson, larry, serhiy.storchaka |
2012-05-04 12:28:34 | eric.smith | set | messageid: <1336134514.24.0.0752833566615.issue14705@psf.upfronthosting.co.za> |
2012-05-04 12:28:31 | eric.smith | link | issue14705 messages |
2012-05-04 12:28:31 | eric.smith | create | |
|