[Checkins] SVN: five.localsitemanager/branches/1.0/ Made the tests more resilient to random order of lists
Hanno Schlichting
hannosch at hannosch.eu
Mon Oct 19 12:18:48 EDT 2009
Log message for revision 105154:
Made the tests more resilient to random order of lists
Changed:
U five.localsitemanager/branches/1.0/CHANGES.txt
U five.localsitemanager/branches/1.0/src/five/localsitemanager/localsitemanager.txt
-=-
Modified: five.localsitemanager/branches/1.0/CHANGES.txt
===================================================================
--- five.localsitemanager/branches/1.0/CHANGES.txt 2009-10-19 15:54:19 UTC (rev 105153)
+++ five.localsitemanager/branches/1.0/CHANGES.txt 2009-10-19 16:18:47 UTC (rev 105154)
@@ -4,7 +4,7 @@
1.2 - unreleased
----------------
-* Fix unregistring of components which have a physical path.
+* Fix unregistering of components which have a physical path.
[thefunny42]
1.1 - 2009-06-19
Modified: five.localsitemanager/branches/1.0/src/five/localsitemanager/localsitemanager.txt
===================================================================
--- five.localsitemanager/branches/1.0/src/five/localsitemanager/localsitemanager.txt 2009-10-19 15:54:19 UTC (rev 105153)
+++ five.localsitemanager/branches/1.0/src/five/localsitemanager/localsitemanager.txt 2009-10-19 16:18:47 UTC (rev 105154)
@@ -383,10 +383,10 @@
And registeredUtilities():
- >>> list(sitemanager_a.registeredUtilities())
+ >>> sorted(sitemanager_a.registeredUtilities())
[UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'aq_wrapped', <Utility AQTestUtility "test">,... u''),
- UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'with_aq_chain', si_util_cped,... u''),
- UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'hello_world', <Utility TestUtility "test">,... u'')]
+ UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'hello_world', <Utility TestUtility "test">,... u''),
+ UtilityRegistration(<PersistentComponents /a>, ITestUtility, u'with_aq_chain', si_util_cped,... u'')]
>>> utils = [r.component for r in sitemanager_a.registeredUtilities()]
>>> len(utils)
@@ -402,7 +402,7 @@
>>> aqutils = [comp for comp in utils if IAcquirer.providedBy(comp)]
>>> len(aqutils)
2
- >>> aqutils
+ >>> sorted(aqutils)
[<Utility AQTestUtility "test">, <SITestUtility at /a/b/c/si_util_cped>]
And unregisterUtility():
More information about the checkins
mailing list