[Python-checkins] CVS: python/dist/src/Lib/test test_gc.py,1.1,1.2

Jeremy Hylton python-dev@python.org
2000年6月30日 08:13:24 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19979/Lib/test
Modified Files:
	test_gc.py 
Log Message:
remove all prints (since the prints where of memory locations)
Index: test_gc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_gc.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_gc.py	2000年06月30日 05:02:53	1.1
--- test_gc.py	2000年06月30日 15:13:14	1.2
***************
*** 4,8 ****
 l = []
 l.append(l)
- print 'list 0x%x' % id(l)
 gc.collect()
 del l
--- 4,7 ----
***************
*** 12,16 ****
 d = {}
 d[1] = d
- print 'dict 0x%x' % id(d)
 gc.collect()
 del d
--- 11,14 ----
***************
*** 21,26 ****
 t = (l,)
 l.append(t)
- print 'list 0x%x' % id(l)
- print 'tuple 0x%x' % id(t)
 gc.collect()
 del t
--- 19,22 ----
***************
*** 32,36 ****
 pass
 A.a = A
- print 'class 0x%x' % id(A)
 gc.collect()
 del A
--- 28,31 ----
***************
*** 42,46 ****
 a = A()
 a.a = a
- print repr(a)
 gc.collect()
 del a
--- 37,40 ----
***************
*** 66,71 ****
 b = B()
 b.b = b
- print 'a', repr(a)
- print 'b', repr(b)
 gc.collect()
 gc.garbage[:] = []
--- 60,63 ----
***************
*** 78,83 ****
 d = {}
 exec("def f(): pass\n") in d
- print 'dict 0x%x' % id(d)
- print 'func 0x%x' % id(d['f'])
 gc.collect()
 del d
--- 70,73 ----
***************
*** 86,91 ****
 
 def test_all():
- debug = gc.get_debug()
- gc.set_debug(gc.DEBUG_LEAK | gc.DEBUG_STATS)
 test_list()
 test_dict()
--- 76,79 ----
***************
*** 96,100 ****
 test_finalizer()
 test_function()
- gc.set_debug(debug)
 
 test_all()
--- 84,87 ----

AltStyle によって変換されたページ (->オリジナル) /