Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1:/tmp/cvs-serv12250 Modified Files: test_generators.py Log Message: This test depends on the exact ordering produced by the WichmannHill random number generator. Altered it a bit to use the old generator and restore the test. Index: test_generators.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** test_generators.py 9 Aug 2002 18:37:10 -0000 1.37 --- test_generators.py 30 Dec 2002 00:46:09 -0000 1.38 *************** *** 445,449 **** >>> import random ! >>> random.seed(42) >>> while 1: ... for s in sets: --- 445,449 ---- >>> import random ! >>> gen = random.WichmannHill(42) >>> while 1: ... for s in sets: *************** *** 451,457 **** ... print ... if len(roots) > 1: ! ... s1 = random.choice(roots) ... roots.remove(s1) ! ... s2 = random.choice(roots) ... s1.union(s2) ... print "merged", s1, "into", s2 --- 451,457 ---- ... print ... if len(roots) > 1: ! ... s1 = gen.choice(roots) ... roots.remove(s1) ! ... s2 = gen.choice(roots) ... s1.union(s2) ... print "merged", s1, "into", s2
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4