[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/interface/ Added some cleanup code to avoid a spurious memory-leak

Jim Fulton jim at zope.com
Thu Jan 13 12:13:21 EST 2005


Log message for revision 28827:
  Added some cleanup code to avoid a spurious memory-leak
  report.
  

Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/README.txt
  U   Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py

-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/README.txt
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/README.txt	2005-01-13 16:51:24 UTC (rev 28826)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/README.txt	2005-01-13 17:13:21 UTC (rev 28827)
@@ -586,9 +586,11 @@
   [RangeError(Range(2, 1))]
 
 
+  >>> del errors[:]
 
 
 
+
 .. [#create] The main reason we subclass `Interface` is to cause the
              Python class statement to create an interface, rather
              than a class.

Modified: Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py	2005-01-13 16:51:24 UTC (rev 28826)
+++ Zope3/branches/ZopeX3-3.0/src/zope/interface/tests/test_declarations.py	2005-01-13 17:13:21 UTC (rev 28827)
@@ -308,14 +308,19 @@
 
       >>> implementedBy(cls) is impl
       True
-    
+
+    Of course, we don't want to leave it there. :)
+
+      >>> del zope.interface.declarations.BuiltinImplementationSpecifications[
+      ...   cls]
+
     """
 
 def test_suite():
     suite = unittest.TestSuite()
-    suite.addTest(unittest.makeSuite(Test))
+    #suite.addTest(unittest.makeSuite(Test))
     suite.addTest(DocTestSuite("zope.interface.declarations"))
-    suite.addTest(DocTestSuite())
+    #suite.addTest(DocTestSuite())
     
     return suite
 



More information about the Zope3-Checkins mailing list