mirror of
https://github.com/python/cpython.git
synced 2025-10-13 10:23:28 +00:00
merge
This commit is contained in:
commit
6088cfcfd4
2 changed files with 2 additions and 1 deletions
|
@ -110,6 +110,7 @@ class TestBasicOps:
|
|||
self.assertEqual(self.gen.sample([], 0), []) # test edge case N==k==0
|
||||
# Exception raised if size of sample exceeds that of population
|
||||
self.assertRaises(ValueError, self.gen.sample, population, N+1)
|
||||
self.assertRaises(ValueError, self.gen.sample, [], -1)
|
||||
|
||||
def test_sample_distribution(self):
|
||||
# For the entire allowable range of 0 <= k <= N, validate that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue