commit | 8ec78814c138a24038d104507879bf11df09dcce | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Jan 04 05:55:11 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Jan 04 05:55:11 2003 +0000 |
tree | 2d9f59eb12b03545d0ff448f0ea28a676f879526 | |
parent | 8b9aa8dbba644da23ce8417f2d30b218392b3282 [diff] |
Test an edge case for sample().
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index d0a2a15..b5fe1e5 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py
@@ -63,6 +63,7 @@ uniq = dict.fromkeys(s) self.assertEqual(len(uniq), k) self.failIf(None in uniq) + self.assertEqual(self.gen.sample([], 0), []) # test edge case N==k==0 def test_gauss(self): # Ensure that the seed() method initializes all the hidden state. In