[Zope3-checkins]
SVN: Zope3/trunk/src/zope/interface/tests/test_adapter.py
Fixed a test that assumed that it would get an iterator when only an
Jim Fulton
jim at zope.com
Mon May 1 09:55:43 EDT 2006
Log message for revision 67795:
Fixed a test that assumed that it would get an iterator when only an
iterable was promised.
Changed:
U Zope3/trunk/src/zope/interface/tests/test_adapter.py
-=-
Modified: Zope3/trunk/src/zope/interface/tests/test_adapter.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/test_adapter.py 2006-05-01 13:17:32 UTC (rev 67794)
+++ Zope3/trunk/src/zope/interface/tests/test_adapter.py 2006-05-01 13:55:42 UTC (rev 67795)
@@ -78,15 +78,15 @@
>>> registry.register([None, IB0], IR0, '', 'A0')
>>> registry.register([None, IB2], IR0, '', 'A2')
- >>> registry.lookupAll((IF1, IB1), IR0).next()[1]
+ >>> tuple(registry.lookupAll((IF1, IB1), IR0))[0][1]
'A1'
- >>> registry.lookupAll((IF1, IB2), IR0).next()[1]
+ >>> tuple(registry.lookupAll((IF1, IB2), IR0))[0][1]
'A2'
- >>> registry.lookupAll((IF1, IB0), IR0).next()[1]
+ >>> tuple(registry.lookupAll((IF1, IB0), IR0))[0][1]
'A0'
- >>> registry.lookupAll((IF1, IB3), IR0).next()[1]
+ >>> tuple(registry.lookupAll((IF1, IB3), IR0))[0][1]
'A2'
- >>> registry.lookupAll((IF1, IB4), IR0).next()[1]
+ >>> tuple(registry.lookupAll((IF1, IB4), IR0))[0][1]
'A1'
"""
More information about the Zope3-Checkins
mailing list