python/dist/src/Lib/test test_deque.py, 1.14, 1.15 test_enumerate.py, 1.12, 1.13 test_itertools.py, 1.32, 1.33 test_random.py, 1.21, 1.22 test_set.py, 1.13, 1.14
Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29983/test Modified Files: test_deque.py test_enumerate.py test_itertools.py test_random.py test_set.py Log Message: Use floor division operator. Index: test_deque.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_deque.py,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- test_deque.py 26 Aug 2004 04:29:47 -0000 1.14 +++ test_deque.py 27 Sep 2004 15:29:04 -0000 1.15 @@ -385,7 +385,7 @@ def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class S: 'Test immediate stop' Index: test_enumerate.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_enumerate.py,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- test_enumerate.py 10 Mar 2004 10:10:42 -0000 1.12 +++ test_enumerate.py 27 Sep 2004 15:29:04 -0000 1.13 @@ -50,7 +50,7 @@ def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class N: 'Iterator missing next()' Index: test_itertools.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_itertools.py,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- test_itertools.py 23 Sep 2004 07:27:39 -0000 1.32 +++ test_itertools.py 27 Sep 2004 15:29:04 -0000 1.33 @@ -476,7 +476,7 @@ def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class S: 'Test immediate stop' Index: test_random.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_random.py,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- test_random.py 13 Sep 2004 22:23:20 -0000 1.21 +++ test_random.py 27 Sep 2004 15:29:05 -0000 1.22 @@ -79,7 +79,7 @@ def factorial(n): return reduce(int.__mul__, xrange(1, n), 1) for k in xrange(n): - expected = factorial(n) / factorial(n-k) + expected = factorial(n) // factorial(n-k) perms = {} for i in xrange(trials): perms[tuple(self.gen.sample(pop, k))] = None Index: test_set.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_set.py,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- test_set.py 9 Jul 2004 04:51:24 -0000 1.13 +++ test_set.py 27 Sep 2004 15:29:05 -0000 1.14 @@ -1241,7 +1241,7 @@ def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class S: 'Test immediate stop'
participants (1)
-
rhettingerīŧ users.sourceforge.net