SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Must stop abusing assert!

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.