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