diff options
| author | Raymond Hettinger <python@rcn.com> | 2016-10-12 05:42:40 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2016-10-12 05:42:40 (GMT) |
| commit | 22e25cb1db6fcca0816915881fbba2bd3553a16d (patch) | |
| tree | 98050529ce241ec9ab925f387488a996973e31d8 /Lib/test/test_random.py | |
| parent | 27271149b49708c036cf110e1cc6b930f86e1d92 (diff) | |
| parent | 1c3a121bb04b716b9387f6eed7ee6120ed140f9d (diff) | |
| download | cpython-22e25cb1db6fcca0816915881fbba2bd3553a16d.zip cpython-22e25cb1db6fcca0816915881fbba2bd3553a16d.tar.gz cpython-22e25cb1db6fcca0816915881fbba2bd3553a16d.tar.bz2 | |
merge
Diffstat (limited to 'Lib/test/test_random.py')
| -rw-r--r-- | Lib/test/test_random.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index 0dfc290..840f3e7 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -178,8 +178,6 @@ class TestBasicOps: self.assertTrue(set(choices(data, weights=None, k=5)) <= set(data)) with self.assertRaises(ValueError): choices(data, [1,2], k=5) # len(weights) != len(population) - with self.assertRaises(IndexError): - choices(data, [0]*4, k=5) # weights sum to zero with self.assertRaises(TypeError): choices(data, 10, k=5) # non-iterable weights with self.assertRaises(TypeError): @@ -194,8 +192,6 @@ class TestBasicOps: with self.assertRaises(ValueError): choices(data, cum_weights=[1,2], k=5) # len(weights) != len(population) - with self.assertRaises(IndexError): - choices(data, cum_weights=[0]*4, k=5) # cum_weights sum to zero with self.assertRaises(TypeError): choices(data, cum_weights=10, k=5) # non-iterable cum_weights with self.assertRaises(TypeError): |
