[Python-checkins] python/dist/src/Lib/test test_random.py,1.9,1.10
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Fri, 02 May 2003 15:45:02 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv31341
Modified Files:
test_random.py
Log Message:
Simplify ref count test.
Index: test_random.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_random.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_random.py 21 Feb 2003 01:41:36 -0000 1.9
--- test_random.py 2 May 2003 22:44:59 -0000 1.10
***************
*** 284,291 ****
import sys
if verbose and hasattr(sys, "gettotalrefcount"):
! counts = []
! for i in xrange(5):
test_support.run_suite(suite)
! counts.append(sys.gettotalrefcount()-i)
print counts
--- 284,291 ----
import sys
if verbose and hasattr(sys, "gettotalrefcount"):
! counts = [None] * 5
! for i in xrange(len(counts)):
test_support.run_suite(suite)
! counts[i] = sys.gettotalrefcount()
print counts