[Checkins] SVN: zope.app.testing/trunk/ - Adjusted tests after the referenced memory leak problem has been fixed in

Stephan Richter srichter at gmail.com
Fri Jul 24 10:04:31 EDT 2009


Log message for revision 102244:
  - Adjusted tests after the referenced memory leak problem has been fixed in
    ``zope.component``.
  
  Get ready for release.
  

Changed:
  U   zope.app.testing/trunk/CHANGES.txt
  U   zope.app.testing/trunk/setup.py
  U   zope.app.testing/trunk/src/zope/app/testing/tests.py

-=-
Modified: zope.app.testing/trunk/CHANGES.txt
===================================================================
--- zope.app.testing/trunk/CHANGES.txt	2009-07-24 13:46:09 UTC (rev 102243)
+++ zope.app.testing/trunk/CHANGES.txt	2009-07-24 14:04:31 UTC (rev 102244)
@@ -2,10 +2,11 @@
 CHANGES
 =======
 
-3.7.2 (unreleased)
+3.7.2 (2009-07-24)
 ------------------
 
-- ...
+- Adjusted tests after the referenced memory leak problem has been fixed in
+  ``zope.component``.
 
 
 3.7.1 (2009-07-21)

Modified: zope.app.testing/trunk/setup.py
===================================================================
--- zope.app.testing/trunk/setup.py	2009-07-24 13:46:09 UTC (rev 102243)
+++ zope.app.testing/trunk/setup.py	2009-07-24 14:04:31 UTC (rev 102244)
@@ -22,7 +22,7 @@
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
 setup(name='zope.app.testing',
-      version = '3.7.2dev',
+      version = '3.7.2',
       author='Zope Corporation and Contributors',
       author_email='zope-dev at zope.org',
       description='Zope Application Testing Support',

Modified: zope.app.testing/trunk/src/zope/app/testing/tests.py
===================================================================
--- zope.app.testing/trunk/src/zope/app/testing/tests.py	2009-07-24 13:46:09 UTC (rev 102243)
+++ zope.app.testing/trunk/src/zope/app/testing/tests.py	2009-07-24 14:04:31 UTC (rev 102244)
@@ -412,6 +412,8 @@
     Leaving global IDatabase utilities makes a nice juicy memory leak.
     See https://bugs.launchpad.net/zope3/+bug/251273
 
+    This bug has now been fixed and this test exercises the fixed version.
+
         >>> setup = FunctionalTestSetup(ftesting_zcml)
 
     At this point, there are registrations for the base databases created by
@@ -424,27 +426,21 @@
         >>> setup.setUp()
         >>> dbs = list(getAllUtilitiesRegisteredFor(IDatabase))
         >>> len(dbs)
-        2
+        1
         >>> base in dbs
-        True
-        >>> dbs.remove(base)
+        False
         >>> override, = dbs
 
     Tearing down the test context causes the overriding database to be
     removed:
 
         >>> setup.tearDown()
-        >>> list(getAllUtilitiesRegisteredFor(IDatabase)) == [base]
-        True
-
-    Tearing down the fixture causes the base database registration to be
-    removed:
-
-        >>> setup.tearDownCompletely()
-
         >>> list(getAllUtilitiesRegisteredFor(IDatabase))
         []
 
+    Tearing down completely:
+
+        >>> setup.tearDownCompletely()
     """
 
 



More information about the Checkins mailing list