diff options
author | Raymond Hettinger <python@rcn.com> | 2016-11-21 22:34:51 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-11-21 22:34:51 (GMT) |
commit | 6088cfcfd4be60930aee8c06ca6e72e0f29edef6 (patch) | |
tree | 099df08fb26aedff268d5eadf7a5e57847b33a0d /Lib/test/test_random.py | |
parent | e425bd95e9f3ceb767e1894cce8cc01a63e7013b (diff) | |
parent | bf87126a636bddf2d9a8f432215fe2efb98ba8fe (diff) | |
download | cpython-6088cfcfd4be60930aee8c06ca6e72e0f29edef6.zip cpython-6088cfcfd4be60930aee8c06ca6e72e0f29edef6.tar.gz cpython-6088cfcfd4be60930aee8c06ca6e72e0f29edef6.tar.bz2 |
merge
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r-- | Lib/test/test_random.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index d2fa9d2..e228104 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -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 |