[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Must stop abusing assert!
Jim Fulton
jim at zope.com
Wed Apr 21 16:55:26 EDT 2010
Log message for revision 111230:
Must stop abusing assert!
Changed:
U ZODB/trunk/src/ZEO/tests/testZEO.py
-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py 2010-04-21 20:55:25 UTC (rev 111229)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py 2010-04-21 20:55:26 UTC (rev 111230)
@@ -768,7 +768,8 @@
self.server.tpc_begin(id(transaction), '', '', {}, None, ' ')
def tpc_vote(self, transaction):
- assert self.server.vote(id(transaction)) is None
+ vote_result = self.server.vote(id(transaction))
+ assert vote_result is None
result = self.server.client.serials[:]
del self.server.client.serials[:]
return result
More information about the Zodb-checkins
mailing list