[Zodb-checkins] CVS: ZODB3/ExtensionClass/test -
test_MultiMapping.py:1.5
Jeremy Hylton
jeremy at zope.com
Fri May 9 18:56:19 EDT 2003
Update of /cvs-repository/ZODB3/ExtensionClass/test
In directory cvs.zope.org:/tmp/cvs-serv24545/test
Modified Files:
test_MultiMapping.py
Log Message:
Freshen the test suite.
Make sure test_MultiMapping doesn't rely on the order in which dict
entries are printed.
=== ZODB3/ExtensionClass/test/test_MultiMapping.py 1.4 => 1.5 ===
--- ZODB3/ExtensionClass/test/test_MultiMapping.py:1.4 Wed Aug 14 17:24:48 2002
+++ ZODB3/ExtensionClass/test/test_MultiMapping.py Fri May 9 17:55:49 2003
@@ -11,9 +11,12 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-from pprint import pprint
from MultiMapping import *
+def sortprint(L):
+ L.sort()
+ print L
+
m=MultiMapping()
m.push({'spam':1, 'eggs':2})
@@ -26,8 +29,8 @@
print m['spam']
print m['eggs']
-pprint(m.pop())
-pprint(m.pop())
+sortprint(m.pop().items())
+sortprint(m.pop().items())
try:
print m.pop()
More information about the Zodb-checkins
mailing list