[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/testDB.py Added some sorting to some test output to make it deterministic.
Jim Fulton
jim at zope.com
Thu Dec 4 18:10:04 EST 2008
Log message for revision 93639:
Added some sorting to some test output to make it deterministic.
Changed:
U ZODB/trunk/src/ZODB/tests/testDB.py
-=-
Modified: ZODB/trunk/src/ZODB/tests/testDB.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testDB.py 2008-12-04 22:30:59 UTC (rev 93638)
+++ ZODB/trunk/src/ZODB/tests/testDB.py 2008-12-04 23:10:04 UTC (rev 93639)
@@ -131,16 +131,16 @@
>>> info = db.connectionDebugInfo()
>>> import pprint
- >>> pprint.pprint(info, width=1)
+ >>> pprint.pprint(sorted(info, key=lambda i: str(i['opened'])), width=1)
[{'before': None,
'info': ' (0)',
'opened': None},
{'before': None,
'info': 'test info (2)',
- 'opened': 'Thu Dec 4 15:40:44 2008 (1.40s)'},
+ 'opened': 'Thu Dec 04 15:40:44 2008 (1.40s)'},
{'before': '\x03zY\xd8\xc0m9\xdd',
'info': ' (0)',
- 'opened': 'Thu Dec 4 15:40:45 2008 (0.30s)'}]
+ 'opened': 'Thu Dec 04 15:40:45 2008 (0.30s)'}]
>>> time.time = real_time
More information about the Zodb-checkins
mailing list