[Zope-Checkins] CVS: Packages/OFS/tests - testRanges.py:1.12

Fred L. Drake, Jr. fdrake@acm.org
Wed, 10 Apr 2002 23:06:14 -0400


Update of /cvs-repository/Packages/OFS/tests
In directory cvs.zope.org:/tmp/cvs-serv8077/OFS/tests

Modified Files:
	testRanges.py 
Log Message:
Use the random module instead of the deprecated whrandom module.

=== Packages/OFS/tests/testRanges.py 1.11 => 1.12 ===
 import os, sys, unittest
 
-import string, whrandom, cStringIO, time, re
+import string, random, cStringIO, time, re
 import ZODB
 from OFS.Application import Application
 from OFS.Folder import manage_addFolder
@@ -37,7 +37,7 @@
     file = cStringIO.StringIO()
 
     def addLetter(x, add=file.write, l=string.letters, 
-            c=whrandom.choice):
+            c=random.choice):
         add(c(l))
     filter(addLetter, range(size))