[Checkins] SVN: grok/branches/sylvain-testlayers/src/grok/ftests/catalog/ Introducing better isolation between tests prevents test crashes.

Martijn Faassen faassen at startifact.com
Fri Apr 23 13:28:55 EDT 2010


Log message for revision 111313:
  Introducing better isolation between tests prevents test crashes.
  

Changed:
  U   grok/branches/sylvain-testlayers/src/grok/ftests/catalog/catalog.py
  U   grok/branches/sylvain-testlayers/src/grok/ftests/catalog/setuporder.py

-=-
Modified: grok/branches/sylvain-testlayers/src/grok/ftests/catalog/catalog.py
===================================================================
--- grok/branches/sylvain-testlayers/src/grok/ftests/catalog/catalog.py	2010-04-23 17:16:44 UTC (rev 111312)
+++ grok/branches/sylvain-testlayers/src/grok/ftests/catalog/catalog.py	2010-04-23 17:28:55 UTC (rev 111313)
@@ -20,6 +20,17 @@
   ...     print obj.name
   Ellie
 
+Nuke the catalog and intids in the end, so as not to confuse
+other tests::
+
+  >>> from zope import component
+  >>> sm = herd.getSiteManager()
+  >>> sm.unregisterUtility(catalog, provided=ICatalog)
+  True
+  >>> intids = component.getUtility(IIntIds)
+  >>> sm.unregisterUtility(intids, provided=IIntIds)
+  True
+
 """
 
 import grok

Modified: grok/branches/sylvain-testlayers/src/grok/ftests/catalog/setuporder.py
===================================================================
--- grok/branches/sylvain-testlayers/src/grok/ftests/catalog/setuporder.py	2010-04-23 17:16:44 UTC (rev 111312)
+++ grok/branches/sylvain-testlayers/src/grok/ftests/catalog/setuporder.py	2010-04-23 17:28:55 UTC (rev 111313)
@@ -23,6 +23,17 @@
   ...     print obj.name
   Ellie
 
+Nuke the catalog and intids in the end, so as not to confuse
+other tests::
+
+  >>> from zope import component
+  >>> sm = herd.getSiteManager()
+  >>> sm.unregisterUtility(catalog, provided=ICatalog)
+  True
+  >>> intids = component.getUtility(IIntIds)
+  >>> sm.unregisterUtility(intids, provided=IIntIds)
+  True
+
 """
 
 import grok



More information about the checkins mailing list