[Zope3-checkins] CVS: Zope3/src/zope/configuration - backward.py:1.3
Jim Fulton
jim@zope.com
Sat, 2 Aug 2003 08:46:10 -0400
Update of /cvs-repository/Zope3/src/zope/configuration
In directory cvs.zope.org:/tmp/cvs-serv26155/src/zope/configuration
Modified Files:
backward.py
Log Message:
Fixed a test to sort dictionary keys before displaying them.
=== Zope3/src/zope/configuration/backward.py 1.2 => 1.3 ===
--- Zope3/src/zope/configuration/backward.py:1.2 Wed Jul 30 14:35:09 2003
+++ Zope3/src/zope/configuration/backward.py Sat Aug 2 08:46:04 2003
@@ -267,7 +267,13 @@
>>> len(d.subdirectives)
1
>>> schema, info = d.subdirectives['foo']
- >>> list(schema)
+
+ >>> def sorted(x):
+ ... r = list(x)
+ ... r.sort()
+ ... return r
+
+ >>> sorted(schema)
['a', 'b']
>>> info.text
u'spam'