summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r--Lib/test/test_random.py1
1 files changed, 1 insertions, 0 deletions
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 @@ class TestBasicOps(unittest.TestCase):
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