Message293288
I'm also a bit uncomfortable with adding tests for other specific exceptions when a misbehaving `random` is passed: again, the details of whether an exception is raised or not for "self.assertRaises(IndexError, shuffle, seq, random=lambda: -1.1)", and which precise class of exception is raised, seem like something that could be left as implementation-defined. I'm not sure I see much value in pinning down the precise behaviour in this case (which is effectively what a testcase does). |
|
Date |
User |
Action |
Args |
2017-05-09 07:58:18 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, vstinner, cheryl.sabella |
2017-05-09 07:58:18 | mark.dickinson | set | messageid: <1494316698.09.0.901980077973.issue30308@psf.upfronthosting.co.za> |
2017-05-09 07:58:18 | mark.dickinson | link | issue30308 messages |
2017-05-09 07:58:17 | mark.dickinson | create | |
|