[Python-checkins] python/dist/src/Lib/test test_random.py,1.3,1.4

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Fri, 03 Jan 2003 21:55:13 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7451

Modified Files:
	test_random.py 
Log Message:
Test an edge case for sample().

Index: test_random.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_random.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_random.py	29 Dec 2002 23:03:38 -0000	1.3
--- test_random.py	4 Jan 2003 05:55:11 -0000	1.4
***************
*** 64,67 ****
--- 64,68 ----
              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):