Message240285
Serhiy: If I understand correctly what you suggest, calling sorted(it) or list(it) would run the iterator all the way until it raises the SayWhenError exception, triggering the self.assertRaises before it ever actually gets to call the self.assertEqual or self.assertCountEqual you suggest. It would indeed test the raising of the exception but would never test individual values returned by the iterator to see that they belong.
Or were you suggesting something different? |
|
Date |
User |
Action |
Args |
2015-04-08 20:39:36 | davin | set | recipients:
+ davin, jnoller, sbt, serhiy.storchaka |
2015-04-08 20:39:36 | davin | set | messageid: <1428525576.03.0.758506059393.issue23713@psf.upfronthosting.co.za> |
2015-04-08 20:39:36 | davin | link | issue23713 messages |
2015-04-08 20:39:35 | davin | create | |
|