Mark Dickinson added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30308>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to