[Zodb-checkins] CVS: ZODB3 - test.py:1.24.8.2

Jeremy Hylton jeremy at zope.com
Mon Sep 15 15:35:23 EDT 2003


Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv31356

Modified Files:
      Tag: Zope-2_7-branch
	test.py 
Log Message:
Remove leak debugging code accidentally checked in.


=== ZODB3/test.py 1.24.8.1 => 1.24.8.2 ===
--- ZODB3/test.py:1.24.8.1	Mon Sep 15 14:03:05 2003
+++ ZODB3/test.py	Mon Sep 15 15:35:23 2003
@@ -506,10 +506,6 @@
         self.type2all = {}
 
     def update(self):
-        from ZEO.ClientStorage import ClientStorage
-        from ZODB.DB import DB
-        from ZODB.Connection import Connection
-
         obs = sys.getobjects(0)
         type2count = {}
         type2all = {}
@@ -532,22 +528,6 @@
         for delta1, delta2, t in ct:
             if delta1 or delta2:
                 print "%-55s %8d %8d" % (t, delta1, delta2)
-                if issubclass(t, (ClientStorage, DB, Connection)):
-                    for o in obs:
-                        if isinstance(o, t):
-                            delta1 -= 1
-                            refs = gc.get_referrers(o)
-                            print sys.getrefcount(o), \
-                                   len(refs), map(type, refs)
-##                            print "Referrers"
-##                            for r in refs[2:]:
-##                                # Things that refer to the object
-##                                print "\t", type(r), \
-##                                      len(gc.get_referrers(r))
-##                                if isinstance(r, dict):
-##                                    print "\t", r.keys()
-                        if not delta1:
-                            break
 
         self.type2count = type2count
         self.type2all = type2all




More information about the Zodb-checkins mailing list